/* ===== VARIABLES Y RESET ===== */
:root {
    /* Colores alineados exactamente con el logo */
    --bg-main: #1B263B; /* Mismo fondo azul oscuro del logo */
    --bg-secondary: #24324d; /* Un tono ligeramente más claro para contraste */
    --bg-card: rgba(255, 255, 255, 0.05);
    
    --text-main: #ffffff;
    --text-muted: #778DA9; /* Gris azulado del texto secundario del logo */
    
    --accent: #5B7FA6; /* Azul claro sacado del logo (escudo interior) */
    --accent-hover: #778DA9;
    --accent-warning: #f5a623; /* Acento cálido que teníamos antes, guardado para botones específicos si se necesita */
    
    --border-color: rgba(119, 141, 169, 0.2);
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animaciones */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

/* ===== COMPONENTES ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-warning);
    color: #000;
    border-color: var(--accent-warning);
}

.btn-primary:hover {
    background-color: #f7b74a;
    border-color: #f7b74a;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

.mt-2 { margin-top: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo img {
    height: 85px; /* Logo bastante más grande para leer la leyenda */
    max-width: 60vw; /* Evita que rompa el menú en móviles */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(91, 127, 166, 0.2) 0%, rgba(27, 38, 59, 1) 60%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ===== SECTIONS GENERIC ===== */
.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header.text-center {
    margin: 0 auto 4rem;
}

/* ===== FEATURES ===== */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(27, 38, 59, 0.4) 0%, rgba(19, 29, 46, 0.9) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(119, 141, 169, 0.15);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(245, 166, 35, 0.05);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== SERVICIOS ===== */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid transparent;
    border-left: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255,255,255,0.08);
    border-top-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.service-card h3 {
    font-size: 1.2rem;
}

.service-card p {
    color: var(--accent-warning);
}

/* ===== PRODUCTOS ===== */
.productos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.productos-text p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
}

.productos-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.producto-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

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

@media (max-width: 768px) {
    .productos-container {
        grid-template-columns: 1fr;
    }
    .productos-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== GALLERY (NUESTROS TRABAJOS) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.8) grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0%);
}

/* ===== SPLIT LAYOUT (NUBE) ===== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.glass-mockup {
    background: rgba(119, 141, 169, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    padding: 2rem;
}

.skeleton-line {
    height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; margin-bottom: 15px;
}
.skeleton-line.w-50 { width: 50%; }
.skeleton-box {
    height: 150px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-top: 20px;
}

/* ===== CAPACITACIÓN ===== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

button.tag {
    background: rgba(119, 141, 169, 0.15);
    border: 1px solid rgba(119, 141, 169, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-main);
}

button.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

button.tag.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(91, 127, 166, 0.5);
}

.training-details-box {
    background: linear-gradient(145deg, rgba(27, 38, 59, 0.4) 0%, rgba(19, 29, 46, 0.9) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(119, 141, 169, 0.15);
    margin-top: 3rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.training-details-box h3 {
    color: var(--accent-warning);
    margin-bottom: 1rem;
}

.training-details-box p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: #111a2a;
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent-warning);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== ANIMACIONES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
