/* ========================================= */
/* --- FUENTES Y VARIABLES --- */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
/* ========================================= */
/* --- PALETA COMBINADA: AZULES + AMARILLO --- */
/* ========================================= */
--primary: #1A5276;       /* Azul Medio (Principal) */
--primary-dark: #003355;  /* Azul Base (Oscuro) */
--primary-light: #5D8AA8; /* Azul Acero (Brillo) */

--secondary: #2C3E50;     /* Gris Azulado Oscuro (Texto) */

/* ✅ AMARILLO INDUSTRIAL */
--accent: #FFD700;        /* Amarillo Oro/Seguridad */
--accent-hover: #e6c200;  /* Amarillo hover más oscuro */

--light: #f4f6f7;
--dark: #003355;
--grey: #95a5a6;

/* ========================================= */
/* --- TIPOGRAFÍA --- */
/* ========================================= */
--font-heading: 'Montserrat', sans-serif;
--font-body: 'Roboto', sans-serif;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: var(--font-body);
color: var(--secondary);
background-color: var(--light);
line-height: 1.6;
overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
font-family: var(--font-heading);
text-transform: uppercase;
letter-spacing: 1px;
color: var(--primary-dark);
font-weight: 800;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* ========================================= */
/* --- TOP BAR --- */
/* ========================================= */
.top-bar {
background: var(--primary-dark);
color: #aaa;
font-size: 0.85rem;
padding: 10px 0;
border-bottom: 1px solid #333;
}

.top-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

.top-info span { margin-right: 20px; }
.top-info i, .top-social i { color: var(--accent); margin-right: 5px; }

.top-social a {
color: #fff;
margin-left: 15px;
opacity: 0.7;
}

.top-social a:hover { opacity: 1; color: var(--accent); }

/* ========================================= */
/* --- HEADER & NAV --- */
/* ========================================= */
#main-header {
background: #fff;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 1000;
padding: 15px 0;
transition: 0.3s;
}

.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

/* ========================================= */
/* ✅ LOGO - TAMAÑO 110px --- */
/* ========================================= */
.header-logo {
height: 110px;        /* ✅ TAMAÑO SOLICITADO */
width: auto;
display: block;
transition: 0.3s;
object-fit: contain;
}

.header-logo:hover {
transform: scale(1.02);
opacity: 0.95;
}

/* ========================================= */
/* --- NAVEGACIÓN --- */
/* ========================================= */
.nav-links {
display: flex;
gap: 30px;
align-items: center;
}

.nav-links a {
font-family: var(--font-heading);
font-weight: 700;
font-size: 0.95rem;
color: var(--secondary);
position: relative;
text-transform: uppercase;
}

.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--accent);
transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
width: 100%;
}

.btn-nav {
background: var(--accent);
color: var(--primary-dark) !important;
padding: 10px 25px;
border-radius: 2px;
font-weight: 700;
}

.btn-nav:hover { 
background: var(--accent-hover); 
color: var(--primary-dark) !important;
}
.btn-nav::after { display: none; }

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--primary-dark); margin: 5px; transition: 0.3s; }

/* ========================================= */
/* ✅ HERO INTERNO --- */
/* ========================================= */
.page-hero {
height: 50vh;
min-height: 400px;
background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
position: relative;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
}

.page-hero .overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(135deg, rgba(0, 51, 85, 0.8) 0%, rgba(26, 82, 118, 0.9) 100%);
}

.page-hero .hero-content {
position: relative;
z-index: 2;
animation: fadeInUp 1s ease-out;
}

.page-hero h1 {
font-size: 3.5rem;
margin-bottom: 15px;
text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
color: #fff;
font-weight: 900;
}

.page-hero p {
font-size: 1.2rem;
font-weight: 400;
opacity: 0.95;
}

/* ========================================= */
/* ✅ INTRODUCCIÓN --- */
/* ========================================= */
.about-intro {
padding: 100px 0;
background: #fff;
}

.intro-content {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 60px;
align-items: center;
}

.intro-text .sub-title {
color: var(--accent); /* ✅ Amarillo */
font-family: var(--font-heading);
font-weight: 700;
letter-spacing: 2px;
margin-bottom: 10px;
}

.intro-text h2 {
font-size: 2.5rem;
color: var(--primary-dark);
margin-bottom: 25px;
line-height: 1.2;
font-weight: 800;
}

.intro-text .lead {
font-size: 1.5rem;
color: var(--primary); /* ✅ Azul */
font-weight: 500;
margin-bottom: 20px;
}

.intro-text p {
color: #555;
margin-bottom: 20px;
line-height: 1.8;
}

.intro-image {
position: relative;
}

.intro-image img {
width: 100%;
border-radius: 4px;
box-shadow: 20px 20px 0px var(--primary);
}

.experience-badge-large {
position: absolute;
bottom: -30px;
left: -30px;
background: var(--primary-dark);
color: #fff;
padding: 30px;
border-radius: 4px;
text-align: center;
border: 2px solid var(--accent); /* ✅ Borde amarillo */
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge-large .number {
display: block;
font-size: 3rem;
font-weight: 900;
font-family: var(--font-heading);
line-height: 1;
color: var(--accent); /* ✅ Número en amarillo */
}

.experience-badge-large .text {
font-size: 1rem;
font-weight: 700;
text-transform: uppercase;
}

/* ========================================= */
/* ✅ MISIÓN Y VISIÓN --- */
/* ========================================= */
.mv-section {
padding: 100px 0;
background: var(--light); /* ✅ Fondo claro */
}

.mv-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-top: 50px;
}

.mv-card {
background: #fff;
padding: 50px;
border-radius: 4px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
transition: 0.4s;
border-left: 4px solid var(--accent); /* ✅ Borde izquierdo amarillo */
position: relative;
overflow: hidden;
}

