/* --- VARIABLES DE COLOR Y ESTILOS GLOBALES --- */
:root {
    --primary-blue: #0c2340; /* Azul oscuro corporativo */
    --secondary-blue: #0056b3;
    --accent-orange: #ff8c00; /* Naranja Angulo */
    --light-bg: #f4f7f6;
    --text-dark: #333;
    --text-light: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center; 
    margin-bottom: 2rem;
}

/* --- HEADER / NAVEGACIÓN --- */
header {
    background-color: #FBFCF6; /* Fondo gris cálido muy claro */
    color: #043959;            /* Color base del texto */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

/* --- ESTILOS DEL LOGO EN EL HEADER --- */
.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 0;        
    border-radius: 8px;        
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);    
}

.main-logo {
    height: 80px;              
    width: auto;               
    display: block;
}

nav ul {
    display: flex;
    gap: 25px; 
}

/* Color y formato de los enlaces del menú */
nav a {
    color: #043959; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.95rem; 
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-orange); 
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(12, 35, 64, 0.75), rgba(12, 35, 64, 0.85)), url('../images/fondo-portada.jpg') no-repeat center center/cover;
    height: 60vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.btn-cta {
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #e67e00;
}

/* --- SECCIÓN COBERTURA --- */
.section-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #e0e0e0; 
    min-height: 300px;
}

.map-banner {
    background: var(--primary-blue); 
    color: white; 
    padding: 1rem; 
    border-radius: 10px; 
    margin-top: 1rem; 
    text-align: center;
}

.region-card {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--secondary-blue);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.region-card.highlight {
    border-left-color: var(--accent-orange);
}

.region-card h3 {
    color: var(--secondary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.region-card.highlight h3 {
    color: var(--accent-orange);
}

.region-cities {
    font-size: 0.9rem;
    color: #555;
}

/* --- SECCIÓN SERVICIOS --- */
.services {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 5%;
}

.services h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent-orange);
}

.service-item h4 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

/* --- SECCIÓN FLOTA --- */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.truck-card {
    background: white;
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column; 
}

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

.truck-img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    object-position: center; 
    background-color: #f0f0f0; 
    border-bottom: 1px solid #eee; 
}

.truck-info {
    padding: 1.5rem;
    flex-grow: 1; 
}

.truck-info h3 {
    font-size: 1.1rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.truck-specs {
    font-size: 0.85rem;
    color: #666;
    list-style: disc;
    padding-left: 1.2rem;
}

/* --- SECCIÓN CONTACTO Y FOOTER --- */
.contact-section {
    background-color: #e9ecef;
    padding: 4rem 5%;
    text-align: center;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    text-align: left;
}

.contact-info a {
    color: var(--secondary-blue); 
    font-weight: bold;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.qr-code img {
    width: 100%;
    height: 100%;
}

footer {
    background-color: #050f1c;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* --- NUEVOS ESTILOS PARA LOS ENLACES DEL FOOTER --- */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Espacio entre los párrafos y los enlaces */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil de separación */
    width: 100%;
    max-width: 600px;
}

.footer-links a {
    color: #888; 
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange); /* Se ilumina en naranja al pasar el mouse */
}

/* --- RESPONSIVE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .coverage-grid { grid-template-columns: 1fr; }
    
    header { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    nav ul { 
        gap: 15px; 
    }

    /* Ajuste del logo para móviles */
    .main-logo {
        height: 60px; 
    }

    /* Ajuste de enlaces del footer en móviles */
    .footer-links {
        flex-direction: column; /* Pone los enlaces uno debajo del otro en celulares */
        gap: 10px;
    }
}