/* ================================================
   LANDING.CSS - Dra. Angelina
   Componentes extra para las landing pages prioritarias.
   Reutiliza la paleta y tipografía de style.css / pages-layout.css.
   Primario #a67a91 | Navy #202647 | Cuerpo #6b6b84 | Acento #0473b9
   Se carga al final del <head>, después de pages-layout.css.
   ================================================ */

/* ---- Breadcrumb bar (fondo claro, arriba del hero) ---- */
.landing-breadcrumb-bar {
    background: #f6eef2;
    padding: 12px 0;
    border-bottom: 1px solid #efe3ea;
}
.landing-breadcrumb-bar .breadcrumb-nav a {
    color: #a67a91;
    font-size: 14px;
    transition: 0.3s;
}
.landing-breadcrumb-bar .breadcrumb-nav a:hover {
    color: #202647;
}
.landing-breadcrumb-bar .breadcrumb-nav span {
    color: #b3a3ac;
    font-size: 14px;
    margin: 0 8px;
}
.landing-breadcrumb-bar .breadcrumb-nav .current {
    color: #202647;
    font-size: 14px;
}

/* ---- Hero (mismo tratamiento visual del hero de index.php) ---- */
.landing-hero {
    background-color: #f9f9f9;
    padding: 55px 0;
    overflow: hidden;
}
.landing-hero .hero-content h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #202647;
}
.landing-hero .hero-content .hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: #6b6b84;
}
.landing-hero .hero-btn .default-btn {
    padding: 16px 38px;
}
.landing-hero .hero-image {
    text-align: center;
}
/* !important y mayor especificidad para ganarle a la regla
   img[src*="dra-angelina"] de pages-layout.css y capar la altura del hero */
.landing-hero .hero-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 470px !important;
    object-fit: contain !important;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
}

/* ---- Barra de confianza ---- */
.trust-bar {
    background: #ffffff;
    padding: 35px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}
.trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
}
.trust-bar .trust-item .trust-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f3e7ee;
    color: #a67a91;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.trust-bar .trust-item .trust-text strong {
    display: block;
    color: #202647;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}
.trust-bar .trust-item .trust-text span {
    font-size: 13px;
    color: #6b6b84;
}

/* ---- Steps grid (qué incluye / cómo es) ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.steps-grid .step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #a67a91;
    transition: 0.3s;
}
.steps-grid .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.steps-grid .step-card .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a67a91, #c49aae);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.steps-grid .step-card h3 {
    font-size: 18px;
    color: #202647;
    margin-bottom: 10px;
}
.steps-grid .step-card p {
    font-size: 15px;
    color: #6b6b84;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Why cards (Por qué con la Dra. Angelina) ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.why-grid .why-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 32px 25px;
    text-align: center;
    transition: 0.3s;
}
.why-grid .why-card:hover {
    background: #fdf8fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}
.why-grid .why-card .why-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #b5e2fa;
    color: #0473b9;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: 0.3s;
}
.why-grid .why-card:hover .why-icon {
    background: #a67a91;
    color: #ffffff;
}
.why-grid .why-card h3 {
    font-size: 19px;
    color: #202647;
    margin-bottom: 10px;
}
.why-grid .why-card p {
    font-size: 15px;
    color: #6b6b84;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Enlaces relacionados ---- */
.related-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}
.related-links a.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #f0e6ec;
    border-radius: 10px;
    padding: 18px 22px;
    color: #202647;
    font-weight: 500;
    transition: 0.3s;
}
.related-links a.related-link i {
    color: #a67a91;
    font-size: 22px;
    flex-shrink: 0;
    transition: 0.3s;
}
.related-links a.related-link:hover {
    border-color: #a67a91;
    box-shadow: 0 6px 18px rgba(166, 122, 145, 0.15);
    color: #a67a91;
}
.related-links a.related-link:hover i {
    transform: translateX(4px);
}

/* ---- Nota / deslinde destacado con enlace ---- */
.landing-note {
    background: #f8f0f4;
    border-left: 4px solid #a67a91;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 25px;
    color: #6b6b84;
    font-size: 15px;
    line-height: 1.6;
}
.landing-note a {
    color: #a67a91;
    font-weight: 600;
    text-decoration: underline;
}

