/* Generales y Reseteo Básico */
:root {
    --color-primary-dark: #000000;
    --color-secondary-dark: #121A3B;
    --color-accent-blue: #2A3C6B;
    --color-gold-main: #FFD200;
    --color-gold-muted: #E2B000;
    --color-text-light: #F0F0F0;
    --color-text-secondary: #B0B0B0;
    --color-highlight: #9A00E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces internos */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light); /* Texto principal en blanco suave */
    background-color: var(--color-primary-dark); /* Fondo principal negro, como tu logo */
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

/* Clases para controlar el scroll del body cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
    padding-right: 17px; /* Compensa el ancho del scrollbar para evitar "saltos" visuales */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Regla general para imágenes, para asegurar responsividad */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enlaces y Botones Generales */
a {
    color: var(--color-gold-main); /* Enlaces en dorado */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-blue); /* Al pasar el ratón, un azul del logo */
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--color-gold-main);
    color: var(--color-primary-dark); /* Texto oscuro en botón dorado */
    border: 2px solid var(--color-gold-main);
}

.btn-primary:hover {
    background-color: var(--color-gold-muted);
    border-color: var(--color-gold-muted);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-gold-main);
    border: 2px solid var(--color-gold-main);
}

.btn-secondary:hover {
    background-color: var(--color-gold-main);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-cta { /* Botón de llamada a la acción en la sección hero */
    background: linear-gradient(45deg, var(--color-gold-main), var(--color-gold-muted));
    color: var(--color-primary-dark);
    border: none;
    font-size: 1.1em;
    padding: 15px 35px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-cta:hover {
    background: linear-gradient(45deg, var(--color-gold-muted), var(--color-gold-main));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Cabecera (Header) */
.main-header {
    background-color: rgba(0, 0, 0, 0.85); /* Negro semi-transparente como el fondo del logo */
    padding: 15px 0; /* Ajuste el padding */
    border-bottom: 1px solid var(--color-secondary-dark); /* Borde azul oscuro */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Si usas la imagen del logo en el header */
.header-logo {
    height: 60px; /* Ajusta la altura según sea necesario */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 210, 0, 0.5)); /* Pequeño brillo dorado */
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.2em; /* Puedes ajustar si usas texto en lugar de imagen de logo */
    margin: 0;
}

.site-title a {
    color: var(--color-text-light); /* O el color que elijas para el texto del título */
    text-decoration: none;
}

.main-nav ul { /* Esto es para la versión de escritorio del menú */
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: var(--color-text-light); /* Los enlaces de navegación en blanco suave */
    font-weight: bold;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold-main); /* Subrayado dorado */
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Estilos para el botón de hamburguesa (escritorio: oculto) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Asegúrate de que esté sobre otros elementos */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-gold-main); /* El color de tu hamburguesa */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Estado activo del botón de hamburguesa (cuando el menú está abierto) */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
    background: url('../images/galaxy_background.jpg') no-repeat center center/cover;
    color: var(--color-text-light);
    text-align: center;
    padding: 150px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* background-attachment: fixed; */ /* Descomentar para efecto parallax */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay oscuro para legibilidad */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 210, 0, 0.8), 0 0 30px rgba(42, 60, 107, 0.6); /* Brillo dorado y azul */
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

/* Secciones Generales */
section {
    padding: 80px 0;
    background-color: var(--color-secondary-dark); /* Fondo para las secciones de contenido */
    border-top: 1px solid var(--color-primary-dark);
}

section:nth-of-type(even) { /* Para alternar colores de fondo de secciones */
    background-color: var(--color-accent-blue); /* Un azul más claro para alternar */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8em;
    color: var(--color-gold-main); /* Títulos de sección en dorado */
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent-blue); /* Subrayado azul */
    border-radius: 5px;
}

/* Sección de Características (Servicios) */
.features-section {
    background-color: var(--color-primary-dark); /* Fondo negro para esta sección de servicios */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Min-width reduced for slightly smaller items */
    gap: 30px; /* Reduced gap */
    margin-top: 35px; /* Slightly reduced margin */
}

