/* =====================================================
   JURISTA 2026 - Global Stylesheet
   Fonts: Playfair Display (headings) + Lato (body)
   Color palette: dark navy, gold accent, white
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #c45510;
  --gold-light: #f16922;
  --navy: #111111;
  --navy-mid: #1a1a1a;
  --dark: #000000;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-mid: #ccc;
  --text-dark: #222;
  --text-mid: #555;
  --transition: 0.3s ease;
  --radius: 4px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* ====== UTILITY ====== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-gray { background: var(--gray-light); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold-light);
  color: var(--dark);
  border-color: var(--gold-light);
}
.btn-gold:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(8px);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-logo img { height: 44px; width: auto; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav > li { position: relative; }
.navbar-nav > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a { color: var(--gold-light); }

/* dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--navy-mid);
  min-width: 220px;
  border-top: 2px solid var(--gold-light);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  list-style: none;
  z-index: 100;
  animation: dropIn 0.2s ease;
}
.navbar-nav > li:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #ddd;
  font-size: 13px;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover { background: rgba(212,175,55,0.12); color: var(--gold-light); }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* right side of nav */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-right a {
  color: #aaa;
  font-size: 13px;
  transition: color var(--transition);
}
.navbar-right a:hover { color: var(--gold-light); }
.navbar-right .btn-expedientes {
  background: var(--gold-light);
  color: var(--dark);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.navbar-right .btn-expedientes:hover { background: var(--gold); }

/* mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====== PAGE HERO (subpages) ====== */
.page-hero {
  padding: 0;
  min-height: 560px;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://ijurista.com/assets/images/juristaf-1900x1086.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}

/* Hero con imagen personalizada */
.page-hero[style*="background-image"] {
  background-blend-mode: normal;
  background-size: cover;
  background-position: center 50%;
  will-change: background-position;
}
.page-hero[style*="background-image"]::before {
  background: none;
}
.page-hero[style*="background-image"]::after {
  display: none;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; color: var(--white); }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 28px; }
.page-hero .gold-bar { width: 60px; height: 3px; background: var(--gold-light); margin: 16px auto 0; border-radius: 2px; }

/* ====== SECTION TITLE ====== */
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--navy); margin-bottom: 12px; }
.section-subtitle { color: var(--text-mid); max-width: 680px; font-size: 1rem; line-height: 1.7; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.divider-gold { width: 50px; height: 3px; background: var(--gold-light); border-radius: 2px; margin: 16px 0; }
.divider-gold.center { margin: 16px auto; }

/* ====== HERO SLIDER (index) ====== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 760px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 12px;
}
.slide-content h2 { font-size: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-content p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 28px; }

/* slider controls */
.slider-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: var(--gold-light); transform: scale(1.3); }

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}
.slider-arrow {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  color: white;
  font-size: 18px;
}
.slider-arrow:hover { background: rgba(212,175,55,0.4); }

/* ====== FEATURES / SERVICES GRID ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.feature-card-body { padding: 24px; }
.feature-card-body h5 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.feature-card-body p { font-size: 0.9rem; color: var(--text-mid); }

/* ====== TWO COL SECTION ====== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { width: 100%; border-radius: 6px; }

/* ====== ACCORDION (servicios legales) ====== */
.accordion { border-top: 1px solid #e0e0e0; }
.accordion-item { border-bottom: 1px solid #e0e0e0; }
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px 18px 0;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.accordion-header:hover { color: var(--gold-light); }
.accordion-header::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-light);
  transition: transform var(--transition);
}
.accordion-header.open::after { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 0 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
}
.accordion-body.open { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ====== LOGOS CAROUSEL ====== */
.logos-section { background: var(--gray-light); padding: 60px 0; overflow: hidden; }
.logos-title { text-align: center; margin-bottom: 36px; }
.logos-carousel-wrap { overflow: hidden; }
.logos-track {
  display: flex;
  gap: 40px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}
.logos-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--transition), opacity var(--transition);
}
.logos-track img:hover { filter: none; opacity: 1; }
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====== GALLERY GRID (auditorio) ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ====== CONTACT SECTION ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold-light); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-info h4 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 6px; }
.contact-info p { color: #ccc; font-size: 0.95rem; margin-bottom: 24px; }
.contact-info a { color: var(--white); transition: color var(--transition); }
.contact-info a:hover { color: var(--gold-light); }

/* ====== STEPS (numbered process) ====== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  position: relative;
  transition: box-shadow var(--transition);
}
.step-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.step-number {
  width: 48px; height: 48px;
  background: var(--gold-light);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ====== BENEFITS (numbered cards) ====== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.benefit-card {
  padding: 28px;
  border-left: 3px solid var(--gold-light);
  background: var(--gray-light);
  border-radius: 0 6px 6px 0;
}
.benefit-num { font-size: 2rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 8px; }
.benefit-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; color: var(--text-mid); }

/* ====== QUOTE BLOCK ====== */
.quote-block {
  background: var(--navy);
  padding: 48px;
  border-radius: 6px;
  text-align: center;
  position: relative;
}
.quote-block::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--gold-light);
  opacity: 0.15;
  position: absolute;
  top: -20px; left: 20px;
  line-height: 1;
}
.quote-block p { font-size: 1.2rem; color: var(--white); font-style: italic; position: relative; }

/* ====== FOOTER ====== */
.footer {
  background: var(--dark);
  color: #aaa;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; color: #888; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ====== LIGHTBOX ====== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ====== REVEAL ANIMATION ====== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-right .btn-expedientes, .navbar-right a:not(.btn-expedientes) { display: none; }
  .navbar-toggle { display: flex; }
  .navbar.mobile-open .navbar-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .navbar.mobile-open .navbar-right { display: flex; }
  .navbar-nav > li > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown-menu { position: static; border: none; background: rgba(255,255,255,0.05); box-shadow: none; animation: none; display: none; }
  .navbar-nav > li.mobile-open .dropdown-menu { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .slider-arrows { padding: 0 8px; }
  .slider-arrow { width: 38px; height: 38px; }
}
