/*
Theme Name: Abogadas Elegantes
Theme URI: https://abogadas-elegantes.lovable.app/
Author: Asesoras Contigo
Author URI: https://asesorascontigo.cl
Description: Tema elegante para estudio jurídico. Personalizable desde el Customizer de WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abogadas-elegantes
Tags: one-page, law, elegant, customizable, full-width-template
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --color-navy:      hsl(220, 45%, 20%);
  --color-navy-mid:  hsl(220, 40%, 28%);
  --color-accent:    hsl(350, 35%, 60%);
  --color-blush:     hsl(350, 30%, 85%);
  --color-cream:     hsl(30, 50%, 97%);
  --color-white:     hsl(30, 30%, 99%);
  --color-muted:     hsl(220, 15%, 46%);
  --color-border:    hsl(350, 20%, 88%);
  --color-card:      #ffffff;
  --color-fg:        hsl(220, 40%, 20%);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --radius:  0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide   { max-width: 72rem;  margin: 0 auto; padding: 0 1.5rem; }

.section-padding { padding: 3.5rem 1.5rem; }
@media (min-width: 768px)  { .section-padding { padding: 4.5rem 3rem; } }
@media (min-width: 1024px) { .section-padding { padding: 5rem 6rem; } }

.section-tag {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--color-navy);
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 38rem;
  margin: 1rem auto 0;
}

.glass-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.rose-gold-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-blush));
}

.navy-gradient {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
}

.bg-card  { background: var(--color-card); }
.bg-cream { background: var(--color-cream); }

/* =============================================
   ANIMATIONS (Intersection Observer driven)
   ============================================= */
.ae-animate {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .7s ease, transform .7s ease;
}
.ae-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ae-delay-1 { transition-delay: .1s; }
.ae-delay-2 { transition-delay: .2s; }
.ae-delay-3 { transition-delay: .3s; }
.ae-delay-4 { transition-delay: .4s; }
.ae-delay-5 { transition-delay: .5s; }

/* =============================================
   NAVBAR
   ============================================= */
.ae-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.ae-navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) { .ae-navbar__inner { height: 5rem; } }

.ae-navbar__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: .02em;
  white-space: nowrap;
}

.ae-navbar__brand span { color: var(--color-accent); }

.ae-navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) { .ae-navbar__links { display: flex; } }

.ae-navbar__links a {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(30,45,74,.7);
  transition: color .2s;
}

.ae-navbar__links a:hover { color: var(--color-accent); }

.ae-navbar__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) { .ae-navbar__toggle { display: none; } }

.ae-navbar__mobile {
  display: none;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
}

.ae-navbar__mobile.is-open { display: block; }

.ae-navbar__mobile a {
  display: block;
  padding: .75rem 0;
  font-family: var(--font-body);
  color: rgba(30,45,74,.8);
  border-bottom: 1px solid var(--color-border);
  transition: color .2s;
}

.ae-navbar__mobile a:last-child { border-bottom: none; }
.ae-navbar__mobile a:hover { color: var(--color-accent); }

/* hamburger icon */
.ae-hamburger { display: flex; flex-direction: column; gap: 5px; }
.ae-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-fg);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.ae-navbar__toggle.is-open .ae-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ae-navbar__toggle.is-open .ae-hamburger span:nth-child(2) { opacity: 0; }
.ae-navbar__toggle.is-open .ae-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO — foto izq pegada al fondo | texto der
   ============================================= */
.ae-hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  padding-top: 4.5rem; /* compensa navbar */
  display: flex;
  align-items: flex-end; /* todo pegado al fondo → efecto mural */
}

/* Fondo foto (hero-bg.jpg) */
.ae-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Overlay muy ligero para legibilidad */
.ae-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 74, .22);
}

/* Contenedor split interno */
.ae-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

/* ── Columna FOTO (izquierda 45%) ── */
.ae-hero__photo-col {
  flex: 0 0 45%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.ae-hero__photo-col img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 0 28px rgba(0,0,0,.3));
}

/* ── Columna TEXTO (derecha 55%) ── */
.ae-hero__text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* texto también pegado abajo */
  text-align: left;
  padding: 0 2rem 5rem 2.5rem;
}

/* ── Tipografía ── */
.ae-hero__tag {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-blush);
  margin-bottom: 1rem;
  display: block;
}

.ae-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.ae-hero__subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  font-family: var(--font-body);
  line-height: 1.65;
  max-width: 30rem;
}