.feature-item {
    background-color: var(--color-secondary-dark);
    padding: 25px; /* Reduced padding */
    border-radius: 8px; /* Slightly less rounded */
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); /* Slightly less intense shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--color-secondary-dark);
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.01); /* Reduced lift on hover */
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7); /* Slightly less intense hover shadow */
    border-color: var(--color-gold-main);
}

.feature-icon {
    width: 65px; /* Reduced icon size */
    height: 65px; /* Reduced icon size */
    margin-bottom: 15px; /* Slightly reduced margin */
    filter: drop-shadow(0 0 9px rgba(255, 210, 0, 0.7)); /* Slightly less intense icon glow */
}

.feature-item h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-main);
    font-size: 1.6em; /* Reduced font size */
    margin-bottom: 12px; /* Reduced margin */
}

.feature-item p {
    font-size: 0.95em; /* Reduced font size */
    color: var(--color-text-secondary);
}

.feature-item .price { /* Estilo para el precio */
    font-size: 1em;
    color: var(--color-gold-main); /* Color dorado para el precio */
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
}


/* Footer */
.main-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-secondary-dark);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    filter: drop-shadow(0 0 8px rgba(255, 210, 0, 0.6)); /* Brillo dorado en iconos sociales */
    transition: transform 0.2s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espacio entre el logo y el texto */
}

/* Estilo para el ícono dentro del botón */
.contact-whatsapp-btn img {
    height: 20px;
    width: auto;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

.footer-links a:hover {
    color: var(--color-gold-main);
}

/* Overlay para el menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscuro semi-transparente */
    z-index: 998; /* Detrás del menú, pero delante del contenido */
    opacity: 0;
    visibility: hidden; /* Oculto por defecto */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.menu-overlay.is-active {
    opacity: 1;
    visibility: visible; /* Muestra el overlay cuando está activo */
}


/* --- MEDIA QUERIES PARA RESPONSIVIDAD --- */

/* Estilos para tabletas y dispositivos móviles grandes (hasta 768px de ancho) */
@media (max-width: 768px) {
    /* Ajustes para el Header en móvil */
    .main-header .container {
        flex-direction: row; /* Logo y hamburguesa en la misma línea */
        justify-content: space-between;
        align-items: center;
    }

    .header-logo { /* Ajuste el tamaño del logo en móviles */
        height: 45px;
    }

    /* Menú de navegación (versión móvil lateral) */
    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 250px; /* Ancho del menú lateral más pequeño */
        background-color: var(--color-secondary-dark);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
        padding-top: 70px; /* Ajuste de padding-top */
        z-index: 999;

        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.is-active {
        transform: translateX(0);
    }

    .main-nav .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .main-nav .nav-menu li {
        width: 100%;
    }

    /* Regla para los enlaces normales del menú */
    .main-nav .nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 1.1em;
        color: var(--color-gold-main);
        border-bottom: 1px solid rgba(255, 210, 0, 0.2);
    }
    
    /* Eliminar el borde inferior del ÚLTIMO enlace normal del menú */
    .main-nav .nav-menu li:last-child a {
        border-bottom: none;
    }

    /* Estilo hover para los enlaces normales */
    .main-nav .nav-menu li a:hover {
        color: var(--color-text-light);
        background-color: var(--color-accent-blue);
    }

    /* Mostrar el botón de hamburguesa en móvil */
    .menu-toggle {
        display: block;
    }

    /* Ajustes generales de texto y secciones para móviles */
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .feature-item {
        padding: 25px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para el botón de WhatsApp en móviles (dentro del menú) */
/* Este estilo es específico para cuando el botón de WhatsApp esté en el menú lateral. */
/* Si no lo necesitas en el menú móvil, puedes eliminar este bloque. */
@media (max-width: 768px) {
    .main-nav .nav-menu .whatsapp-btn {
        width: 80%; /* Ajusta el ancho si quieres que ocupe menos */
        margin: 15px auto; /* Centra el botón y le da margen vertical */
        padding: 12px 20px; /* Ajusta el padding si quieres que sea más compacto */
        font-size: 1em; /* Ajusta el tamaño de la fuente */
        border-radius: 25px; /* Más redondeado si quieres */
    }
}


/* Estilos para dispositivos móviles muy pequeños (hasta 480px de ancho) */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.8em;
    }

    .hero-title {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}



/* --- Estilos para la Sección de Testimonios --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-secondary-dark);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(90deg, var(--color-secondary-dark) 70%, var(--color-accent-blue) 100%);
}
.testimonial-grid {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 0;
    gap: 0;
    box-sizing: border-box;
}
.testimonial-card {
    margin: 0 auto;
    max-width: 500px;
    background-color: var(--color-accent-blue);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
    position: relative;
    border-left: 5px solid var(--color-gold-main);
    transition: box-shadow 0.2s;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
}
.testimonial-text {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
    margin-bottom: 0;
}

.testimonial-text.expanded {
    max-height: 1000px; /* Suficiente para textos largos */
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}

