/* --- VARIABLES Y CONFIGURACIÓN GLOBAL --- */
:root {
    /* Paleta Neo-Minimalista / Dark Mode */
    --bg-color: #0a0a0e;       /* Negro muy profundo */
    --bg-card: #13131a;        /* Gris oscuro para tarjetas */
    --text-main: #e0e0e0;      /* Blanco suave */
    --text-muted: #a0a0a0;     /* Gris para textos secundarios */
    
    /* Colores Accent (Neo-Mint y Neon) */
    --primary: #00f2c3;        /* Neo Mint */
    --secondary: #7b2cbf;      /* Purple Neon */
    --gradient: linear-gradient(90deg, var(--primary), #4cc9f0);
    
    --font-main: 'Outfit', sans-serif;
    --border-radius: 12px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.rounded-img {
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón Principal */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 195, 0.4);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary);
}

.btn-contact {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary);
}

.btn-contact:hover {
    background: var(--primary);
    color: #000;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION (FONDO CON IMAGEN) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--nav-height);
    
    /* Fondo con superposición oscura (gradient) + Imagen */
    /* Reemplaza la URL larga con tu propia imagen: url('img/fondo-home.jpg') */
    background: linear-gradient(to bottom, rgba(10, 10, 14, 0.9), rgba(10, 10, 14, 0.5)),
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax suave */
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    /* Sombra para que se lea perfecto sobre la foto */
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main); /* Texto blanco brillante */
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- ABOUT SECTION --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* --- SERVICES SECTION --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 195, 0.1);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- VIDEO & GALLERY SECTION --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 60px auto;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 200px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--primary);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    margin-top: 20px;
    color: var(--text-muted);
}

.info-item strong {
    color: var(--primary);
    display: block;
}

.whatsapp-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.full-width {
    width: 100%;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    margin-left: 20px;
    color: var(--text-main);
}

.socials a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding-top: 50px;
        transition: 0.3s;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1; 
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

/* --- ESTILOS NUEVOS PARA CAPTION Y CAPTCHA --- */

/* Texto de descripción en Lightbox */
#lightbox-caption {
    margin: 20px auto 0;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.6); /* Fondo semitransparente para lectura */
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary); /* Detalle verde Neo-Mint */
    animation: zoomIn 0.3s;
}

/* Ajuste para el Captcha en móvil */
.g-recaptcha {
    display: flex;
    justify-content: center; /* Centrar el captcha */
    margin-bottom: 15px;
}

}