/* =========================
   VARIABLES GLOBALES
========================= */

:root {
    --nav-height: 85px;
    --color-principal: #C8A2C8;
    --color-secundario: #F8E1F4;
    --color-acento: #9F86C0;
    --color-texto: #4A4A4A;
}

/* =========================
   RESET BASE
========================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--color-texto);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   LAYOUT
========================= */

main {
    flex: 1;
    padding-top: var(--nav-height); /* Compensa navbar fixed */
}

/* =========================
   NAVBAR
========================= */

.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background-color: #fff;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-link:hover {
    color: var(--color-acento) !important;
}

.nav-link.active {
    color: var(--color-acento) !important;
}

/* =========================
   LOGO
========================= */

.logo-img {
    height: 70px; /* Más protagonista */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Ajuste del contenedor del brand */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}


/* =========================
   BRAND TEXT
========================= */

.brand-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4A4A4A;
    font-family: 'Playfair Display', serif;
}

.brand-text:hover {
    opacity: 0.8;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* Imagen de fondo */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/images/img-bg.png') center center / cover no-repeat;
    z-index: 1;
}

/* Capa de color encima de la imagen */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(159,134,192,0.65),
        rgba(200,162,200,0.55)
    );
    z-index: 2;
}

/* Contenido encima de todo */
.hero .container {
    position: relative;
    z-index: 3;
    color: #fff;
}

.hero h1 {
    font-weight: 600;
}

.hero::before {
    animation: zoomHero 20s ease-in-out infinite alternate;
}

@keyframes zoomHero {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* =========================
   BOTÓN PRINCIPAL HERO
========================= */

.btn-agendar {
    background: linear-gradient(
        135deg,
        var(--color-acento),
        var(--color-principal)
    );
    color: #fff;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(159,134,192,0.35);
    position: relative;
    overflow: hidden;
}

.btn-agendar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-agendar:hover::after {
    left: 125%;
}

.btn-agendar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(159,134,192,0.45);
    color: #fff;
}

.btn-agendar:active {
    transform: translateY(0);
}

/* =========================
   CARDS
========================= */

.card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* =========================
   SECCIÓN SERVICIOS
========================= */

.seccion-suave {
    background-color: #faf8fc;
}

/* Títulos */

.titulo-seccion {
    font-weight: 600;
    color: var(--color-acento);
}

.subtitulo-seccion {
    color: #777;
    font-size: 1rem;
}

/* =========================
   SECCIÓN SERVICIOS
========================= */

.seccion-suave {
    background-color: #faf8fc;
}

.titulo-seccion {
    font-weight: 600;
    color: var(--color-acento);
}

.subtitulo-seccion {
    color: #777;
    font-size: 1rem;
}

/* =========================
   CARD SERVICIOS
========================= */

.servicio-card {
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    padding: 40px 25px;
}

.servicio-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #4A4A4A;
}

.servicio-card p {
    color: #777;
    font-size: 0.95rem;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(159,134,192,0.15);
}

/* =========================
   MODAL EBOOK
========================= */

.ebook-modal {
    border-radius: 25px;
    padding: 40px 30px;
    border: none;
}

.ebook-modal h4 {
    color: #fff;
    font-weight: 600;
}

.ebook-img {
    max-height: 220px;
    object-fit: contain;
}

/* =========================
   SECCIÓN EBOOK
========================= */

.seccion-ebook {
    background: #ffffff;
}

.seccion-ebook h3 {
    font-weight: 600;
    color: var(--color-acento);
}

.ebook-preview {
    max-height: 300px;
    object-fit: contain;
    transition: 0.3s ease;
}

.ebook-preview:hover {
    transform: translateY(-5px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 25px;
        border-radius: 16px;
        margin-top: 8px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.08);
        animation: fadeInMenu 0.25s ease;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.2rem;
    }

    .modal-dialog {
        margin: 20px;
    }

    .ebook-modal {
        padding: 30px 20px;
    }

    .ebook-img {
        max-height: 180px;
    }
}

@media (max-width: 576px) {

    .hero {
        min-height: 75vh;
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .lead {
        font-size: 1rem;
    }

    .logo-img {
        height: 70px;
    }

    .btn-agendar {
        padding: 12px 28px;
        font-size: 1rem;
    }

}

@media (max-width: 480px) {

    .ebook-modal {
        padding: 25px 18px;
    }

    .ebook-img {
        max-height: 150px;
    }

}
