/* ============================================================
   pages/home.css
   HOME — estilos exclusivos de la home
   Regla de oro (refactor premium): NO sobrescribir componentes globales
   (cards, process, forms, sections, hero base). Solo composición local.
   ============================================================ */

/* ============================================================
   HOME — tokens locales (solo home)
   ============================================================ */
:root{
  --home-accent: var(--primary-500);
  --home-accent-2: var(--primary-600);

  --home-soft-border: rgba(15, 23, 42, 0.10);
  --home-soft-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --home-card-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   HERO PRINCIPAL — imagen izquierda / texto derecha
   (Tu HTML usa .hero.hero--main dentro de .page-home)
   ============================================================ */

.page-home .hero--main {
  position: relative;
  display: grid;
  grid-template-columns: 70% 30%;
  min-height: clamp(430px, 80vh, 640px);
  overflow: hidden;
  background: #0f172a;
}

/* IMAGEN */
.page-home .hero--main .hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-home .hero--main .hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY (solo home) */
.page-home .hero--main .hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.42) 30%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.00) 100%
  );
}

/* Glow premium de marca (muy sutil) */
.page-home .hero--main::before{
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 72% 30%,
      rgba(59,130,246,0.22),
      rgba(59,130,246,0.00) 62%),
    radial-gradient(1100px 700px at 10% 10%,
      rgba(59,130,246,0.10),
      rgba(59,130,246,0.00) 60%);
}

/* CONTENIDO — panel azul hero */
.page-home .hero--main .hero__content {
  position: relative;
  z-index: 3;

  /* 👉 rellena toda la columna derecha */
  width: 100%;
  height: 100%;
  max-width: none;
  margin-left: 0;

  padding: clamp(32px, 4vw, 64px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;

  color: #fff;
  align-items: flex-start;
  text-align: left;

  /* 👉 azul eléctrico con profundidad (tu elección) */
  background: linear-gradient(
    180deg,
    var(--color-brand),
    var(--color-brand-dark)
  );


}


.page-home .hero--main .hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.82);
}

/* Título con acento “Apple-like” */
.page-home .hero--main .hero__title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  position: relative;
}

.page-home .hero--main .hero__title::after{
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-accent), rgba(59,130,246,0.15));
}

.page-home .hero--main .hero__subtitle {
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .hero--main .hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Botón primary más “premium” dentro del hero */
.page-home .hero--main .hero__actions .btn--primary{
  box-shadow: 0 16px 34px rgba(59,130,246,0.22);
}

/* Ghost ajustado SOLO en hero */
.page-home .hero--main .hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}

.page-home .hero--main .hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Responsive hero */
@media (max-width: 900px) {
  .page-home .hero--main {
    grid-template-columns: 1fr;
  }

  .page-home .hero--main .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(5, 20, 30, 0.55) 0%,
      rgba(5, 20, 30, 0.45) 40%,
      rgba(5, 20, 30, 0.65) 100%
    );
  }

  .page-home .hero--main .hero__content {
    margin-left: 0;
    text-align: center;
    align-items: center;
    padding: 50px 26px;
    max-width: 100%;
  }

  .page-home .hero--main .hero__title::after{
    margin-left: auto;
    margin-right: auto;
  }
}

/* Botones grises SOLO en hero */
.page-home .hero--main .btn--primary,
.page-home .hero--main .btn--ghost{
  background: #e5e7eb;
  color: #0f172a;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}

.page-home .hero--main .btn--primary:hover,
.page-home .hero--main .btn--ghost:hover{
  background: #d1d5db;
}
/* Refinado: secundario más claro (sin romper jerarquía) */
.page-home .hero--main .btn--ghost{
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 14px rgba(15,23,42,0.12);
}

.page-home .hero--main .btn--ghost:hover{
  background: rgba(255, 255, 255, 0.55);
}


/* ============================================================
   QUIÉNES SOMOS (welcome)
   OJO: antes estabas sobreescribiendo .section--soft global.
   Ahora lo limitamos a la home.
   ============================================================ */

.page-home .section--soft {
  background:
    radial-gradient(900px 320px at 18% 8%, rgba(59,130,246,0.10), rgba(59,130,246,0.00) 60%),
    radial-gradient(520px 260px at 92% 20%, rgba(38,199,213,0.08), rgba(38,199,213,0.00) 55%),
    rgba(255, 255, 255, 1);
}

.page-home .section--soft .container-global {
  max-width:900px;
}

.page-home .section--soft p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-800, #424242);
}

