/* ============================================
   ELIAN FACUNDO YORLANO — ESTUDIO JURÍDICO
   Paleta: verde petróleo + ocres dorados
   Tipografía: Nunito Sans + The Seasons
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,300;1,6..12,400&display=swap');

/* The Seasons — self-hosted via CDN fallback a Georgia */
@font-face {
  font-family: 'The Seasons';
  src: url('https://fonts.cdnfonts.com/css/the-seasons') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* ── Variables ── */
:root {
  --stone:     #A9AEA0;
  --linen:     #E9E3DF;
  --teal:      #023F37;
  --teal-mid:  #0a5a4e;
  --teal-light:#1a7a6a;
  --gold:      #AC936E;
  --gold-light:#c8ae8a;
  --white:     #FAFAF8;
  --dark:      #0d1a17;
  --text:      #2a2a28;
  --text-muted:#6b6b66;

  --font-primary:   'Nunito Sans', sans-serif;
  --font-display:   'The Seasons', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  --radius:    4px;
  --radius-lg: 10px;
  --shadow:    0 2px 20px rgba(2,63,55,0.08);
  --shadow-lg: 0 8px 40px rgba(2,63,55,0.14);
  --transition: all 0.3s ease;
  --max-width: 1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--teal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p  { font-size: 1rem; color: var(--text); }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }
.section-label {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--teal { background: var(--teal); color: var(--linen); }
.section--teal h2, .section--teal h3, .section--teal h4 { color: var(--gold-light); }
.section--teal p, .section--teal .lead { color: rgba(233,227,223,0.85); }
.section--teal .section-label { color: var(--stone); }
.section--linen { background: var(--linen); }
.section--stone { background: var(--stone); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-white {
  border: 1.5px solid rgba(233,227,223,0.6);
  color: var(--linen);
}
.btn-outline-white:hover { background: var(--gold); border-color: var(--gold); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.95rem; }

/* ── Header / Nav ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(169,174,160,0.25);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo span { font-family: var(--font-primary); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta { margin-left: 1rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.6rem; opacity: 0.7; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(169,174,160,0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius);
  letter-spacing: 0;
  text-transform: none;
}
.dropdown-menu a:hover { background: var(--linen); color: var(--teal); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, #015044 50%, #023a32 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 5%;
  width: 55%;
  height: 90%;
  background: rgba(172,147,110,0.07);
  border-radius: 50% 0 50% 50%;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--linen); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .lead { color: rgba(233,227,223,0.8); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(172,147,110,0.2);
  border: 1px solid rgba(172,147,110,0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; color: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(169,174,160,0.3);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--linen);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.92rem; color: var(--text-muted); }

/* ── Accordion / FAQ ── */
.accordion { border-top: 1px solid rgba(169,174,160,0.4); }
.accordion-item { border-bottom: 1px solid rgba(169,174,160,0.4); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
  text-align: left;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
}
.accordion-trigger:hover { color: var(--gold); }
.accordion-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--teal);
  transition: var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: white; }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-body.open { max-height: 600px; }
.accordion-body p, .accordion-body li { font-size: 0.92rem; color: var(--text-muted); padding-bottom: 1.25rem; }
.accordion-body ul { padding-left: 1.2rem; list-style: disc; }
.accordion-body ul li { padding-bottom: 0.4rem; }

/* ── Section header ── */
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); }
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
  border-radius: 2px;
}
.divider.centered { margin: 1.25rem auto; }

/* ── Stats ── */
.stats-row { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 3rem; }
.stat-item { }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(233,227,223,0.6); margin-top: 0.25rem; }

/* ── Team card ── */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(169,174,160,0.25);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--linen);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: var(--stone);
}
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--linen) 0%, var(--stone) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: rgba(2,63,55,0.25);
}
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
.team-info p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.team-links { display: flex; gap: 0.5rem; justify-content: center; }
.team-links a {
  width: 36px; height: 36px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.team-links a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── Form ── */
.form-group { margin-bottom: 1.5rem; }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(169,174,160,0.5);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,63,55,0.08); }
textarea { min-height: 130px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A9AEA0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── Blog card ── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(169,174,160,0.25);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(233,227,223,0.3);
}
.blog-content { padding: 1.5rem; }
.blog-meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.blog-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.blog-card .read-more { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 0.4rem; }
.blog-card .read-more:hover { color: var(--gold); }

/* ── Footer ── */
#footer {
  background: var(--dark);
  color: var(--linen);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.88rem; color: rgba(233,227,223,0.55); margin-top: 1rem; line-height: 1.8; }
.footer-col h4 { font-family: var(--font-primary); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(233,227,223,0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(233,227,223,0.35); }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--linen); }
.footer-logo span { font-family: var(--font-primary); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 2px; }

/* ── Utilities ── */
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--linen);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.tag-gold { background: rgba(172,147,110,0.15); color: var(--gold); }
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--linen); }
.page-hero .lead { color: rgba(233,227,223,0.75); max-width: 560px; margin: 1rem auto 0; }
.page-hero .section-label { color: var(--gold); }

/* ── Whatsapp float ── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero { padding: 7rem 0 4rem; }
  .stats-row { gap: 2rem; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  #mobile-nav {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  #mobile-nav.open { transform: translateX(0); }
  #mobile-nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid var(--linen);
    color: var(--teal);
  }
  #mobile-nav .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
}
