/* Design System Variables - Paleta Negro, Dorado y Blanco */
:root {
    /* Palette */
    --primary-base: #000000; /* Negro */
    --accent-primary: #D4AF37; /* Dorado */
    --bg-default: #FFFFFF; /* Blanco */
    --bg-alt: #FAFAFA; /* Blanco humo para contrastar secciones */
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --text-main: #000000;
    --text-muted: #333333;
    --text-inverse: #FFFFFF;
    
    /* Functional */
    --whatsapp: #25D366;
    --phone: #D4AF37; /* Teléfono en dorado */
    --success: #D4AF37; /* Insignias en dorado */
    --stars-rating: #D4AF37; /* Estrellas doradas */

    /* Typography */
    --font-primary: 'Inter', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-pad: 4rem 2rem;
    --gap: 1.5rem;

    /* Borders & Shadows */
    --rad-sm: 4px;
    --rad-md: 8px;
    --rad-lg: 12px;
    --rad-pill: 9999px;
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    color: var(--text-muted);
    background-color: var(--bg-default);
    line-height: 1.5;
}

/* Typography Hierarchy */
h1 { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; font-weight: 700; color: var(--text-main); line-height: 1.3; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--text-main); line-height: 1.4; margin-bottom: 0.5rem;}
.body-large { font-size: 1.125rem; color: var(--text-muted); line-height: 1.6; }
p { font-size: 1rem; }

/* Layout Classes */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-pad); }
.bg-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--primary-base); /* Texto negro sobre boton dorado */
    border-radius: var(--rad-pill);
    padding: 12px 24px;
    box-shadow: var(--shadow-float);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    border-radius: var(--rad-pill);
    padding: 10px 20px;
}

/* Navigation - Barra Negra */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: var(--primary-base); /* Negro */
    box-shadow: var(--shadow-card); z-index: 1000;
}
.nav-container {
    max-width: var(--container-max); margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo a {
    display: flex; align-items: center;
    text-decoration: none;
}
.logo-img { 
    max-height: 70px; /* Aumentamos el tamaño aquí */
    width: auto; 
    display: block;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-inverse); font-weight: 600; } /* Links blancos */
.nav-links a:hover { color: var(--accent-primary); } /* Hover dorado */
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.phone-link {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--phone); font-weight: 700; text-decoration: none;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-inverse); font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: url('/img/BACKGROUND.jpeg') center/cover no-repeat;
    padding-top: 80px;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-overlay); }
.hero-content { position: relative; z-index: 10; width: 100%; }
.floating-content-box {
    background: var(--bg-default); border-radius: var(--rad-lg);
    padding: 2.5rem; box-shadow: var(--shadow-card); max-width: 500px;
}
.floating-content-box .subtitle { margin-bottom: 1.5rem; font-size: 1.125rem; }
.trust-indicators { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--text-main); }
.stars { display: flex; color: var(--stars-rating); width: 100px; }
.lead-capture-form { display: flex; flex-direction: column; gap: 1rem; }
.lead-capture-form input, .contact-form input, .contact-form textarea {
    background: var(--bg-alt); border: 1px solid #E2E8F0; border-radius: var(--rad-sm);
    padding: 12px 16px; font-family: inherit; font-size: 1rem;
}

/* Mission */
.mission-text { max-width: 800px; margin: 0 auto; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.service-card {
    background: var(--bg-alt); padding: 2rem; border-radius: var(--rad-md);
    text-align: center; border: 1px solid #E2E8F0; transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--accent-primary); }

/* Media Gallery Grid (Cuadros perfectos) */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.media-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--rad-md);
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Cuadrados perfectos */
    background: var(--primary-base);
    border: 1px solid #222;
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.media-item:hover img {
    transform: scale(1.08);
}
.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: var(--accent-primary);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Etiquetas de la Galería */
.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    pointer-events: none;
}
.badge-black { background: var(--primary-base); color: var(--text-inverse); }
.badge-gold { background: var(--accent-primary); color: var(--primary-base); }

/* Visor Pantalla Completa (Lightbox) */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 3rem;
    color: var(--accent-primary);
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--rad-md);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ========================================= */

/* Owner Section */
.owner-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.team-card {
    background: var(--bg-default);
    padding: 2rem;
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 400px;
    width: 100%;
}
.team-photo { 
    width: 120px; 
    height: 120px; 
    background-color: #CBD5E1; 
    border-radius: 50%; 
    margin: 0 auto 1.5rem; 
    object-fit: cover; /* Esta línea recorta estéticamente la foto para que encaje perfecto en el círculo */
    display: block; /* Asegura que la imagen se centre correctamente */
}

/* Contact Section */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.social-links-lg { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--primary-base); color: var(--text-inverse); padding: 4rem 2rem 2rem; }
.footer h2 { color: var(--accent-primary); margin-bottom: 0.5rem; }
.footer-links { margin: 2rem 0; display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a { color: white; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-primary); }
.copyright { font-size: 0.875rem; opacity: 0.7; }

/* Floating Actions Stack */
.floating-actions { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; z-index: 999; }
.floating-pill { background: var(--bg-default); color: var(--text-main); border: 2px solid var(--accent-primary); border-radius: var(--rad-pill); padding: 10px 20px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-float); font-size: 0.9rem; }
.floating-whatsapp { background: var(--whatsapp); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-float); transition: transform 0.2s; }
.floating-whatsapp:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links, .phone-link { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--primary-base); padding: 1rem; box-shadow: var(--shadow-card);
    }
    .contact-wrapper { grid-template-columns: 1fr; }
    .floating-content-box { margin: 0 1rem; padding: 1.5rem; }
}