/* VARIABLES GLOBALES */
:root {
    --primary-blue: #0a2540;
    --accent-yellow: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* RESETEO BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

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

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    border: 2px solid var(--accent-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-yellow);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #ffffff;
}

/* HEADER (NAVEGACIÓN) */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-blue);
}

#logo-img {
    height: 40px;
    /* Mostrará un cuadro si no hay imagen aún */
    min-width: 40px; 
    background-color: #eee;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

/* HERO SECTION (INICIO) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px; /* Compensa el header fijo */
}

/* Configuración del Video de YouTube como fondo */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* Ratio 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* Ratio 16:9 */
    z-index: -2;
    pointer-events: none;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.85); /* Azul corporativo oscuro con transparencia */
    z-index: -1;
}

.hero-content {
    color: var(--text-light);
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    color: var(--accent-yellow);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* FRANJA INFERIOR HERO */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
}

.bar-content {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

/* ESTILOS COMUNES DE SECCIÓN */
.section {
    padding: 80px 0;
}

.section-tag {
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
}

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

.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* SECCIÓN: SOBRE NOSOTROS */
.about-section {
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-vision h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
}

.mission-vision p {
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.badge-text {
    font-size: 12px;
    letter-spacing: 1px;
}

/* SECCIÓN: CLIENTES */
.clients-section {
    background-color: var(--bg-light); /* Gris muy claro */
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.client-item {
    background-color: #ffffff;
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: 600;
    color: #666666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
}

.client-item:hover {
    border-color: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* RESPONSIVE (Móviles) */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .badge {
        right: 0;
        bottom: 0;
    }
}

/* SECCIÓN: SERVICIOS */
.services-section {
    background-color: #ffffff;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--accent-yellow);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.service-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 15px;
}

.service-desc {
    color: #666666;
    font-size: 14px;
}

/* SECCIÓN: POR QUÉ ELEGIRNOS */
.stats-section {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.section-title.text-light {
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 50px;
}

.stat-icon {
    color: var(--accent-yellow);
    font-size: 24px;
    margin-bottom: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 18px;
    font-weight: 600;
}

.stat-desc {
    font-size: 14px;
    opacity: 0.8;
}

/* SECCIÓN: CONTACTO */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-list i {
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 18px;
}

.contact-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
}

/* FOOTER */
.footer {
    background-color: #051626;
    color: #ffffff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    border-color: var(--accent-yellow);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background-color: #030d17;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .contact-grid, .contact-form, .footer-grid {
        grid-template-columns: 1fr;
    }
}