html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    line-height: 1.6;
    color: var(--color-negro);
    background: var(--color-blanco);
    -webkit-user-select: none;
    /* Safari, Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* viejo Edge */
    user-select: none;
    /* estándar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

:root {
    --color-azul: #18223C;
    --color-dorado: #AE7B39;
    --color-blanco: #ffffff;
    --color-negro: #000;
    --color-gris: #374151;
    --color-cielo: #A4D1E4;
    /* Hover (más claros) */
    --color-azul-hover: #166077;
    --color-dorado-hover: #c18a47;
    --color-blanco-hover: #F3F3F4;
    --color-gris-claro: #F3F3F4;
    --color-gris-hover: #d1d5db;
}

/* ==============================
   NAVBAR CENTRADO
============================== */
.barraNegra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(24, 34, 60, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 4.1rem;
    max-width: 1920px;
    margin: 0 auto;
}

.navbar-centrado {
    justify-content: center;
}

.logo-centrado {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-centrado a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: none;   /* Evita que se pueda hacer clic */
    cursor: default;        /* Quita el cursor de enlace */
}

.logo-centrado img {
    height: 3.65rem;
    margin: -0.25rem;
    padding: 0;
    width: auto;
    object-fit: contain;
    display: block;
}


/*Color letras doradas*/
.dorado {
    color: var(--color-dorado);
}

p {
    font-weight: 300;
}

.negrita {
    font-weight: 600;
    color: var(--color-blanco);
}

/* ==============================
   SECCION EBOOK
============================== */
.seccion-ebook {
    position: relative;
    padding: 9rem 3rem;
    background: var(--color-blanco);
    overflow: hidden;
}

.contenedor-ebook {
    max-width: 75rem;
    margin: 0 auto;
}

.encabezado-ebook {
    text-align: center;
    margin-bottom: 4rem;
}

.titulo-ebook {
    font-size: 3rem;
    line-height: 1.02;
    font-weight: 700;
    color: var(--color-negro);
    margin-bottom: 2rem;
    letter-spacing: 0.02rem;
}

.subtitulo-ebook {
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-negro);
    margin-bottom: 8rem;
}

/* ==============================
   TARJETA EBOOK
============================== */
.tarjeta-ebook {
    position: relative;
    max-width: 65rem;
    margin: 0 auto;
    background: var(--color-azul);
    border-radius: 0.7rem;
    padding: 4.5rem 4.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 1.2rem 2.5rem rgba(24, 34, 60, 0.18);
    overflow: visible;
}

.tarjeta-ebook::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 90% 100%, rgba(174, 123, 57, 0.16), transparent 30%);
    pointer-events: none;
    border-radius: inherit;
}

/* ==============================
   IMAGEN EBOOK
============================== */
.imagen-ebook {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 30rem;
    margin-left: -2rem;
    margin-top: -5rem;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen-ebook img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(2.4);
    transform-origin: center;
    filter: drop-shadow(0 1.2rem 1.1rem rgba(0, 0, 0, 0.35));
}

/* Animación premium tipo mapa 
.imagen-ebook-premium {
    opacity: 0;
    animation:
        entradaEbookPremium 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        flotacionEbook 4s ease-in-out 1.1s infinite;
}

.imagen-ebook-premium::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -90%;
    width: 45%;
    height: 160%;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%);
    transform: rotate(12deg);
    animation: brilloEbookPremium 4.5s ease-in-out 1.4s infinite;
    pointer-events: none;
}*/

/* ==============================
   CONTENIDO EBOOK
============================== */
.contenido-ebook {
    position: relative;
    z-index: 2;
    color: var(--color-blanco);
}

.titulo-tarjeta-ebook {
    font-size: 1.5rem;
    line-height: 1.18;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 1.6rem;
}

.contenido-ebook p {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
    max-width: 32rem;
}

.contenido-ebook strong {
    color: var(--color-blanco);
    font-weight: 700;
}

.texto-descarga-ebook {
    margin-top: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

/* ==============================
   FORMULARIO EBOOK
============================== */
.formulario-ebook {
    width: 100%;
    max-width: 31rem;
    margin-top: 1.3rem;
}

.fila-formulario-ebook {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.formulario-ebook input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-blanco);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.8rem 0.95rem;
    outline: none;
    border-radius: 0.12rem;
    transition:
        border 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.formulario-ebook input::placeholder {
    color: rgba(255, 255, 255, 0.86);
}

.formulario-ebook input:focus {
    border-color: var(--color-dorado);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 0.16rem rgba(174, 123, 57, 0.2),
        0 0.7rem 1.3rem rgba(0, 0, 0, 0.18);
    transform: translateY(-0.1rem);
}

.formulario-ebook>input {
    margin-bottom: 0.9rem;
}

/* ==============================
   BOTON EBOOK
============================== */
.btn-ebook {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-dorado);
    color: var(--color-blanco);
    border: 2px solid var(--color-dorado);
    border-radius: 0.12rem;
    padding: 0.95rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.18);
}

.btn-ebook::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -85%;
    width: 45%;
    height: 200%;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%);
    transform: rotate(12deg);
    animation: brilloBotonEbook 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.btn-ebook:hover {
    background: var(--color-blanco);
    color: var(--color-dorado);
    border-color: var(--color-blanco);
    transform: translateY(-0.15rem);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.22);
}

