/* 
   English Personal Coaching - Premium Dark Theme Stylesheet
   Integrated with Bootstrap 5.3.3
   Accentuated with Gold, Silver, Black, and White details.
*/

:root {
    --gold: #D4AF37;
    --dark-gold: #B8941F;
    --black: #0a0a0a;
    --black-soft: #141414;
    --black-card: #1c1c1e;
    --white: #ffffff;
    --light-gray: #b0b0b5;
    --silver-start: #ffffff;
    --silver-end: #a1a1a6;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------
   Premium Preloader
-------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#particles-preloader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    /* Detrás de las letras */
    pointer-events: none;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.falling-letters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.falling-letters .letter {
    font-family: var(--font-secondary);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    opacity: 0;
    transform: translateY(-150px) rotateX(45deg);

    /* Propiedades de animación separadas para evitar bugs en navegadores móviles (Safari/iOS) */
    animation-name: fallDown, pulseFlare;
    animation-duration: 1s, 1.5s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275), ease-in-out;
    animation-fill-mode: forwards, forwards;
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
}

.falling-letters .letter:nth-child(1) {
    animation-delay: 0.1s, 1.2s;
}

.falling-letters .letter:nth-child(2) {
    animation-delay: 0.3s, 1.2s;
}

.falling-letters .letter:nth-child(3) {
    animation-delay: 0.5s, 1.2s;
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-150px) scale(0.3) rotateX(60deg);
    }

    70% {
        transform: translateY(15px) scale(1.1) rotateX(-10deg);
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes pulseFlare {
    0% {
        text-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
        color: var(--gold);
    }

    100% {
        text-shadow: 0 10px 40px rgba(212, 175, 55, 1), 0 0 20px rgba(255, 255, 255, 0.9);
        color: #fffcf0;
        /* Destello casi blanco sin usar filter que causa problemas en móvil */
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Base Styles & Overrides */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--light-gray);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

section {
    padding: 5rem 0;
    position: relative;
    background-color: var(--black) !important;
    overflow-x: hidden;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
}

#recursos::after {
    display: none;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem);
    /* Tipografía dinámica y fluida */
    font-weight: 500;
    margin-bottom: 4rem;
    color: var(--white);
}

.section-title span {
    color: var(--gold);
    font-style: italic;
}

/* Optimización de Espacios en Blanco para Móviles */
@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
        /* Reduce drásticamente el espacio muerto entre secciones */
    }

    .section-title {
        margin-bottom: 2rem;
        /* Reduce el espacio muerto debajo de los títulos principales */
    }
}

/* Premium Floating Navbar (Glassmorphism) */
header.navbar {
    background: transparent !important;
    border-bottom: none;
    padding: 0.5rem 0;
    transition: var(--transition);
}

/* En escritorio, el menú es una píldora flotante */
@media (min-width: 992px) {
    header.navbar {
        top: 8px;
        /* Pegado más al borde superior */
        padding: 0;
    }

    header.navbar .nav-container {
        background: rgba(10, 10, 10, 0.3);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50px;
        padding: 0.1rem 1.5rem !important;
        /* Reducido para hacer el menú más angosto */
        transition: var(--transition);
    }

    header.navbar.scrolled .nav-container {
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 0 1.5rem !important;
        /* Aún más angosto al hacer scroll */
    }
}

/* En móvil, el menú es barra completa */
@media (max-width: 991.98px) {
    header.navbar.scrolled {
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        padding: 0.4rem 0;
    }
}

.logo {
    flex: 0 0 15%;
    max-width: 15%;
}

.logo a.navbar-brand {
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    #navbarNav {
        flex: 0 0 85%;
        max-width: 85%;
        justify-content: flex-end;
    }
}

.nav-logo-img {
    height: auto;
    max-height: 50px;
    /* Reducido para no estirar el navbar hacia abajo */
    width: 100%;
    /* Evita que desborde el 15% del contenedor */
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
}

header.navbar.scrolled .nav-logo-img {
    max-height: 40px;
    /* Más pequeño al hacer scroll */
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.4rem 1rem !important;
    margin: 0 0.2rem;
    color: var(--white) !important;
    opacity: 0.9;
    border-radius: 30px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.1);
    opacity: 1;
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    border: none;
    padding: 0.4rem 1.5rem !important;
    color: var(--black) !important;
    border-radius: 30px !important;
    font-weight: 700;
    margin-left: 1rem;
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #FFD700, var(--gold));
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.nav-cta::after {
    display: none !important;
    /* No underline on the button */
}

/* Animated Hamburger Menu */
.custom-toggler {
    padding: 0.25rem 0.75rem;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--gold);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

/* When menu is open, Bootstrap adds aria-expanded="true" to the button */
.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}