.ae-hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Botón grande */
.ae-btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ── MOBILE: apilado ── */
@media (max-width: 767px) {
  .ae-hero {
    align-items: stretch;
    min-height: 100svh;
  }
  .ae-hero__inner {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .ae-hero__photo-col {
    flex: 0 0 auto;
    width: 100%;
    max-height: 48vh;
    justify-content: center;
    padding: 0;
  }
  .ae-hero__photo-col img {
    max-height: 46vh;
    max-width: 85%;
  }
  .ae-hero__text-col {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1.5rem 3.5rem;
    align-items: center;
  }
  .ae-hero__subtitle { max-width: 100%; }
  .ae-hero__ctas { justify-content: center; }
}

.ae-btn {
  display: inline-block;
  padding: .875rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
  border: none;
}

.ae-btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.ae-btn--primary:hover { opacity: .88; }

.ae-btn--outline {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}
.ae-btn--outline:hover { background: rgba(255,255,255,.1); }

.ae-btn--outline-dark {
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.ae-btn--outline-dark:hover { background: rgba(255,255,255,.18); }

/* =============================================
   ABOUT — texto (60% izq) | retratos (40% der)
   ============================================= */
.ae-about { background: var(--color-card); }

/* Contenedor 2 columnas */
.ae-about__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 0;
}

@media (min-width: 900px) {
  .ae-about__body {
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: start;
  }
}

/* ── Columna izquierda ── */
.ae-about__left { display: flex; flex-direction: column; gap: 2rem; }

.ae-about__bio {
  color: rgba(30,45,74,.8);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.85;
}

.ae-about__bio p + p { margin-top: 1.25rem; }
.ae-about__bio strong { color: var(--color-accent); font-weight: 600; }

/* ── Columna derecha (retratos) ── */
.ae-about__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Fila de retratos */
.ae-about__portraits-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.ae-about__portraits-row--center {
  justify-content: center;
}

/* Portrait individual */
.ae-portrait { text-align: center; }

.ae-portrait__img {
  width: 9rem;
  height: 9rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid var(--color-blush);
  box-shadow: var(--shadow-md);
  margin: 0 auto .75rem;
}

.ae-portrait__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

.ae-portrait h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: .15rem;
}

.ae-portrait__role {
  font-size: .8rem;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.ae-portrait__desc {
  font-size: .75rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  margin-top: .25rem;
}

/* Mobile: fotos en grid 3 columnas */
@media (max-width: 899px) {
  .ae-about__body { text-align: center; }
  .ae-about__right { width: 100%; }
  .ae-about__portraits-row { gap: 1rem; }
  .ae-portrait__img { width: 7rem; height: 7rem; }
}

/* =============================================
   SERVICES
   ============================================= */
.ae-services { background: var(--color-cream); }

.ae-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px)  { .ae-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ae-services__grid { grid-template-columns: repeat(3, 1fr); } }

.ae-service-card { padding: 2rem; }

.ae-service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ae-service-card__icon svg { width: 1.25rem; height: 1.25rem; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ae-service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.ae-service-card ul { display: flex; flex-direction: column; gap: .5rem; }

.ae-service-card li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  font-family: var(--font-body);
  color: var(--color-muted);
}

.ae-service-card li::before {
  content: '';
  flex-shrink: 0;
  width: .4rem;
  height: .4rem;
  border-radius: 9999px;
  background: var(--color-accent);
  margin-top: .45rem;
}

/* =============================================
   PRICING
   ============================================= */
.ae-pricing { background: var(--color-card); }

.ae-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px)  { .ae-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ae-pricing__grid { grid-template-columns: repeat(3, 1fr); } }

.ae-price-card { padding: 1.75rem; display: flex; flex-direction: column; }

.ae-price-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.ae-price-card__amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: .25rem;
}

.ae-price-card__note {
  font-size: .75rem;
  color: var(--color-muted);
  margin-bottom: .75rem;
  font-family: var(--font-body);
}

.ae-price-card__details {
  font-size: .875rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  line-height: 1.65;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
}

.ae-pricing__payment {
  max-width: 38rem;
  margin: 3rem auto 0;
  padding: 2rem;
  text-align: center;
}

.ae-pricing__payment h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: .75rem;
}

.ae-pricing__payment p {
  font-size: .9rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* =============================================
   VALUES
   ============================================= */
.ae-values { background: var(--color-cream); }

.ae-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px)  { .ae-values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ae-values__grid { grid-template-columns: repeat(4, 1fr); } }

.ae-value-card { padding: 1.5rem; text-align: center; transition: box-shadow .3s; }
.ae-value-card:hover { box-shadow: var(--shadow-md); }

.ae-value-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.ae-value-card__icon svg { width: 1.4rem; height: 1.4rem; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ae-value-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: .5rem;
}

.ae-value-card p {
  font-size: .875rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  line-height: 1.65;
}

/* =============================================
   MISSION
   ============================================= */
.ae-mission { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .ae-mission { padding: 7rem 3rem; } }

.ae-mission__card {
  max-width: 58rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) { .ae-mission__card { padding: 5rem 4rem; } }

.ae-mission .section-tag { color: var(--color-blush); }

.ae-mission .section-title { color: #fff; margin-bottom: 2rem; }

.ae-mission p {
  color: rgba(255,255,255,.8);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 44rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .ae-mission p { font-size: 1.1rem; } }

/* =============================================
   CONTACT
   ============================================= */
.ae-contact { background: var(--color-cream); }

.ae-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) { .ae-contact__grid { grid-template-columns: repeat(2, 1fr); } }

.ae-contact-card { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }

.ae-contact-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ae-contact-card__icon svg { width: 1.1rem; height: 1.1rem; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ae-contact-card__label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-body);
  display: block;
  margin-bottom: .25rem;
}

.ae-contact-card__value {
  font-family: var(--font-body);
  color: var(--color-navy);
  font-weight: 500;
  transition: color .2s;
}

.ae-contact-card__value:hover { color: var(--color-accent); }

/* =============================================
   FOOTER
   ============================================= */
.ae-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.ae-footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
}

.ae-footer__brand span { color: var(--color-blush); }

.ae-footer__tagline {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-family: var(--font-body);
}

.ae-footer__copy {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-family: var(--font-body);
  margin-top: 1rem;
}

/* =============================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================= */
.admin-bar .ae-navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ae-navbar { top: 46px; } }
