:root {
    --primary-blue: #0099ff;
    --dark-blue: #003366;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f6f9;
    --text-dark: #222222;
    --text-light: #ffffff;
    --accent-yellow: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Logo Agrandado */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Hero Section - Imagen estirada cubriendo todo el sector */
.hero {
    position: relative;
    background-image: url('imagenes/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 75px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 2rem auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #e6b800;
}

/* Estilos de Secciones */
.section {
    padding: 5rem 0;
}

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

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

.text-white {
    color: var(--text-light);
}

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

.subtitle {
    display: block;
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 800;
}

.bg-dark .section-title {
    color: var(--text-light);
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #555;
    font-size: 1.1rem;
}

.bg-dark .section-desc {
    color: #ccc;
}

.info-address {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

/* Grids de Servicios y Habilidades */
.services-grid, .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-blue);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h4 {
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* Misión, Visión, Valores */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 4px solid var(--dark-blue);
}

.mv-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Habilidades Distintivas Dark Theme */
.skill-item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-blue);
}

.skill-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

/* Contenedor Canvas 3D (Con altura explícita obligatoria para evitar pantallas en blanco) */
#canvas-container {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 1.5rem auto 0 auto;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid #e1e8ed;
    display: block;
}

/* Contacto */
.contact-container {
    text-align: center;
    max-width: 600px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.contact-badge {
    background: var(--accent-yellow);
    color: var(--text-dark);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.web-url {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.contact-card-info h4 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.cargo {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-card-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-card-info a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Footer con Galería de Imágenes */
.site-footer {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 3rem 0 1.5rem 0;
    text-align: center;
}

.footer-gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-gallery img {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}