/* Hero Carousel (Slider) */
#inicio {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 50;
    /* Aún más alto para asegurar visibilidad */
    pointer-events: none;
    /* Que no bloquee clicks a los botones */
}

#heroCarousel {
    position: relative;
    z-index: 1;
}

@media (max-width: 767.98px) {
    #inicio {
        height: 65vh;
        /* Altura suficiente para que el texto y el botón quepan perfectamente */
        margin-top: 60px;
    }

    .carousel-inner {
        height: 100%;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .carousel-caption {
        bottom: 0 !important;
        top: 0 !important;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Reducimos el texto y los márgenes al máximo para que quepa perfectamente */
    .slide-content h2 {
        font-size: 1.45rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    }

    .slide-content p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);

    }

    .btn-premium {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado ultra suave para no oscurecer la foto */
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.2) 30%, rgba(10, 10, 10, 0) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.slide-content h2 {
    font-size: 4.5rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    /* Sombra intensa para legibilidad */
}

.slide-content h2 span {
    color: var(--gold);
    font-style: italic;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);

}

.slide-content p {
    font-size: 1.25rem;
    color: var(--white);
    /* Blanco puro para destacar sobre la imagen */
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    /* Sombra para legibilidad */
}

/* Premium Buttons */
.btn-premium {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--gold);
    color: var(--white);
    background: #00000078;
    cursor: pointer;
    transition: var(--transition);
}

.btn-premium:hover {
    background: var(--gold);
    color: var(--black);
}

/* Carousel Control Customization */
.carousel-control-prev,
.carousel-control-next {
    width: 7%;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-size: 35%;
    /* Flecha un poco más pequeña y sutil */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Transición elástica premium */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(212, 175, 55, 0.85) !important;
    /* Fondo dorado cristalino */
    border-color: rgba(212, 175, 55, 1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: scale(1.15);
    /* Efecto de rebote (pop) */
}

.carousel-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    margin: 0 6px;
    transition: var(--transition);
}

.carousel-indicators .active {
    background-color: var(--gold);
    border-color: var(--white);
}

/* ¿Quiénes Somos? Section */
#quienes-somos {
    /* Background inherited from body */
}

.about-img-wrapper {
    position: relative;
    padding: 10px;
    background: var(--black-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: 450px;
}

.about-img-wrapper img {
    display: block;
    width: 100%;
    object-fit: cover;
    filter: grayscale(15%) sepia(20%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.04);
    filter: grayscale(0%) sepia(0%) contrast(1);
    /* Vuelve al color original al hacer hover */
}

.about-col-text p {
    font-size: 1.12rem;
    color: var(--light-gray);
    margin-bottom: 1.8rem;
    text-align: justify;
    line-height: 1.8;
}

.about-col-text p:last-child {
    margin-bottom: 0;
}

/* Programa Section */
#programa {
    /* Background inherited from body */
}

.program-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    filter: grayscale(15%) sepia(20%) contrast(1.1);
    transition: var(--transition);
}

.program-img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
    filter: grayscale(0%) sepia(0%) contrast(1);
    /* Vuelve al color original al hacer hover */
}

.program-text {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    /* Eliminado el justify para evitar "ríos" en blanco y dar un look más editorial */
    line-height: 1.9;
    letter-spacing: 0.3px;
    max-width: 850px;
    text-align: justify;
}

.welcome-banner {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--black-soft);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.welcome-banner h3 {
    font-size: clamp(1.4rem, 3vw + 0.8rem, 1.8rem);
    /* Escala dinámica */
    font-weight: 700;
    line-height: 1.45;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome-banner h3 span {
    color: var(--gold);
}

/* Asymmetric Feature Layout (Replaces Feature Cards) */
.asymmetric-feature {
    position: relative;
    padding: 3rem 0;
}

.asymmetric-feature .overlap-img-box {
    position: relative;
    z-index: 1;
}

.asymmetric-feature .overlap-img-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    /* Bordes suaves para mayor elegancia */
    filter: grayscale(15%) sepia(20%) contrast(1.1);
    transition: filter 0.6s ease;
}

