/* =========================================================
   ASESORÍA MANUEL LUNA — style.css (limpio y unificado)
   - Header centrado + redes + menú abajo
   - Hero a pantalla completa (sin corte)
   - Fondos por sección: Asesoría (blanco), Servicios (verde),
     Por qué elegirnos (blanco), Contacto (otro verde)
========================================================= */

/* =========================
   VARIABLES DE COLOR
========================= */
:root{
  /* Base */
  --bg: #ffffff;
  --card: #ffffff;
  --stroke: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --shadow: 0 10px 25px rgba(0,0,0,.08);

  /* Branding (logo) */
  --brand-brown: #9C6B4A;        /* marrón claro */
  --brand-brown-dark: #7A5235;   /* marrón oscuro (hover) */
  --brand-green: #7FBF7A;        /* verde logo */
  --brand-green-alt: #4F8F86;    /* verde alternativo */
  --brand-green-light: #B7D97A;  /* verde claro logo */
  --brand-gray: #E4E4E4;

  /* Acciones */
  --primary: var(--brand-green);
  --primary2: var(--brand-brown);

  /* Fondos de secciones (tiras) */
  --sec-asesoria: #ffffff;
  --sec-servicios: #e6f4ee;      /* verde suave profesional */
  --sec-elegirnos: #ffffff;
  --sec-contacto: #d7efe2;       /* otro verde (distinto a servicios) */

  /* Header (estilo Egmasa) */
  --header-bg: #ffffff;
  --header-line: var(--brand-brown);
  --header-text: var(--text);
  --header-link: var(--muted);

  /* Iconos redes */
  --social-bg: #38bdf8;
}

/* =========================
   RESET BÁSICO
========================= */
*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* =========================
   CONTENEDOR
========================= */
.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =========================
   HEADER (centrado, redes derecha, menú abajo)
   En HTML usa:
   <header class="header header--centered">
     <div class="container header__inner--centered">...</div>
     <div class="header__navrow"><nav class="nav nav--center">...</nav></div>
   </header>
========================= */
.header.header--centered{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-line);
}

/* 1ª fila: logo centrado + redes */
.header__inner--centered{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

.header__brand{ justify-self: center; }

.brand__logo{
  width: 220px;
  max-width: 70vw;
  height: auto;
}

.header__social{
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Iconos redondos */
.social{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .15s ease;
}
.social:hover{ transform: translateY(-1px); }
.social svg{
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* 2ª fila: menú centrado */
.header__navrow{
  border-top: 1px solid rgba(0,0,0,.06);
  background: #ffffff;
}

.nav.nav--center{
  display: flex;
  justify-content: center;
  gap: 34px;
  align-items: center;
  padding: 10px 0 12px;
}

.nav.nav--center a{
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--header-link);
  padding: 8px 6px;
}
.nav.nav--center a:hover{ color: var(--header-text); }

/* Botón hamburguesa */
.burger{
  display: none;
  justify-self: end;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* Menú móvil */
.mobile{
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--stroke);
}
.mobile a{
  display: block;
  padding: 14px 4%;
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 600;
}
.mobile__cta{
  color: var(--brand-brown);
  font-weight: 900;
}
.mobile.open{ display: block; }

/* =========================
   HERO (pantalla completa)
   - Si usas imagen centrada: .hero__center + .hero__image
========================= */
.hero{
  position: relative;
  min-height: calc(100vh - 140px); /* deja espacio al header (fila logo + menú) */
  display: flex;
  align-items: center;
  padding: 0;
  background: #ffffff;
}

.hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 30%, rgba(127,191,122,.14), transparent 60%),
    radial-gradient(800px 400px at 75% 30%, rgba(156,107,74,.12), transparent 60%);
  pointer-events: none;
}

.hero__content{
  position: relative;
  width: 100%;
  padding: 40px 0 30px; /* aire sin cortar el 100vh */
}

/* Centrado (si lo usas) */
.hero__center{ text-align: center; }
.hero__center .hero__actions{ justify-content: center; }

.hero__image{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 22px;
}

