/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #050b1a;
    --bg-card: rgba(15, 25, 45, 0.55);
    --neon-cyan: #0ff;
    --neon-cyan-glow: rgba(0, 255, 255, 0.25);
    --text-light: #eef5ff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ===== FONDOS ANIMADOS ===== */
.bg-cyber {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #0a1220, #010101);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: shiftGrid 30s linear infinite;
}

@keyframes shiftGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ===== COMPONENTES GLOBALES ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid var(--neon-cyan-glow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 40px rgba(0, 200, 255, 0.15);
    transform: translateY(-5px);
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.2s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: #0a0f1f;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-solid {
    background: var(--neon-cyan);
    color: #0a0f1f;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.btn-solid:hover {
    background: #0cc;
    box-shadow: 0 0 12px var(--neon-cyan);
    transform: scale(1.02);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.accent {
    color: var(--neon-cyan);
}

.form-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #1e2a3a;
    border: none;
    color: white;
    border-radius: 20px;
    font-family: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    opacity: 0.9;
}

.hero-buttons {
    margin: 2rem 0;
}

/* ===== COUNTDOWN ===== */
.countdown-container {
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-container h3 {
    margin-bottom: 1rem;
}

.countdown-box {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(0, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--neon-cyan);
    min-width: 90px;
    text-align: center;
}

.time-number {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: 2px;
}

/* ===== SERVICIOS ===== */
.services {
    padding: 5rem 5%;
    max-width: 1300px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card:nth-child(4) {
    grid-column: 2 / 3;
}

.service-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-icon-img {
    transform: scale(1.9);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.8rem;
    color: var(--neon-cyan);
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card:nth-child(4) {
        grid-column: auto;
    }
    .service-icon-img {
        width: 55px;
        height: 55px;
    }
}

/* ===== GALERÍA ===== */
.gallery {
    padding: 4rem 5%;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== TESTIMONIOS ===== */
.testimonials {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: auto;
}

.testimonial-form {
    padding: 2rem;
    margin: 2rem 0;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--neon-cyan);
}

/* ===== CONTACTO ===== */
.contact {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info, .contact-form {
    padding: 2rem;
}

.contact-info h2, .contact-form h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info i {
    color: var(--neon-cyan);
    width: 25px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

/* ===== ASISTENTE VIRTUAL ===== */
.assistant-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--neon-cyan);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 20px var(--neon-cyan);
    transition: 0.2s;
}

.assistant-btn:hover {
    transform: scale(1.05);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 320px;
    background: rgba(10, 20, 35, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid var(--neon-cyan);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: var(--neon-cyan);
    color: #000;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.close-chat {
    cursor: pointer;
}

.chat-messages {
    height: 260px;
    overflow-y: auto;
    padding: 10px;
    font-size: 0.85rem;
}

.bot-message, .user-message {
    margin-bottom: 8px;
}

.user-message {
    text-align: right;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid var(--neon-cyan);
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: white;
    font-family: inherit;
}

.chat-input-area input:focus {
    outline: none;
}

.chat-input-area button {
    background: var(--neon-cyan);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ===== LOGO ===== */
.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--neon-cyan);
    transition: 0.2s;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.modal-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.modal-link a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.modal-link a:hover {
    text-decoration: underline;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-content .form-input {
    margin: 12px 0;
}

.notification-permission {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.notification-permission input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== USER MENU ===== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.user-name {
    color: white;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 80, 80, 0.8);
    border: none;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 50, 50, 1);
}

.btn-login {
    background: var(--neon-cyan);
    border: none;
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ===== AUTH STATUS ===== */
.auth-status {
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-status .btn-solid {
    margin-top: 0.5rem;
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    bottom: 100px;
    right: 100px;
    background: var(--neon-cyan);
    color: #000;
    padding: 12px 20px;
    border-radius: 2rem;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    font-weight: 500;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: slideInRight 0.3s ease;
    cursor: pointer;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast i {
    font-size: 1.2rem;
}

/* Botón eliminar */
.btn-delete {
    background: rgba(255, 80, 80, 0.7);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.2s;
}

.btn-delete:hover {
    background: rgba(255, 50, 50, 1);
    transform: scale(1.02);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .countdown-box {
        gap: 0.8rem;
    }
    
    .time-unit {
        padding: 0.6rem 0.8rem;
        min-width: 65px;
    }
    
    .time-number {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .chat-window {
        width: 280px;
        right: 15px;
        bottom: 80px;
    }
    
    .logo-img {
        height: 90px;
    }
    
    .notification-toast {
        bottom: 80px;
        right: 20px;
        left: 20px;
        text-align: center;
        justify-content: center;
    }
    
    .user-menu {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}




/* ===== WIDGET DE TEMPERATURA ===== */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.weather-widget i {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.weather-widget:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

#temperatura {
    font-weight: 700;
    color: var(--neon-cyan);
}

#ubicacion {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .weather-widget {
        margin: 0.5rem 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .weather-widget i {
        font-size: 0.9rem;
    }
}