/* ============================================= */
/* =========== ESTILOS GENERALES ================ */
/* ============================================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: radial-gradient(ellipse at top right, #450374, #000000);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}


/* ============================================= */
/* ============ HEADER Y NAVEGACIÓN ============= */
/* ============================================= */
.Header {
    background: linear-gradient(to left, #450374, #1a0024);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.Header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
    font-size: 1.3rem;
}

.nav-links a:hover {
    color: #d8c1e8;
}

#menu-toggle,
.menu-button {
    display: none;
}


/* ============================================= */
/* ================= HERO BANNER ================ */
/* ============================================= */
.hero-banner {
    background: radial-gradient(ellipse at top right, #4c0082, #000000);
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.laptop-container {
    flex: 0 0 40%;
}

.laptop-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    flex: 0 0 60%;
    padding: 2.5rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
}

/* --- Elementos decorativos del Hero Banner --- */
.planet-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Usar 100% es más seguro que 100vw */
    height: 80px;
    background: linear-gradient(to left, #450374, #1a0024);
    border-radius: 100% 100% 0 0;
}

.planet-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100% 100% 0 0;
    box-shadow: 0 -15px 50px rgba(173, 57, 255, 0.7);
    animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 -15px 50px rgba(173, 57, 255, 0.7);
    }

    50% {
        box-shadow: 0 -20px 60px rgba(191, 62, 255, 0.9);
    }
}



.stars-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        /* Este bloque de código genera estrellas aleatoriamente. Puedes copiarlo y pegarlo. */
        -3px 563px #FFF, 48px 572px #FFF, 153px 439px #FFF, 273px 305px #FFF, 323px 463px #FFF, 422px 147px #FFF, 545px 32px #FFF, 574px 211px #FFF, 735px 233px #FFF, 810px 421px #FFF, 915px 563px #FFF, 940px 145px #FFF, 1056px 14px #FFF, 1159px 233px #FFF, 1222px 519px #FFF, 1374px 446px #FFF, 1457px 359px #FFF, 1550px 530px #FFF, 1656px 408px #FFF, 1713px 257px #FFF, 1785px 123px #FFF, 1868px 265px #FFF, 1913px 441px #FFF, 8px 10px #FFF, 24px 219px #FFF, 131px 292px #FFF, 195px 10px #FFF, 266px 574px #FFF, 363px 186px #FFF, 401px 432px #FFF, 497px 430px #FFF, 563px 429px #FFF, 650px 590px #FFF, 755px 556px #FFF, 853px 156px #FFF, 934px 28px #FFF, 1045px 339px #FFF, 1133px 451px #FFF, 1213px 127px #FFF, 1269px 490px #FFF, 1358px 237px #FFF, 1406px 3px #FFF, 1493px 402px #FFF, 1585px 241px #FFF, 1675px 169px #FFF, 1762px 505px #FFF, 1851px 379px #FFF, 1918px 584px #FFF, 35px 32px #FFF, 110px 174px #FFF, 219px 544px #FFF, 283px 435px #FFF, 381px 508px #FFF, 485px 190px #FFF, 513px 55px #FFF, 608px 218px #FFF, 689px 538px #FFF, 775px 433px #FFF, 881px 528px #FFF, 963px 538px #FFF, 1066px 140px #FFF, 1171px 311px #FFF, 1235px 57px #FFF, 1319px 254px #FFF, 1364px 542px #FFF, 1461px 184px #FFF, 1500px 580px #FFF, 1599px 486px #FFF, 1698px 509px #FFF, 1751px 418px #FFF, 1827px 553px #FFF, 1908px 53px #FFF;
}

/* --- 5. LAS ESTRELLAS FUGACES  --- */

/* La animación @keyframes se mantiene exactamente igual que antes */
@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(315deg) translateX(-1500px);
        opacity: 0;
    }
}

/* Estilo base que se aplica a CADA estrella (cada span) */
.shooting-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);

    /* Aplicamos la animación a todas */
    animation: animate 3s linear infinite;
}


/* --- AHORA, LA MAGIA: HACEMOS QUE CADA ESTRELLA SEA ÚNICA --- */

.shooting-stars span:nth-child(1) {
    /* Primera estrella */
    top: 0;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 2s;
    /* Más rápida */
}

.shooting-stars span:nth-child(2) {
    /* Segunda estrella */
    top: 50%;
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 3s;
    /* Velocidad normal */
}

.shooting-stars span:nth-child(3) {
    /* Tercera estrella */
    top: 80%;
    left: 70%;
    animation-delay: 1.2s;
    animation-duration: 2.5s;
    /* Un poco más rápida */
}

.shooting-stars span:nth-child(4) {
    /* Cuarta estrella */
    top: 10%;
    left: 90%;
    animation-delay: 2s;
    animation-duration: 4s;
    /* Más lenta */
}