@media (max-width: 767.98px) {
    .asymmetric-feature .overlap-img-box img {
        width: 100%;
        /* Ocupa todo el ancho de la pantalla */
        height: auto;
        /* La altura se ajusta sola proporcionalmente sin cortar la foto */
        object-fit: cover;
        margin: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

.asymmetric-feature:hover .overlap-img-box img {
    filter: grayscale(0%) sepia(0%) contrast(1);
}

.asymmetric-feature .bg-shape {
    position: absolute;
    top: -15px;
    bottom: -15px;
    width: 70%;
    background: var(--black-soft);
    border: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 0;
}

.asymmetric-feature.left-img .bg-shape {
    left: 0px;
    /* Evita que desborde el padding de la columna en móvil */
}

.asymmetric-feature.right-img .bg-shape {
    right: 0px;
    /* Evita que desborde el padding de la columna en móvil */
}

@media (min-width: 992px) {
    .asymmetric-feature.left-img .bg-shape {
        left: -20px;
    }

    .asymmetric-feature.right-img .bg-shape {
        right: -20px;
    }
}

.asymmetric-feature .overlap-text-box {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.05);
    margin-top: 3rem;
}

@media (max-width: 767.98px) {
    .asymmetric-feature .overlap-text-box {
        padding: 1.8rem 1.5rem;
        /* Menos padding en móvil para que el texto tenga espacio */
        margin-top: 1.5rem;
    }
}

@media (min-width: 992px) {
    .asymmetric-feature.left-img .overlap-text-box {
        margin-left: -50px;
        margin-top: 0;
    }

    .asymmetric-feature.right-img .overlap-text-box {
        margin-right: -50px;
        margin-top: 0;
    }
}

.asymmetric-feature h4 {
    font-size: clamp(1.6rem, 3vw + 1rem, 2.2rem);
    /* Escala dinámica */
    font-family: var(--font-secondary);
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.asymmetric-feature p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.3px;
    text-align: justify;
    /* Left align es más moderno y legible en web que el justify */
    margin-bottom: 2rem;
}

/* Marco Section */
#marco {
    /* Background inherited from body */
}

.marco-titles {
    margin-bottom: 4rem;
}

.marco-title-1 {
    font-size: 2.8rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.marco-title-2 {
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--white);
}

.marco-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    opacity: 0.8;
}

.marco-img-container {
    padding: 10px;
    background: var(--black-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
}

.marco-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(15%) sepia(20%) contrast(1.1);
    transition: filter 0.6s ease;
}

.marco-img-container:hover .marco-img {
    filter: grayscale(0%) sepia(0%) contrast(1);
}

/* Ingreso Section */
#ingreso {
    /* Background inherited from body */
}

/* Premium Timeline (Ingreso Section) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Línea central dorada */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(212, 175, 55, 0.3);
    /* Soft gold */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 40px;
    /* Reducido el padding vertical */
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Interlock para que no queden huecos en desktop */
@media (min-width: 768px) {
    .timeline-item.right {
        margin-top: -3rem;
        /* Sube la caja derecha para encajar en el hueco */
    }

    .timeline-item.left:not(:first-child) {
        margin-top: -3rem;
        /* Sube las siguientes cajas izquierdas */
    }
}

/* Nodos (Círculos interactivos) */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--black);
    border: 3px solid var(--gold);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseNode 2s infinite ease-in-out;
}

.timeline-item.right::after {
    left: -10px;
}

/* Contenedor del contenido */
.timeline-content {
    background-color: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 1.5rem;
    /* Padding interno más compacto */
    position: relative;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-item:hover .timeline-content {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.1);
}

.timeline-step {
    font-size: 1.1rem;
    font-family: var(--font-secondary);
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@keyframes pulseNode {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Mobile Timeline Adjustments (Maximizando el espacio de lectura) */
@media (max-width: 767.98px) {
    .timeline::after {
        left: 15px;
        /* Línea dorada pegada al borde izquierdo */
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        /* Recuperamos 25px de espacio horizontal para el texto */
        padding-right: 15px;
        padding-bottom: 2rem;
        /* Espacio entre cada tarjeta */
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 5px;
        /* Centro del punto (5+10 = 15px) alineado con la línea */
        right: auto;
    }
}

/* Testimonios Section */
#testimonios {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
    margin: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.1);
}

.testimonial-img-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.testimonial-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-name {
    font-family: var(--font-secondary);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.testimonial-role {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Indicadores Personalizados para Testimonios */
.testimonial-indicators {
    bottom: -15px !important;
}

/* Ajustes Responsive para Testimonios */
@media (max-width: 767.98px) {
    .testimonial-card {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    .testimonial-img-wrapper {
        width: 80px;
        height: 80px;
    }

    .testimonial-img-placeholder {
        font-size: 2rem;
    }
}

/* Contacto Section */
#contacto {
    /* Background inherited from body */
}

/* Llamado a la acción (CTA) antes del formulario */
.cta-closing {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.cta-closing h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-closing h3 span {
    color: var(--gold);
    font-style: italic;
}

.cta-closing p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin: 0;
}

/* Glassmorphism Contact Form */
.glass-form {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
    padding: 3.5rem;
    border-radius: 16px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind the form */
.glass-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.contacto-form {
    position: relative;
    z-index: 1;
}

/* Custom Input Groups */
.custom-input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.1rem;
    opacity: 0.6;
    transition: var(--transition);
    z-index: 2;
}

.textarea-icon {
    top: 1.5rem;
    transform: none;
}

.custom-input-group .form-control,
.custom-input-group .form-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 1rem 1rem 1rem 3.5rem;
    /* Espacio para el ícono */
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Efecto hover más llamativo para los campos */
.custom-input-group .form-control:hover,
.custom-input-group .form-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    /* Borde dorado suave al pasar el ratón */
}

/* Placeholder (texto de guía) más claro y llamativo */
.custom-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    /* Más brillante y claro */
    font-weight: 300;
    transition: var(--transition);
}