/* Textos */
.pill{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

h1{
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
}

.hero__subtitle{
  margin: 8px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.hero__text{
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Botones */
.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn{
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}
.btn--primary:hover{ background: var(--brand-brown); }

.btn--ghost{
  background: #ffffff;
  color: var(--text);
}
.btn--ghost:hover{ border-color: rgba(0,0,0,.16); }

/* =========================
   SECCIONES (tiras)
========================= */
.section{ padding: 60px 0; }

.section__head h2{
  margin: 0;
  font-size: 30px;
}
.section__head p{
  margin: 10px 0 26px;
  color: var(--muted);
}

/* Fondos por sección */
.section--asesoria{ background: var(--sec-asesoria); }
.section--servicios{ background: var(--sec-servicios); }
.section--elegirnos{ background: var(--sec-elegirnos); }
.section--contacto{ background: var(--sec-contacto); }

/* =========================
   GRID / TARJETAS
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card h3{ margin-top: 0; }
.card--link{ cursor: pointer; }

.card__more{
  margin-top: 10px;
  font-weight: 800;
  color: var(--primary);
}

/* =========================
   POR QUÉ NOSOTROS
========================= */
.split{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.checklist{
  list-style: none;
  padding: 0;
}

.checklist li{
  padding-left: 24px;
  margin: 10px 0;
  position: relative;
  color: var(--muted);
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-brown);
  font-weight: 900;
}

.panel{
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
}

/* =========================
   CONTACTO
========================= */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact__box{
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
}

.contact__actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Formulario */
.form label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--muted);
}
.form input,
.form textarea{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  margin-top: 6px;
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__links{
  display: flex;
  gap: 14px;
  color: var(--muted);
}

/* =========================
   WHATSAPP
========================= */
.wa{
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 900;
  box-shadow: var(--shadow);
  z-index: 60;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .header__inner--centered{ grid-template-columns: auto 1fr auto; }
  .header__brand{ justify-self: start; }
  .nav.nav--center{ display: none; }
  .burger{ display: block; }

  .hero{ min-height: calc(100vh - 90px); }
  .hero__content{ padding: 28px 0 22px; }
}
/* HERO partido: texto izq + imagen dcha */
.hero__split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero__copy{
  text-align: left;
}

.hero__inspire{
  font-size: 18px;
  color: var(--muted);
  margin: 14px 0 22px;
  max-width: 52ch;
}

/* Imagen del hero */
.hero__media{
  display: flex;
  justify-content: flex-end;
}

.hero__image{
  width: 115%;
  max-width: 640px;
  height: auto;
}

/* Botón CTA: verde + letras negras */
.btn--cta{
  background: var(--brand-green);
  color: #000;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
}

.btn--cta:hover{
  background: var(--brand-green-light);
}

/* Responsive */
@media (max-width: 900px){
  .hero__split{
    grid-template-columns: 1fr;
  }
  .hero__media{
    justify-content: center;
  }
  .hero__copy{
    text-align: center;
  }
  .hero__copy .hero__actions{
    justify-content: center;
  }
}
/* --- HERO como “Financial Health”: imagen grande izq + texto dcha --- */

/* OJO: hacemos el contenedor más ancho SOLO en el hero */
.hero .container{
  width: min(1280px, 94%);
}

/* Grid con proporción tipo 65/35 */
.hero__split{
  display: grid;
  grid-template-columns: 1.7fr 1fr; /* imagen más grande */
  gap: 48px;
  align-items: center;
}

/* Imagen izquierda: grande y “bloque” */
.hero__media{
  order: 1;                 /* imagen a la izquierda */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Texto derecha */
.hero__copy{
  order: 2;                 /* texto a la derecha */
  max-width: 520px;
}

/* Imagen más grande, sin “cuadro” */
.hero__image{
  width: 100%;
  max-width: 880px;         /* sube esto si la quieres aún mayor */
  height: auto;
  transform: none;          /* quitamos la subida si la tenías */
  border-radius: 0;         /* como el ejemplo */
  box-shadow: none;         /* como el ejemplo */
}

/* Responsive: en móvil, texto arriba e imagen abajo */
@media (max-width: 900px){
  .hero__split{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero__media{ order: 2; justify-content: center; }
  .hero__copy{ order: 1; max-width: 100%; text-align: center; }
  .hero__actions{ justify-content: center; }
  .hero__image{ max-width: 520px; }
}
/* HERO: imagen desde el borde izquierdo hasta media pantalla */
.hero--edge{
  position: relative;
  min-height: calc(100vh - 140px); /* ajusta si tu header es más alto/bajo */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* La imagen ocupa la mitad izquierda y nace arriba */
.hero--edge .hero__media{
  position: absolute;
  top: 0;
  left: 0;
  width: 50vw;    /* mitad de pantalla */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Imagen grande */
.hero--edge .hero__image{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* El texto se empuja a la derecha */
.hero--edge .container{
  position: relative;
  margin-left: 50vw;  /* deja el hueco de la imagen */
}

/* Bloque de texto */
.hero--edge .hero__copy{
  max-width: 520px;
  padding: 40px 0;
}

/* Móvil */
@media (max-width: 900px){
  .hero--edge{
    min-height: auto;
    flex-direction: column;
  }

  .hero--edge .hero__media{
    position: relative;
    width: 100%;
    height: auto;
  }

  .hero--edge .container{
    margin-left: 0;
  }

  .hero--edge .hero__copy{
    text-align: center;
    padding: 28px 0;
    max-width: 100%;
  }

  .hero--edge .hero__actions{
    justify-content: center;
  }

  .hero--edge .hero__image{
    width: 100%;
    height: auto;
    max-width: 520px;
  }
}
/* =========================
   LÍNEAS MARRONES SEPARADORAS
========================= */

.section--line{
  border-top: 2px solid var(--brand-brown);
}
/* ===== CORREGIR "POR QUÉ ELEGIRNOS" ===== */

/* Fondo blanco REAL, de lado a lado */
.section--elegirnos{
  background: #ffffff;
}

/* Más separación respecto a Servicios */
.section--elegirnos{
  padding-top: 90px;   /* antes tenía 60px */
}

/* Evitar que se vea el verde de la sección anterior */
.section--elegirnos .container{
  background: #ffffff;
}
/* ===== AJUSTE DE ESPACIADO: SERVICIOS ===== */

.section--servicios{
  padding-top: 100px;
  padding-bottom: 100px;
}
/* =========================
   POR QUÉ ELEGIRNOS · IMAGEN
========================= */

.panel--media{
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.elegirnos__image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Ajuste responsive */
@media (max-width: 900px){
  .panel--media{
    margin-top: 20px;
  }
}
/* =========================
   POR QUÉ ELEGIRNOS (50/50 + estilo hero)
========================= */

/* 50/50 exacto */
.section--elegirnos .split{
  display: grid;
  grid-template-columns: 1fr 1fr; /* mitad y mitad */
  gap: 28px;
  align-items: center;
}

/* Texto con look "hero" */
.section--elegirnos h2{
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.section--elegirnos .muted{
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}

/* Checklist más fina, como hero */
.section--elegirnos .checklist li{
  color: var(--muted);
  font-size: 15px;
}

/* Panel de imagen: sin recorte */
.section--elegirnos .panel--media{
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  min-height: 360px; /* para que tenga presencia */
}

/* Imagen sin cortar: "contain" + centrada */
.section--elegirnos .elegirnos__image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;     /* <-- NO RECORTA */
  object-position: center; /* centrada */
  background: #fff;
}

/* Responsive */
@media (max-width: 900px){
  .section--elegirnos .split{
    grid-template-columns: 1fr;
  }
  .section--elegirnos .panel--media{
    min-height: 260px;
  }
}
/* =========================
   POR QUÉ ELEGIRNOS – IMAGEN GRANDE SIN FONDO BLANCO
========================= */

/* Más espacio para la imagen (derecha) */
.section--elegirnos .split{
  display: grid;
  grid-template-columns: 1fr 1.55fr;  /* <- imagen MÁS grande */
  gap: 34px;
  align-items: center;
}

/* Panel sin rellenos ni zonas blancas */
.section--elegirnos .panel--media{
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 0;
  box-shadow: var(--shadow);
  background: transparent; /* <- NO blanco */
}

/* Imagen a lo ancho, sin "caja" blanca */
.section--elegirnos .elegirnos__image{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;     /* <- rellena el panel (sin bandas blancas) */
  object-position: center;
  border-radius: 26px;   /* <- misma curva que el panel */
}

/* Texto estilo hero (sin tocar tu HTML) */
.section--elegirnos h2{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section--elegirnos .muted{
  margin: 0 0 18px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--muted);
}

.section--elegirnos .checklist li{
  font-size: 15px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
  .section--elegirnos .split{
    grid-template-columns: 1fr;
  }
  .section--elegirnos .elegirnos__image{
    border-radius: 22px;
  }
}
.card--pack{
  max-width: 720px;
}
/* ===== Pack de servicios (Laboral) ===== */
.pack{
  max-width: 980px;
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.pack__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 16px;
}

.pack__kicker{
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pack__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.pack__price{
  flex: 0 0 auto;
  background: #e6f4ee;
  border: 1px solid rgba(47,133,90,.25);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: right;
  min-width: 150px;
}

.pack__from{
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 2px;
}

.pack__amount{
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.pack__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.pack__list li{
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
}

.pack__list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}

.pack__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

/* Responsive */
@media (max-width: 900px){
  .pack{ padding: 18px; }
  .pack__head{ flex-direction: column; align-items: stretch; }
  .pack__price{ text-align: left; width: fit-content; }
  .pack__list{ grid-template-columns: 1fr; }
}
/* ===============================
   PACK LABORAL CENTRADO
================================ */

.container--center{
  display: flex;
  justify-content: center;
}

.pack--center{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px 52px;
  text-align: center;
}

/* Título en una línea */
.pack__title{
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

/* Texto principal MÁS GRANDE */
.pack__text{
  font-size: 20px;          /* ⬅️ AQUÍ lo hacemos más grande */
  line-height: 1.75;
  color: var(--text);
  max-width: 960px;
  margin: 0 auto 32px;
}

/* Botones centrados */
.pack__actions--center{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .pack--center{
    padding: 30px 22px;
  }

  .pack__text{
    font-size: 17px;
  }
}
/* ===============================
   BLOQUE GESTIÓN LABORAL
================================ */

/* Título centrado y en una línea */
.pack__title{
  text-align: center;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin: 0 auto 36px;
  max-width: 100%;
  white-space: nowrap;       /* ⬅️ fuerza una línea */
}

/* Recuadro ancho y centrado */
.pack--wide{
  max-width: 1100px;         /* ⬅️ aquí lo hacemos grande */
  width: 100%;
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Texto grande y cómodo de leer */
.pack__text{
  font-size: 20px;           /* ⬅️ más grande */
  line-height: 1.8;
  color: var(--text);
  max-width: 960px;          /* ⬅️ evita líneas demasiado largas */
  margin: 0 auto;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .pack__title{
    white-space: normal;     /* en móvil sí puede partir */
  }

  .pack--wide{
    padding: 32px 22px;
  }

  .pack__text{
    font-size: 17px;
  }
}
