/* ===== RESET Y CONFIGURACIÓN GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fondo base más elegante y menos plano */
    --bg-dark: #0a0e14;               /* negro-azulado muy oscuro */
    --bg-card: #11151c;               /* para cards y secciones */
    --bg-darker: #070a0f;             /* para hero o footer si quieres más contraste */

    /* Texto */
    --text-primary: #f8f9fc;          /* blanco suave */
    --text-secondary: #c0c8d8;        /* gris-azulado para subtítulos */
    --text-muted: #8a92a8;            /* gris más oscuro para detalles */

    /* Neón principal (más limpio y premium) */
    --neon-green: #00e6c0;            /* verde cian moderno */
    --neon-green-intense: #00ffb3;    /* versión brillante SOLO para CTA y hover */

    /* Acentos complementarios */
    --neon-cyan: #00d4ff;
    --neon-pink: #ff4de6;

    /* Sombras/glows controlados */
    --glow-green: 0 0 12px rgba(0, 230, 192, 0.6), 0 0 24px rgba(0, 230, 192, 0.4);
    --glow-green-strong: 0 0 20px rgba(0, 255, 179, 0.8), 0 0 40px rgba(0, 255, 179, 0.5);

    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    background-color: rgba(10, 14, 20, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 230, 192, 0.15);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--neon-green);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--neon-cyan);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-list a:hover {
    color: var(--neon-green);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-green);
    transition: var(--transition-fast);
}

.nav-list a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(rgba(10, 14, 20, 0.92), rgba(10, 14, 20, 0.92)), 
                url('assets/images/hero-bg.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

.neon-text {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: var(--glow-green);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-neon {
    display: inline-block;
    background-color: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: var(--glow-green);
    letter-spacing: 1px;
}

.btn-neon:hover {
    background-color: var(--neon-green-intense);
    color: #0a0e14;
    box-shadow: var(--glow-green-strong);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ===== NOSOTROS ===== */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.nosotros-text h3 {
    color: var(--neon-cyan);
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.nosotros-text h3:first-child {
    margin-top: 0;
}

.nosotros-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.nosotros-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 230, 192, 0.15);
}

.nosotros-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.nosotros-image:hover .nosotros-img {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(0, 230, 192, 0.5));
    transition: all 0.4s ease;
}

/* ===== SERVICIOS ===== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.servicio-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 230, 192, 0.12);
}

.servicio-card:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
    transform: translateY(-10px);
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.servicio-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.servicio-card p {
    color: var(--text-secondary);
}

/* ===== PORTAFOLIO ===== */
.portafolio {
    padding: 60px 0;
}

.portafolio .container {
    max-width: 1400px;
}

.galeria-grid {
    width: 100%;
    margin-top: 40px;
}

.galeria-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-card);
    border: 2px solid rgba(0, 230, 192, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    height: auto;
}

.galeria-item:hover {
    border-color: var(--neon-green-intense);
    box-shadow: var(--glow-green-strong);
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(10, 14, 20, 0.1) 50%,
        rgba(10, 14, 20, 0.95) 90%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 1;
}

.galeria-title {
    color: var(--neon-green);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

.galeria-desc {
    color: var(--text-primary);
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsive para galería (mantengo tu estructura pero con nuevos colores) */
@media (min-width: 768px) {
    .galeria-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .galeria-container {
        gap: 25px;
    }
}

/* ===== CONTACTO ===== */
.contacto-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contacto-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contacto-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacto-info i {
    color: var(--neon-green);
    min-width: 20px;
}

.contacto-info a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    margin-left: 5px;
    border-bottom: 1px dotted transparent;
}

.contacto-info a:hover {
    color: var(--neon-green);
    border-bottom-color: var(--neon-green);
}

/* ===== MAPA ===== */
.mapa-container h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mapa {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--neon-green);
    box-shadow: var(--glow-green);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 230, 192, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-rights p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

/* ===== BOTONES FLOTANTES ===== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.email {
    background-color: #EA4335;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.float-btn.whatsapp:hover {
    box-shadow: 0 0 20px #25D366;
}

.float-btn.email:hover {
    box-shadow: 0 0 20px #EA4335;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--neon-green);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    border: 2px solid var(--neon-green);
    box-shadow: var(--glow-green);
}

.lightbox-content p {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* ===== MEDIA QUERIES (RESPONSIVE) ===== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contacto-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 20px;
        border-top: 1px solid rgba(0, 230, 192, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .float-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}