/* ---- CTA de cierre: teléfono clickeable ---- */
.cta-block .cta-phone {
    display: block;
    margin-top: 18px;
    font-size: 17px;
    color: #202647;
    font-weight: 600;
}
.cta-block .cta-phone a {
    color: #a67a91;
}

/* ---- Paquetes / precios ---- */
.price-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.price-card {
    background: #ffffff;
    border: 1px solid #f0e6ec;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.price-card.featured {
    border: 2px solid #a67a91;
}
.price-card h3 {
    font-size: 21px;
    color: #202647;
    margin-bottom: 6px;
}
.price-card .price-tag {
    font-size: 34px;
    font-weight: 700;
    color: #a67a91;
    font-family: 'Poppins', sans-serif;
    margin: 8px 0 4px;
    line-height: 1.1;
}
.price-card .price-tag span {
    font-size: 15px;
    font-weight: 500;
    color: #6b6b84;
}
.price-card .price-includes {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    flex-grow: 1;
}
.price-card .price-includes li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f0f3;
    color: #6b6b84;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
}
.price-card .price-includes li:last-child {
    border-bottom: none;
}
.price-card .price-includes li i {
    color: #a67a91;
    font-size: 18px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}
.price-note {
    font-size: 13px;
    color: #9a9aa8;
    margin-top: 16px;
    line-height: 1.5;
}

@media only screen and (max-width: 767px) {
    .price-cards {
        grid-template-columns: 1fr;
    }
}

/* ---- Home: sección "Especialista en la atención de la mujer" (#doctora) ----
   Limpieza de la composición vieja: se oculta la foto anterior y las formas
   decorativas (revertir = borrar este bloque) y queda solo la imagen nueva,
   en flujo normal, sin position absolute ni padding fantasma. */
#doctora .about-image {
    padding-bottom: 0;
    padding-right: 0;
    text-align: center;
}
#doctora .about-image > img:first-child {
    display: none; /* foto vieja de la composición (Cambios_WEB_perfil-500x500-2-atras.png) */
}
#doctora .about-shape {
    display: none; /* figuras decorativas animadas (shape-1 y shape-2) */
}
#doctora .about-image > img:nth-child(2) {
    position: static;   /* quita el absolute que causaba el encimamiento */
    z-index: auto;
    display: block;
    width: 100%;
    max-width: 100%;    /* anula el max-width:385px de responsive.css en tablet */
    height: auto;       /* proporción natural 3:2, sin recorte */
    border-radius: 20px; /* mismo radio que las fotos grandes/hero del sitio */
}

/* Móvil y tablet (columnas apiladas): primero el texto, después la imagen */
@media only screen and (max-width: 991px) {
    #doctora .col-lg-6:first-of-type {
        order: 2; /* columna de imagen abajo */
    }
    #doctora .col-lg-6:last-of-type {
        order: 1; /* columna de texto arriba */
    }
    #doctora .about-content {
        margin-top: 0; /* anula el margen pensado para cuando la imagen iba arriba */
    }
    #doctora .about-image {
        margin-top: 30px; /* misma separación que usan las demás secciones apiladas */
    }
}

/* ---- Home: tarjetas "Motivos de consulta más frecuentes" del mismo tamaño ---- */
#motivos-frecuentes .row {
    align-items: stretch;
}
#motivos-frecuentes .col-lg-4 {
    display: flex;
    margin-bottom: 30px;
}
#motivos-frecuentes .single-services {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
#motivos-frecuentes .services-image {
    height: 240px;
    overflow: hidden;
}
#motivos-frecuentes .services-image a {
    display: block;
    height: 100%;
}
#motivos-frecuentes .services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#motivos-frecuentes .services-content {
    flex-grow: 1;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media only screen and (max-width: 991px) {
    .landing-hero .hero-content h1 {
        font-size: 32px;
    }
    .steps-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil (CTA del hero visible sin scroll en 390px) */
@media only screen and (max-width: 767px) {
    .landing-hero {
        padding: 28px 0 34px;
    }
    .landing-hero .hero-content h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }
    .landing-hero .hero-content .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .landing-hero .hero-btn .default-btn {
        display: block;
        text-align: center;
        padding: 15px 20px;
    }
    .landing-hero .hero-image {
        margin-top: 28px;
    }
    .trust-bar {
        padding: 20px 0;
    }
    .trust-bar .trust-item {
        padding: 10px 5px;
    }
    .steps-grid,
    .why-grid,
    .related-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