.shooting-stars span:nth-child(5) {
    /* Quinta estrella */
    top: 100%;
    /* Empieza desde abajo */
    left: 30%;
    animation-delay: 2.8s;
    animation-duration: 3.5s;
    /* Un poco más lenta */
}



/* 

.services-section {
    background: linear-gradient(to left, #450374, #1a0024);
    position: relative;
    z-index: 2;
    margin-top: -20px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.services-section .container {
    display: block;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #8A2BE2;
}

.card-icon img {
    height: 70px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-description {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
}
*/

/* ============================================= */
/* ========= NUEVOS ESTILOS DE SERVICIOS ========= */
/* ============================================= */

.services-section {
    background: linear-gradient(to left, #450374, #1a0024);
    padding: 80px 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Estilo de la nueva tarjeta */
.service-card-new {
    background-color: #ffffff;
    /* Fondo blanco como sugeriste */
    border-radius: 15px;
    overflow: hidden;
    /* Importante para que la imagen respete los bordes redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Contenedor de la imagen superior */
.card-image-top {
    height: 220px;
    /* Asegura que este contenedor tenga una altura fija */
    display: flex;
    /* Añade display flex */
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
}

/* Contenido de la tarjeta (área blanca) */
.card-content-bottom {
    padding: 25px;
    flex-grow: 1;
    /* Permite que el contenido se estire si las tarjetas tienen alturas diferentes */
    display: flex;
    flex-direction: column;
}

.card-content-bottom h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #450374;
    /* Letras moradas oscuras */
}

.card-content-bottom p {
    color: #333333;
    /* Un gris oscuro para el texto, buena legibilidad */
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
}

/* Botón "Ver Más" */
.card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #8A2BE2;
    /* Morado principal */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    /* Alinea el botón a la izquierda */
}

.card-button:hover {
    background-color: #6a0dad;
    /* Morado más oscuro al pasar el mouse */
}

.service-card-svg {
    height: 100%;
    /* Ocupa el 100% de la altura de su contenedor (.card-image-top) */
    width: 100%;
    /* Ocupa el 100% del ancho de su contenedor */
    object-fit: contain;
    /* ¡Clave! Escala la imagen para que quepa completamente */
    padding: 30px;
    /* Sigue usando el padding para crear un "margen" alrededor del SVG */
    box-sizing: border-box;
    /* Asegura que el padding no afecte el tamaño total */
}

/* --- CSS Responsivo para las nuevas tarjetas --- */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}


