:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-color: #ffcc00;
    --accent-hover: #e6b800;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --hover-bg: #2a2a2a;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #ffcc00, #ff6b00);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}




/* Fondo de estrellas */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* COMIENZA EL LOGO */

.logo h1 {
    color: #FFD700; /* Texto amarillo/dorado */
    font-size: 24px;
    font-weight: bold;
    margin: 0; /* Remueve el margen por defecto del h1 */
    
    /* Configuración clave para la animación: */
    display: flex; /* Alinea los <span> uno al lado del otro */
    justify-content: center; /* Centra el texto */
    perspective: 500px; /* Crea la ilusión de profundidad para el "salto" */
}

/* --- 2. Estilos de la Letra y Retraso de Animación --- */

.wave-letter {
    display: inline-block; 
    /*
     * Animación de salto:
     * - 1.5s de duración
     * - Infinita
     * - `cubic-bezier` para un efecto de bounce suave
     */
    animation: jump-to-screen 1.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Optimización del rendimiento */
}

/* Retraso de la animación para crear el efecto de "ola" secuencial */
.wave-letter:nth-child(2) { animation-delay: 0.05s; }
.wave-letter:nth-child(3) { animation-delay: 0.1s; }
.wave-letter:nth-child(4) { animation-delay: 0.15s; }
.wave-letter:nth-child(5) { animation-delay: 0.2s; }
.wave-letter:nth-child(6) { animation-delay: 0.25s; }
.wave-letter:nth-child(7) { animation-delay: 0.3s; }
.wave-letter:nth-child(8) { animation-delay: 0.35s; }
.wave-letter:nth-child(9) { animation-delay: 0.4s; }
.wave-letter:nth-child(10) { animation-delay: 0.45s; }
.wave-letter:nth-child(11) { animation-delay: 0.5s; }
.wave-letter:nth-child(12) { animation-delay: 0.55s; }
.wave-letter:nth-child(13) { animation-delay: 0.6s; }
.wave-letter:nth-child(14) { animation-delay: 0.65s; }
.wave-letter:nth-child(15) { animation-delay: 0.7s; }
.wave-letter:nth-child(16) { animation-delay: 0.75s; }
.wave-letter:nth-child(17) { animation-delay: 0.8s; }
.wave-letter:nth-child(18) { animation-delay: 0.85s; }
.wave-letter:nth-child(19) { animation-delay: 0.9s; }
.wave-letter:nth-child(20) { animation-delay: 0.95s; }


/* --- 3. Definición de la Animación (Keyframes) --- */

@keyframes jump-to-screen {
    0%, 100% {
        /* Estado de reposo */
        transform: scale(1) translateY(0); 
        text-shadow: none;
        color: #FFD700;
        opacity: 0.9;
        z-index: 1; /* Retorna a la capa base */
    }
    40% {
        /* Punto de "Salto": Se acerca, sube y brilla */
        transform: scale(1.15) translateY(-5px); /* Más grande y ligeramente más alto */
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 5px rgba(255, 215, 0, 0.5); /* Brillo intenso */
        color: #FFFFFF; /* Color más claro en el pico */
        z-index: 10; /* Asegura que la letra que salta esté por encima */
        opacity: 1;
    }
    60% {
        /* Regreso intermedio */
        transform: scale(1.05) translateY(-2px);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        color: #FFD700;
    }
}

/* .logo h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
} */

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(255, 204, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-login-nav {
    background: var(--gradient);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Secciones */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Servicios */
.services {
    background: rgba(26, 26, 26, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    background: rgba(26, 26, 26, 0.7);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

/* Formularios */
.contact-form,
.login-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* About Details */
.about-details {
    background: rgba(26, 26, 26, 0.7);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--accent-color);
}

.about-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-bg);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
}

.close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Mensajes */
.error {
    color: #ff6b6b;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success-message {
    color: #25D366;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.demo-info {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.demo-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.demo-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        display: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* titulo animado */
/* ****************************************** */
/* --- ESTILOS Y ANIMACIÓN DEL TÍTULO .ola-texto --- */
/* ****************************************** */
/* Definición de Colores (Variables Globales o en .ola-texto) */
:root {
    --base-color: #888;      /* Gris para el estado de reposo */
    --wave-color: #ffd700;   /* Dorado para el pico de la ola */
    --wave-shadow: #ffc400;  /* Dorado más brillante para la sombra */
}

/* ------------------------------------------- */
/* --- ESTILOS Y ANIMACIÓN DEL TÍTULO .ola-texto (ADAPTADO DEL LOGO) --- */
/* ------------------------------------------- */
.ola-texto {
    font-family: 'Arial Black', sans-serif;
    font-size: 2em; /* Tamaño más chico para el título */
    font-weight: bold;
    text-align: center;
    color: var(--base-color); /* Color base gris */
    display: flex; 
    justify-content: center;
    align-items: flex-end; /* Alinea abajo para que la ola suba */
    margin: 30px 0 20px;
    height: 60px; /* Espacio para que las letras se levanten */
    letter-spacing: -1px; /* Ajuste para que se vea bien */
}

.ola-texto span {
    display: inline-block; 
    margin: 0 1px; /* Espaciado ajustado */
    
    /* Configuración de la animación: Misma duración que tu logo */
    animation-name: wave-per-letter-titulo; /* Renombramos para evitar conflictos si el logo también está */
    animation-duration: 4s; 
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both; 
    transform-origin: center bottom; /* Origen para la escala y subida */
    
    /* Lógica de retraso para la ola central (como en tu logo pero con data-i) */
    animation-delay: calc(var(--i, 0) * 0.15s); /* Ajuste de 0.1s a 0.15s para un efecto más claro */
}

/* Tratamiento especial para el espacio (el 8vo span) */
.ola-texto .espacio { 
    animation: none;
    width: 20px;
    visibility: hidden;
}

/* ------------------------------------------- */
/* DEFINICIÓN DE LA ANIMACIÓN 'wave-per-letter-titulo' (Dorado con Subida) */
/* ------------------------------------------- */
@keyframes wave-per-letter-titulo {
    0%, 15% { /* Inicia y permanece en color base (Gris), abajo */
        color: var(--base-color);
        text-shadow: none;
        transform: translateY(0) scale(1); /* Abajo y escala normal */
    }
    25% { /* Pico de la ola: Sube, Dorado, Brillante y Escala 1.3 */
        color: var(--wave-color); /* Dorado principal */
        text-shadow: 
            0 0 10px var(--wave-shadow), 
            0 0 20px var(--wave-shadow), 
            0 0 30px rgba(255, 215, 0, 0.5); /* Brillo Dorado */
        
        transform: translateY(-20px) scale(1.3); /* SE LEVANTA Y AGRANDA */
    }
    35% { /* Empieza a reducirse y volver al color base rápidamente */
        color: var(--base-color);
        text-shadow: none;
        transform: translateY(0) scale(1); /* Vuelve a la base rápidamente */
    }
    100% { /* Permanece en color base hasta el final del ciclo */
        color: var(--base-color);
        text-shadow: none;
        transform: translateY(0) scale(1); /* En la base, esperando el siguiente ciclo */
    }
}