.page-home .section--soft p strong {
  font-weight: 600;
  color: var(--grey-900, #222);
}

.page-home .section--soft .btn-link {
  margin-top: 10px;
}

/* ============================================================
   PROCESO (solo composición/espaciado)
   (La base visual de .process-card vive en components/process.css)
   ============================================================ */

.page-home .process {
  text-align: center;
}

.page-home .process__grid {
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 26px;
}

/* Toque de marca en iconos (sin tocar el componente base) */
.page-home .process-card i{
  color: var(--home-accent);
  filter: drop-shadow(0 12px 18px rgba(59,130,246,0.18));
}

/* ============================================================
   SERVICIOS / FISIOTERAPIA
   Importante:
   - NO redefinir .card--wide aquí (es componente global)
   - NO redefinir .cards-grid global
   Solo lo que sea “layout de sección”.
   ============================================================ */

.page-home .services-grid {
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 10px;
}

/* Ajustes específicos de cards de servicios (no afectan al componente general) */
.page-home .services-card {
  text-align: center;
}

/* Imagen */
.page-home .services-card .card__img {
  height: 220px;
  object-fit: cover;
  display: block;

  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Título (menos “bloque” + mejor jerarquía) */
.page-home .services-card .card__title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-align: left;
  padding-inline: 16px;
}

/* Acento azul premium en cards (solo home) */
.page-home .services-grid .card{
  position: relative;
  border: 1px solid rgba(59,130,246,0.10);
  box-shadow: var(--home-card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.page-home .services-grid .card::after{
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-accent), rgba(59,130,246,0.12));
  opacity: 0.85;
}

@media (hover: hover){
  .page-home .services-grid .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15,23,42,0.10);
    border-color: rgba(59,130,246,0.22);
  }
  .page-home .services-grid .card:hover::after{
    opacity: 1;
  }
}

/* ============================================================
   EQUIPO (sección especial)
   ============================================================ */

.page-home .equipo-section {
  background:
    radial-gradient(900px 320px at 18% 0%, rgba(59,130,246,0.10), rgba(59,130,246,0.00) 60%),
    #f7f9fb;
  border-radius: 28px;
  margin-inline: 12px;

  border: 1px solid rgba(15,23,42,0.06);
}

.page-home .equipo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  position: relative;
}

.page-home .equipo-foto img {
  width: 100%;
  max-width: 640px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.page-home .equipo-texto {
  max-width: 540px;
}

.page-home .equipo-texto p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-800, #444);
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .page-home .equipo-section {
    margin-inline: 0;
    border-radius: 0;
  }

  .page-home .equipo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-home .equipo-foto img {
    max-width: 100%;
  }

  .page-home .equipo-texto {
    max-width: 100%;
    text-align: center;
  }

  .page-home .equipo-texto .btn-link {
    margin-inline: auto;
  }
}

/* ============================================================
   Reservas / Form
   ============================================================ */

.page-home .form--reservation {
  margin-top: 24px;
}

/* ============================================================
   Separador logo (solo home)
   OJO: .section-divider existe global; aquí solo cambias el look en home
   ============================================================ */

.page-home .section-divider {
  background:
    radial-gradient(900px 320px at 50% 10%, rgba(59,130,246,0.10), rgba(59,130,246,0.00) 60%),
    #e5e9ef;
  height: 150px;
}

.page-home .section-divider .evolucenter {
  max-height: 100%;
  width: auto;
}