/* ============================================= */
/* ================ ESTADÍSTICAS ================= */
/* ============================================= */
.stats-section {
    background: linear-gradient(to left, #450374, #1a0024);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: #8A2BE2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    color: #cccccc;
}


/* ============================================= */
/* =================== CTAs ==================== */
/* ============================================= */
.promo-banner-section {
    padding: 60px 20px;
    /* Usa una imagen de fondo sutil y profesional */
    background-image: linear-gradient(rgba(26, 0, 36, 0.85), rgba(69, 3, 116, 0.85)), url('../img/codigo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efecto Parallax */
    text-align: center;
    font-family: 'Poppins', sans-serif;
    border-radius: 20px;
    /* Bordes redondeados para el banner */
    margin: 40px auto;
    /* Espacio arriba y abajo */
    max-width: 1100px;
    /* Ancho máximo del banner */
}

.promo-banner-content h3 {
    font-size: 2.2rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.promo-banner-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.promo-button {
    background-color: #FFFFFF;
    color: #450374;
    /* Color oscuro del texto */
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.promo-button:hover {
    background-color: #d8c1e8;
    /* Lila claro al pasar el mouse */
    transform: scale(1.05);
}

.promo-editable-section {
    /* ¡ACCIÓN REQUERIDA! Cambia esta URL por la de tu imagen promocional */
    background-image: url('../img/promo33.png');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
}

.promo-editable-button {
    background-color: #FFFFFF;
    color: #450374;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.promo-editable-button:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}


/* ============================================= */
/* ================= CONTACTO ================== */
/* ============================================= */
.contact-section {
    background-color: #000000;
    padding: 80px 20px;
}

.contact-subtitle {
    text-align: center;
    color: #cccccc;
    max-width: 600px;
    margin: -30px auto 40px auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
}

.submit-button {
    background: linear-gradient(to right, #8A2BE2, #6A0DAD);
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    align-self: center;
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}


/* ============================================= */
/* =================== FOOTER ================== */
/* ============================================= */
.footer {
    background-color: #0c0012;
    /* Color oscuro sólido */
    color: #cccccc;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.footer-icon {
    font-size: 1.5rem;
    color: #8A2BE2;
    margin-right: 12px;
    flex-shrink: 0;
}

.footer-column .footer-description {
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8A2BE2;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #8A2BE2;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777777;
}

/* ============================================= */
/* ========== ESTILOS PÁGINA QUIÉNES SOMOS ======= */
/* ============================================= */

.about-section {
    padding: 80px 0;
    /* Espaciado vertical */
    background-color: #0c0012;
    /* Un fondo oscuro que combine */
}

.about-container {
    display: flex;
    /* Activa Flexbox para las columnas */
    align-items: center;
    /* Centra verticalmente el contenido */
    gap: 50px;
    /* Espacio entre la imagen y el texto */
}

/* Columna de la imagen */
.about-image {
    flex: 1;
    /* Ocupa el 50% del espacio */
    max-width: 50%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    /* Bordes redondeados para la imagen */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Columna del texto */
.about-text {
    flex: 1;
    /* Ocupa el otro 50% del espacio */
    max-width: 50%;
}

/* Ajustes al texto dentro de la columna */
.about-text .section-title {
    margin-bottom: 20px;
    text-align: left;
    /* Alinea el título a la izquierda */
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}


/* ============================================= */
/* ====== ESTILOS BOTONES SOCIALES DE CONTACTO === */
/* ============================================= */
.social-contact-buttons {
    display: flex;
    justify-content: center;
    /* Centra los botones horizontalmente */
    gap: 20px;
    /* Espacio entre los botones */
    margin-bottom: 40px;
    /* Espacio antes del formulario */
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    /* Ancho del círculo */
    height: 55px;
    /* Alto del círculo */
    border-radius: 50%;
    /* Esto los hace redondos */
    color: #FFFFFF;
    font-size: 1.8rem;
    /* Tamaño del icono */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-button:hover {
    transform: translateY(-5px);
    /* Efecto de elevación */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Colores específicos de cada red social */
.social-button.whatsapp {
    background-color: #25D366;
}

.social-button.instagram {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-button.facebook {
    background-color: #1877F2;
}


/* ============================================= */
/* ========== ESTILOS PÁGINA DE SERVICIOS ======== */
/* ============================================= */

/* Estilo para el encabezado de la página */
.page-header {
    background: linear-gradient(to left, #450374, #1a0024);
    padding: 60px 20px;
    text-align: center;
}

.page-header .section-title {
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 1.3rem;
    margin-top: 10px;

}

/* Estilo para cada sección de servicio */
.feature-section {
    padding: 80px 20px;
}

.feature-section.alternate-bg {
    background-color: #0c0012;
    /* Fondo oscuro alternativo */
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* La magia para invertir el orden en la segunda tarjeta */
.feature-container.row-reverse {
    flex-direction: row-reverse;
}

.feature-image,
.feature-text {
    flex: 1;
    /* Hace que cada columna ocupe el 50% */
    max-width: 50%;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-text h2 {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

/* =================================================================== */
/* ============== DISEÑO RESPONSIVO PARA TABLETS Y MÓVILES ============= */
/* =================================================================== */


/* --- Responsive para la página de servicios --- */
@media (max-width: 768px) {

    .feature-container,
    .feature-container.row-reverse {
        /* Se aplica a ambas */
        flex-direction: column;
        /* Apila las columnas */
    }

    .feature-image,
    .feature-text {
        max-width: 100%;
        /* Ocupan todo el ancho */
        text-align: center;
    }

    .feature-text h2 {
        font-size: 1.8rem;
    }
}


/* --- Responsive para la sección "Quiénes Somos" --- */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        /* Apila las columnas en móvil */
        text-align: center;
    }

    .about-image,
    .about-text {
        max-width: 100%;
        /* Ocupa todo el ancho en móvil */
    }

    .about-text .section-title {
        text-align: center;
        /* Centra el título en móvil */
    }
}

/* --- Estilos para Tablets (Hasta 992px) --- */
@media (max-width: 992px) {

    .services-container,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --- Estilos para Móviles (Hasta 768px) --- */
@media (max-width: 768px) {

    /* --- NAVEGACIÓN --- */
    .menu-button {
        display: block;
        cursor: pointer;
    }

    .menu-button span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #5a0f8b;
        text-align: center;
    }

    .nav-links li {
        width: 100%;
    }

    #menu-toggle:checked~.nav-links {
        display: flex;
    }

    /* --- HERO BANNER (Móvil) --- */
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        /* ¡ACCIÓN REQUERIDA! Cambia esta URL por la de tu imagen para MÓVIL */
        background-image: linear-gradient(rgba(26, 0, 36, 0.8), rgba(69, 3, 116, 0.8)), url('img/hero-mobile-background.jpg');
        background-size: cover;
        background-position: center;
    }

    .laptop-container {
        display: none;
        /* Oculta el portátil en móviles */
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* --- AJUSTE GENERAL DE TÍTULOS --- */
    .section-title,
    .stat-number {
        font-size: 2rem;
    }

    /* --- TARJETAS DE SERVICIOS Y STATS --- */
    .services-container,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* --- BANNER EDITABLE (Móvil) --- */
    .promo-editable-section {
        background-image: url('../img/promo-movil2.png');
        min-height: 350px;
    }

    .promo-editable-button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    /* --- FOOTER (Móvil) --- */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .social-icons a {
        margin: 0 10px;
    }

    .footer-brand-info {
        justify-content: center;
    }
}