/* --- VARIABLES --- */
:root {
    --primary: #004d99; /* Azul Ingeniería */
    --accent: #ff4500;  /* NARANJA FUERTE */
    --text-dark: #333;
    --text-light: #555;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { color: var(--text-dark); background-color: var(--white); }
a { text-decoration: none; }
ul { list-style: none; }

/* Contenedor estándar para secciones */
.container { width: 90%; max-width: 1200px; margin: auto; }

/* --- HEADER CORREGIDO --- */
header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}

/* Usamos 95% de ancho para separar más los extremos */
.header-container {
    width: 95%; 
    max-width: 1800px; /* Permite que se expanda en pantallas grandes */
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* LOGO + SLOGAN (Izquierda) */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img { height: 75px; width: auto; }

.slogan-container { display: flex; flex-direction: column; }
.slogan-top { font-weight: 900; color: var(--primary); font-size: 1.2rem; line-height: 1; }
.slogan-bottom { font-weight: bold; color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }

/* MENÚ (Derecha) */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dark); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* BOTÓN DE CONTACTO (NARANJA OBLIGATORIO) */
.btn-quote {
    background-color: var(--accent) !important; /* Fuerza el Naranja */
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
}
.btn-quote:hover { background-color: #d13800 !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background: white; top: 100%; right: 0;
    border-top: 4px solid var(--accent); min-width: 240px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 15px; border-bottom: 1px solid #eee; display: block; font-size: 0.9rem; text-transform: none; }

/* --- HERO (PORTADA) CORREGIDO --- */
.hero {
    background: url('Imagenes/Portada.jpeg') no-repeat center center/cover;
    height: 90vh; /* Altura casi completa */
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.hero-overlay {
    background: rgba(0, 30, 60, 0.6); /* Capa azul oscura transparente */
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}

.hero-content {
    text-align: center; color: white;
    max-width: 900px;
    padding: 40px;
    background: rgba(0,0,0,0.4); /* Fondo semitransparente DETRÁS del texto para que se lea bien */
    border-radius: 10px;
    backdrop-filter: blur(3px); /* Efecto borroso elegante */
}

.hero-subtitle { color: var(--accent); font-weight: bold; letter-spacing: 3px; font-size: 1rem; display: block; margin-bottom: 15px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.hero p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; }

.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-primary { background: var(--accent); color: white; padding: 15px 35px; border-radius: 5px; font-weight: bold; font-size: 1rem; }
.btn-secondary { border: 2px solid white; color: white; padding: 13px 35px; border-radius: 5px; font-weight: bold; font-size: 1rem; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); transition: 0.3s; }

/* --- SECCIONES --- */
.section-padding { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.subtitle { color: var(--accent); font-weight: bold; letter-spacing: 1px; font-size: 0.9rem; }
.section-title { font-size: 2.5rem; color: var(--primary); margin-top: 10px; }
.line { width: 80px; height: 4px; background: var(--accent); margin: 20px auto 0; }

.bg-light { background: var(--bg-light); }

/* GRID DE SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: white; padding: 40px 30px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left;
    transition: 0.3s; border-bottom: 4px solid transparent; height: 100%;
}
.card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--accent); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.highlight-card { border-top: 1px solid #eee; background: #fff; }
.icon-box { font-size: 3rem; color: var(--primary); margin-bottom: 25px; }
.card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-light); line-height: 1.6; }

/* SECCIÓN FILOSOFÍA */
.split-section { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.split-section > div { flex: 1; }
.section-title-left { font-size: 2.5rem; color: var(--primary); margin-bottom: 40px; border-left: 5px solid var(--accent); padding-left: 20px; }
.philosophy-box { margin-bottom: 30px; }
.philosophy-box h3 { color: var(--accent); font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.rounded-img { width: 100%; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

/* FORMULARIO */
.technical-form {
    background: white; padding: 50px; border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1); max-width: 800px; margin: auto;
    border-top: 5px solid var(--primary);
}
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
input, select, textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 5px; background: #fdfdfd; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.btn-submit { width: 100%; background: var(--primary); color: white; padding: 18px; border: none; font-weight: bold; font-size: 1.1rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-submit:hover { background: var(--accent); }

footer { background: #111; color: #aaa; text-align: center; padding: 50px 0; margin-top: 60px; }
.footer-content h3 { color: white; margin-bottom: 10px; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Responsive */
@media(max-width: 900px) {
    .header-container { width: 90%; }
    .nav-links { display: none; } /* Aquí iría el menú móvil si se programa */
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .split-section { flex-direction: column; }
    .form-row { flex-direction: column; gap: 10px; }
}