.testimonial-text::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}

.testimonial-text.expanded::after {
    display: none;
}

/* Botón flotante y elegante para leer más/menos */
.show-more-btn {
    display: inline-block;
    background: linear-gradient(90deg, #7c5ca7 60%, #ffd200 100%);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 7px 22px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin: 12px auto 0 auto;
    box-shadow: 0 2px 8px rgba(124,92,167,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.show-more-btn:hover, .show-more-btn:focus {
    background: linear-gradient(90deg, #4b366a 60%, #ffd200 100%);
    color: #ffd200;
    box-shadow: 0 4px 16px rgba(124,92,167,0.18);
    outline: none;
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-gold-main);
    text-align: right;
}
@media (max-width: 768px) {
    .testimonial-card {
        max-width: 96vw;
        width: 96vw;
        font-size: 0.98em;
        padding: 12px 8px;
    }
    .testimonial-text {
        font-size: 1em;
        max-width: 100%;
    }
}

/* --- Estilos modernos para la sección de testimonios tipo carrusel --- */
.testimonials-section {
    padding: 60px 0;
    background: linear-gradient(90deg, #f8fafc 0%, #e9e4f0 100%);
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
    border: none;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 32px;
    color: #4b366a;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.testimonial-grid {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-card {
    min-width: 320px;
    max-width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(75,54,106,0.08);
    padding: 28px 22px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    border: none;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(124,92,167,0.18);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: #4b366a;
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
}

.testimonial-text.expanded {
    max-height: none;
}

.testimonial-text::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 80%);
    pointer-events: none;
}

.testimonial-text.expanded::after {
    display: none;
}

.testimonial-author {
    font-weight: bold;
    color: #7c5ca7;
    margin-top: 8px;
    font-size: 1rem;
    text-align: center;
}

.testimonials-section .btn-primary {
    background: #7c5ca7;
    color: #fff;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(124,92,167,0.12);
    text-decoration: none;
    border: none;
    margin: 0 8px;
}

.testimonials-section .btn-primary:hover {
    background: #4b366a;
    color: #ffd200;
}

.testimonials-section .btn {
    color: #7c5ca7;
    background: transparent;
    border: 1px solid #7c5ca7;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 1rem;
    text-decoration: none;
    margin: 0 8px;
    transition: background 0.2s, color 0.2s;
}

.testimonials-section .btn:hover {
    background: #7c5ca7;
    color: #fff;
}

@media (max-width: 900px) {
    .testimonial-card {
        min-width: 260px;
        max-width: 90vw;
        padding: 18px 10px;
    }
    .testimonial-grid {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .testimonials-section {
        padding: 35px 0;
    }
    .testimonial-card {
        min-width: 90vw;
        max-width: 96vw;
        font-size: 0.98em;
        padding: 12px 8px;
    }
    .testimonial-text {
        font-size: 1em;
    }
    .testimonials-section .section-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    .testimonials-section .btn,
    .testimonials-section .btn-primary {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}