.mv-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mv-card .icon-box {
width: 80px;
height: 80px;
background: rgba(26, 82, 118, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 25px;
transition: 0.4s;
}

.mv-card:hover .icon-box {
background: var(--primary);
}

.mv-card .icon-box i {
font-size: 2rem;
color: var(--primary);
transition: 0.4s;
}

.mv-card:hover .icon-box i {
color: #fff;
}

.mv-card h3 {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--primary-dark);
font-weight: 800;
}

.mv-card p {
color: #666;
line-height: 1.8;
}

/* ========================================= */
/* ✅ VALORES --- */
/* ========================================= */
.values-section {
padding: 100px 0;
background: #fff;
}

.values-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-top: 50px;
}

.value-item {
text-align: center;
padding: 30px 20px;
border-radius: 4px;
transition: 0.3s;
border-top: 3px solid transparent;
}

.value-item:hover {
background: #f8f9fa;
border-top: 3px solid var(--accent); /* ✅ Borde superior amarillo */
}

.value-item i {
font-size: 3rem;
color: var(--accent); /* ✅ Íconos en amarillo */
margin-bottom: 20px;
transition: 0.3s;
}

.value-item:hover i {
transform: scale(1.1) rotate(5deg);
color: var(--primary);
}

.value-item h4 {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--primary-dark);
font-weight: 700;
}

.value-item p {
font-size: 0.95rem;
color: #777;
line-height: 1.6;
}

/* ========================================= */
/* ✅ CTA BANNER --- */
/* ========================================= */
.cta-nosotros {
background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
position: relative;
padding: 100px 0;
text-align: center;
color: #fff;
}

.cta-nosotros .overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 51, 85, 0.85);
}

.cta-nosotros .container {
position: relative;
z-index: 2;
}

.cta-nosotros h2 {
font-size: 3rem;
margin-bottom: 15px;
color: #fff;
font-weight: 800;
}

.cta-nosotros p {
font-size: 1.2rem;
margin-bottom: 40px;
opacity: 0.9;
}

.btn-cta {
padding: 15px 40px;
background: var(--accent);
color: var(--primary-dark);
font-family: var(--font-heading);
font-weight: 700;
text-transform: uppercase;
border-radius: 50px;
font-size: 1rem;
transition: 0.3s;
display: inline-block;
}

.btn-cta:hover {
background: var(--accent-hover);
transform: translateY(-3px);
}

/* ========================================= */
/* --- FOOTER --- */
/* ========================================= */
footer { 
background: var(--primary-dark); 
color: #fff; 
padding-top: 80px; 
}

.footer-grid {
display: grid;
grid-template-columns: 1.5fr 1.5fr 1fr;
gap: 50px;
padding-bottom: 60px;
border-bottom: 1px solid #333;
}

.footer-logo {
margin-bottom: 20px;
}

.footer-logo-img {
height: 80px;
width: auto;
display: block;
transition: 0.3s;
}

.footer-logo-img:hover {
transform: scale(1.05);
}

.footer-col p { color: #aaa; margin-bottom: 20px; font-size: 0.95rem; }

.footer-legal span {
background: #333;
padding: 5px 10px;
font-size: 0.8rem;
border-radius: 4px;
color: #fff;
}

.footer-col h3 {
color: #fff;
font-size: 1.1rem;
margin-bottom: 25px;
position: relative;
padding-bottom: 10px;
font-family: var(--font-heading);
font-weight: 700;
}

.footer-col h3::after {
content: '';
position: absolute;
bottom: 0; left: 0; width: 40px; height: 3px;
background: var(--accent);
}

.contact-list li {
margin-bottom: 15px;
color: #aaa;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 10px;
}

.contact-list li i { color: var(--accent); width: 20px; }

.social-circle-container { display: flex; gap: 15px; }

.social-circle-container a {
width: 45px; height: 45px;
border-radius: 50%;
background: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
transition: 0.3s;
border: 2px solid transparent;
}

.social-circle-container a:hover {
background: var(--accent);
color: var(--primary-dark);
border-color: var(--accent-hover);
transform: translateY(-5px);
}

.small-text { font-size: 0.8rem; color: #555; margin-top: 20px; }

.footer-bottom {
text-align: center;
padding: 20px;
background: #002244;
color: #aaa;
font-size: 0.85rem;
}

/* ========================================= */
/* --- ANIMACIONES --- */
/* ========================================= */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ========================================= */
/* --- RESPONSIVE --- */
/* ========================================= */
@media screen and (max-width: 900px) {
.page-hero h1 { font-size: 2.5rem; }

/* ✅ Logo responsive */
.header-logo { 
height: 80px; 
}

.footer-logo-img { 
height: 60px; 
margin: 0 auto 20px auto; 
}

.intro-content {
grid-template-columns: 1fr;
gap: 40px;
}

.experience-badge-large {
left: 50%;
bottom: -20px;
transform: translateX(-50%);
width: 200px;
}

.mv-grid {
grid-template-columns: 1fr;
}

.values-grid {
grid-template-columns: 1fr 1fr;
}

.nav-links {
position: absolute;
right: 0px;
height: 90vh;
top: 8vh;
background-color: #fff;
display: flex;
flex-direction: column;
align-items: center;
width: 70%;
transform: translateX(100%);
transition: transform 0.5s ease-in;
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.nav-links li { opacity: 0; margin: 20px 0; }
.burger { display: block; }
.nav-active { transform: translateX(0%); }

@keyframes navLinkFade {
from { opacity: 0; transform: translateX(50px); }
to { opacity: 1; transform: translateX(0px); }
}
}

@media screen and (max-width: 600px) {
.values-grid {
grid-template-columns: 1fr;
}
}