.btn-ebook:hover::before {
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(174, 123, 57, 0.06) 35%,
            rgba(174, 123, 57, 0.35) 50%,
            rgba(174, 123, 57, 0.06) 65%,
            transparent 100%);
}

/* ==============================
   ANIMACIONES EBOOK
============================== */
@keyframes entradaEbookPremium {
    0% {
        opacity: 0;
        transform: scale(1.55) translateY(1.5rem);
        filter: blur(0.15rem);
    }

    100% {
        opacity: 1;
        transform: scale(1.75) translateY(0);
        filter: blur(0);
    }
}

@keyframes flotacionEbook {

    0%,
    100% {
        transform: scale(1.75) translateY(0);
    }

    50% {
        transform: scale(1.78) translateY(-0.45rem);
    }
}

@keyframes brilloEbookPremium {
    0% {
        left: -90%;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    38% {
        left: 130%;
        opacity: 0;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

@keyframes brilloBotonEbook {
    0% {
        left: -85%;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    38% {
        left: 130%;
        opacity: 0;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

/* ==============================
   FOOTER
============================== */
.footer {
    padding: 2rem 3rem;
    background: #d9d9d9;
    text-align: center;
}

.contenedor-footer {
    max-width: 75rem;
    margin: 0 auto;
}

.copyright-footer {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-negro);
    margin-bottom: 1rem;
}

.link-footer {
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-negro);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link-footer:hover {
    color: var(--color-dorado);
}


/* =======================
   RESPONSIVE TABLETAS Y MÓVILES
   ======================= */

/* Tabletas: hasta 1024px */
@media (min-width: 751px) and (max-width: 1024px) {

    /*Seccion menus*/
    .navbar {
        padding: 1rem 2rem;
        gap: 2rem;
    }

    .navbar .logo img {
        height: 2rem;
    }

    .icono-telefono-nav {
        width: 2rem;
        height: 2rem;
    }

    .texto-contacto-nav span,
    .texto-contacto-nav strong {
        font-size: 1.2rem;
    }


    /*Seccion ebook*/
    .seccion-ebook {
        padding: 7rem 2rem;
    }

    .encabezado-ebook {
        margin-bottom: 3rem;
    }

    .titulo-ebook {
        font-size: 2.25rem;
        line-height: 1.05;
        margin-bottom: 1.5rem;
    }

    .subtitulo-ebook {
        font-size: 0.95rem;
        margin-bottom: 5rem;
    }

    .tarjeta-ebook {
        max-width: 56rem;
        padding: 3.5rem 3rem;
        grid-template-columns: 0.95fr 1.15fr;
        gap: 1.8rem;
    }

    .imagen-ebook {
        max-width: 24rem;
        margin-left: -1rem;
        margin-top: -3rem;
    }

    .imagen-ebook img {
        transform: scale(2);
    }

    .titulo-tarjeta-ebook {
        font-size: 1.25rem;
    }

    .contenido-ebook p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .formulario-ebook input {
        font-size: 0.78rem;
        padding: 0.75rem 0.85rem;
    }

    .btn-ebook {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    /*Footer*/
    .footer {
        padding: 1.8rem 1.5rem;
    }

    .copyright-footer {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .link-footer {
        font-size: 0.85rem;
    }

}

/* =======================
   RESPONSIVE MÓVILES
   ======================= */
@media (max-width: 750px) {

    /* Navbar más compacto */
    .navbar {
        padding: 0.8rem 2rem;
        gap: 1rem;
    }

    .navbar .logo img {
        height: 2.5rem;
    }

    .contacto-nav {
        gap: 0;
    }

    .icono-telefono-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .texto-contacto-nav {
        display: none;
    }

    /*Seccion ebook*/
    .seccion-ebook {
        padding: 7rem 1.5rem;
    }

    .encabezado-ebook {
        margin-bottom: 2.5rem;
    }

    .titulo-ebook {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1.2rem;
    }

    .titulo-ebook br,
    .subtitulo-ebook br,
    .titulo-tarjeta-ebook br {
        display: none;
    }

    .subtitulo-ebook {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 24rem;
        margin: 0 auto 10rem;
    }

    .tarjeta-ebook {
        grid-template-columns: 1fr;
        max-width: 28rem;
        padding: 3rem 1.4rem 2rem;
        gap: 2.2rem;
        text-align: center;
        overflow: visible;
    }

    .imagen-ebook {
        max-width: 20rem;
        margin: 0 auto;
        margin-top: 0;
    }

    .imagen-ebook img {
        transform: scale(1.9);
        margin-top: -4rem;
        margin-bottom: 4rem;
    }

    .contenido-ebook {
        width: 100%;
    }

    .titulo-tarjeta-ebook {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }

    .contenido-ebook p {
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .texto-descarga-ebook {
        margin-top: 1.1rem;
        margin-bottom: 1rem;
    }

    .formulario-ebook {
        max-width: 100%;
        margin-top: 1rem;
    }

    .fila-formulario-ebook {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .formulario-ebook input {
        font-size: 0.9rem;
        padding: 0.8rem 0.85rem;
        margin-bottom: 0.75rem;
    }

    .formulario-ebook>input {
        margin-bottom: 0.9rem;
    }

    .btn-ebook {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    /*Footer*/
    .footer {
        padding: 1.6rem 1.2rem;
    }

    .copyright-footer {
        font-size: 0.76rem;
        margin-bottom: 0.5rem;
    }

    .link-footer {
        font-size: 0.76rem;
    }

}