/* ============================================================
   DÓNDE ENCONTRARNOS (home)
   ============================================================ */

.page-home .donde-encontrarnos .section-intro {
  margin-bottom: 22px;
}

.page-home .donde-encontrarnos .location-info {
  margin-top: 26px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.7;
}

.page-home .donde-encontrarnos .location-info a {
  color: var(--home-accent);
}

/* ============================================================
   PARALLAX (home)
   Nota: en iOS background-attachment: fixed se degrada a scroll
   ============================================================ */

.page-home .parallax {
  position: relative;
  width: 100%;
  height: clamp(260px, 40vh, 480px);

  background-image: url("/public/images/parallax.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  border-radius: 24px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-block: clamp(22px, 4vh, 40px);
}

/* Overlay */
.page-home .parallax__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 320px at 30% 20%, rgba(59,130,246,0.18), rgba(59,130,246,0.00) 60%),
    rgba(0, 0, 0, 0.40);
  z-index: 1;
}

/* Content */
.page-home .parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 20px;
}

.page-home .parallax-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ================================
   MOBILE FIX (robusto)
   - Evita problemas de background en móvil/iOS
   - Imagen siempre visible usando ::before
================================= */
@media (max-width: 768px) {
  .page-home .parallax {
    background-image: none;       /* desactivamos bg en móvil */
    background-attachment: scroll;

    align-items: flex-end;
    justify-content: center;
    padding: 14px;
  }

  /* Capa de imagen (siempre se renderiza bien) */
  .page-home .parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/public/images/parallax.jpg");
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    z-index: 0;
  }

  /* Overlay menos oscuro en móvil + por encima de la imagen */
  .page-home .parallax__overlay {
    z-index: 1;
    background:
      radial-gradient(700px 260px at 30% 20%, rgba(59,130,246,0.14), rgba(59,130,246,0.00) 60%),
      rgba(0, 0, 0, 0.22);
  }

  .page-home .parallax-content {
    width: min(560px, 100%);
    padding-inline: 0;
    z-index: 2;
  }

  .page-home .parallax-content h2 {
    margin: 0;
    font-size: clamp(1.2rem, 4.4vw, 1.6rem);
    line-height: 1.2;

    display: inline-block;
    padding: 12px 14px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);

    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
  }
}

/* ============================================================
   HOME — Títulos de sección con presencia real
   ============================================================ */

.page-home .section-header{
  position: relative;
  padding-block: clamp(8px, 1.6vw, 14px) clamp(10px, 2vw, 18px);
  margin-bottom: clamp(12px, 2vw, 18px);
}


.page-home .section-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 120px at 50% 0%,
      rgba(59,130,246,0.12),
      rgba(59,130,246,0.00) 70%
    );
  pointer-events: none;
}

.page-home .section-header .section-title{
  position: relative;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--neutral-900, #0f172a);
}

.page-home .section-header .section-title::after{
  content: "";
  display: block;
  width: 96px;
  height: 3px;
  margin: 12px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary-500),
    var(--primary-300),
    rgba(59,130,246,0.15)
  );
}

.page-home .section-header .section-intro{
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--neutral-700, #475569);
}
.page-home .section {
  padding-block: clamp(34px, 4.8vw, 72px);
}
/* ============================================================
   HOME — CÓMO TRABAJAMOS (móvil: ver las 4 en conjunto)
   Objetivo: 2x2 en móvil, sin tocar desktop
   ============================================================ */
@media (max-width: 640px) {
  .page-home #proceso .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home #proceso .process-card {
    padding: 14px 12px;        /* más compacto */
    border-radius: 14px;
  }

  .page-home #proceso .process-card i {
    font-size: 28px;           /* icono un poco más pequeño */
    margin-bottom: 8px;
  }

  .page-home #proceso .process-card h3 {
    font-size: 0.95rem;        /* título compacto */
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .page-home #proceso .process-card p {
    font-size: 0.85rem;        /* texto compacto */
    line-height: 1.35;
  }
}