.custom-input-group .form-control:focus::placeholder {
    color: rgba(212, 175, 55, 0.5);
    /* El texto de guía se tiñe de dorado al hacer clic */
}

.custom-input-group .form-select {
    cursor: pointer;
}

.custom-input-group .form-select option {
    background-color: var(--black-card);
    color: var(--white);
}

.custom-input-group textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.custom-input-group .form-control:focus,
.custom-input-group .form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--white);
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid var(--gold);
}

.custom-input-group:focus-within .input-icon {
    opacity: 1;
    color: var(--gold);
}

/* WhatsApp Submit Button */
.btn-whatsapp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #128C7E, #075E54);
    /* WhatsApp colors */
    border: none;
    padding: 1.2rem 2rem;
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(18, 140, 126, 0.4);
    transition: var(--transition);
}

.btn-whatsapp-submit:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-submit i {
    font-size: 1.4rem;
}

/* Medios de Pago Section */
#medios-pago {
    position: relative;
    z-index: 1;
}



.payment-badge:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.payment-badge i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.payment-badge:hover i {
    color: var(--gold);
    transform: scale(1.1);
}

.payment-badge small {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.recurso-card {
    background-color: var(--black-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
}

.recurso-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.recurso-icon {
    font-size: 2rem;
    color: var(--gold);
}

.recurso-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.recurso-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.btn-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    align-self: flex-start;
}

.btn-link:hover {
    color: var(--white);
}

/* Footer Styles */
footer {
    background-color: var(--black);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--black-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--gold);
    transform: translateY(-5px);
    border-color: var(--gold);
}

.social-icon:hover img {
    filter: brightness(0);
    /* Black icon on gold background */
}

.footer-row-2 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    font-size: 0.9rem;
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold);
}

.copyright {
    font-size: 0.9rem;
    color: var(--light-gray);
    opacity: 0.8;
}

/* -------------------------------------
   Scroll to Top Button
-------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    /* Adjusted to standard corner position */
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--black-soft);
    color: var(--gold);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-5px);
}


.payment-badge {
    height: 170px;
    padding: 20px 15px;
    border-radius: 15px;
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: .3s;
}

.payment-badge:hover {
    transform: translateY(-5px);
}

.payment-logo {
    width: 90px;
    /* mismo ancho para todas */
    height: 60px;
    /* misma altura para todas */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.payment-badge small {
    margin-top: 15px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 38px;
    /* mismo espacio para textos de 1 o 2 líneas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* =========================================
   Mega-Footer Corporativo
========================================== */
.mega-footer {
    background: linear-gradient(to bottom, #0a0a0a, #000000);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--light-gray);
    position: relative;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0;
}

.footer-logo span {
    color: var(--gold);
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: -5px;
}

.footer-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-nav-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-contact-list li {
    margin-bottom: 12px;
}

.footer-nav-list a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-nav-list a i {
    font-size: 0.7rem;
    color: var(--gold);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-nav-list a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-nav-list a:hover i {
    transform: translateX(3px);
}

.footer-contact-list li i {
    color: var(--gold);
    margin-right: 12px;
    width: 15px;
    text-align: center;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-socials .social-icon:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-bottom-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--gold);
}

@media (max-width: 991.98px) {
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand-col,
    .footer-links-col,
    .footer-contact-col {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* Responsive Custom Adjustments */
@media (max-width: 991.98px) {
    header.navbar {
        background: rgba(10, 10, 10, 0.96) !important;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
}



@media (max-width: 991.98px) {
    .navbar-nav .nav-link::after {
        display: none;
        /* Hide hover lines in mobile collapse */
    }

    .slide-content h2 {
        font-size: 2.3rem;
    }

    .slide-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .contacto-wrapper {
        padding: 2.2rem 1.5rem;
    }

    .welcome-banner {
        padding: 2.2rem 1.2rem;
    }

    .welcome-banner h3 {
        font-size: 1.45rem;
    }
}