/* ======== CONFIGURACIÓN GENERAL ======== */
:root {
    --azul-corporativo: #003366;
    --dorado-ocre: #B8860B;
    --gris-oxford: #36454F;
    --gris-claro: #F4F6F7;
    --blanco: #FFFFFF;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: var(--font-secondary); color: var(--gris-oxford); line-height: 1.6; padding-top: 70px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--gris-claro); }
.text-center { text-align: center; }
h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 700; color: var(--azul-corporativo); }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--dorado-ocre); }
.section-intro { max-width: 700px; margin: 0 auto 40px auto; font-size: 1.1rem; }

/* ======== CABECERA Y NAVEGACIÓN ======== */
.header { background-color: var(--blanco); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); height: 70px; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 45px; display: block; }
.header nav ul { list-style: none; display: flex; gap: 25px; }
.header nav a { text-decoration: none; color: var(--gris-oxford); font-weight: 500; transition: color 0.3s ease; }
.header nav a:hover { color: var(--dorado-ocre); }

/* ======== PÁGINA DE INICIO (HOME) ======== */
.hero { background: linear-gradient(rgba(0, 51, 102, 0.4), rgba(0, 51, 102, 0.4)), url(images/portada.jpg) no-repeat center center/cover; height: calc(100vh - 70px); display: flex; justify-content: center; align-items: center; color: var(--blanco); text-align: center; margin-top: -70px; }
.hero-content { max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--blanco); text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.cta-button { background-color: var(--dorado-ocre); color: var(--blanco); padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: 700; font-family: var(--font-primary); transition: background-color 0.3s ease; border: none; cursor: pointer; }
.cta-button:hover { background-color: #a3790a; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--dorado-ocre); }
.stat-label { font-size: 1.1rem; color: var(--gris-oxford); }

.logos-container { margin-top: 30px; font-size: 1.5rem; font-weight: 700; color: #a0a0a0; letter-spacing: 2px; }

/* ======== PÁGINAS INTERNAS (GENERAL) ======== */
.page-header { background-color: var(--azul-corporativo); padding: 50px 0; text-align: center; }
.page-header h1 { color: var(--blanco); font-size: 3rem; }

/* "NOSOTROS" */
.content-section { max-width: 800px; margin: 0 auto; text-align: center; }
.content-section p { font-size: 1.1rem; text-align: justify; }
.mission-vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.mission-vision-grid .card { background: var(--blanco); padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); }
.values-grid-detailed { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.value-card { padding: 25px; border: 1px solid #ddd; border-radius: 8px; }
.value-card h4 { font-size: 1.5rem; margin-bottom: 10px; }
.video-container { max-width: 600px; margin: 20px auto 0; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 8px; overflow: hidden; }
.gallery-video { width: 100%; display: block; }

/* "SERVICIOS" (PÁGINA PRINCIPAL) */
.service-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card-item { display: flex; align-items: flex-end; height: 400px; padding: 20px; border-radius: 10px; background-size: cover; background-position: center; color: var(--blanco); text-decoration: none; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.service-card-title { font-family: var(--font-primary); font-size: 1.8rem; font-weight: 700; position: relative; z-index: 2; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* "SERVICIOS" (PÁGINAS DE DETALLE) */
.page-header-service { padding: 100px 0; background-size: cover; background-position: center; text-align: center; }
.page-header-service h1 { color: var(--blanco); font-size: 3.5rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.service-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: flex-start; }
.service-detail-main h2 { font-size: 2.5rem; margin-bottom: 20px; }
.service-detail-main p { font-size: 1.1rem; line-height: 1.8; }
.service-detail-gallery h3 { margin-bottom: 20px; border-bottom: 3px solid var(--dorado-ocre); padding-bottom: 10px; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.gallery-grid img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* "SUCURSALES" */
.branch-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.branch-card { background-color: var(--gris-claro); padding: 30px; border-radius: 8px; }
.branch-card p { margin-bottom: 10px; font-size: 1.1rem; }
.branch-map iframe { border-radius: 8px; }

/* "CONTACTO" */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-details p { margin-bottom: 15px; }
.contact-divider { border: 0; height: 2px; background-color: var(--dorado-ocre); width: 50px; margin: 20px 0; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.contact-form textarea { resize: vertical; }

/* ======== PIE DE PÁGINA ======== */
.footer { background-color: var(--gris-oxford); color: var(--gris-claro); text-align: center; padding: 30px 0; }
.footer p { margin-bottom: 5px; }

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .branch-container, .contact-grid, .service-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header nav ul { display: none; }
    .hero h1, .page-header-service h1 { font-size: 2.5rem; }
}