/* ======== CONFIGURACIÓN GENERAL Y VARIABLES DE COLOR ======== */
:root {
    --primary-color: #0d2c4b; /* Azul oscuro corporativo */
    --secondary-color: #f38333; /* Naranja del logo como acento */
    --text-color: #333333;
    --light-gray-bg: #f8f9fa;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 600;
}

section {
    padding: 60px 0;
}

/* ======== ENCABEZADO Y NAVEGACIÓN ======== */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 60px; /* Ajusta este valor al tamaño de tu logo */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* ======== SECCIÓN PRINCIPAL (HERO) ======== */
.hero {
    background-image: linear-gradient(rgba(13, 44, 75, 0.7), rgba(13, 44, 75, 0.7)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
    padding-top: 80px; /* Espacio para el header fijo */
}

.hero-content h1 {
    font-size: 3em;
    color: var(--white-color);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d86e20; /* Tono más oscuro del naranja */
}

/* ======== SECCIONES DE CONTENIDO (NOSOTROS, SERVICIOS, CONTACTO) ======== */
.about, .contact {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.services {
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about p, .contact p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
}

/* ======== GRID DE SERVICIOS ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    margin: 20px 0 10px 0;
}

.service-card p {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
}

/* ======== INFORMACIÓN DE CONTACTO ======== */
.contact-info {
    margin-top: 40px;
}

.contact-info .info-item {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* ======== TESTIMONIOS ======== */
.testimonials {
    background: #f7f7f7;
    padding: 60px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 30px 24px;
    max-width: 340px;
    text-align: center;
    font-style: italic;
}

.testimonial-card span {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    color: #1a6d8f;
    font-style: normal;
}

/* ======== PIE DE PÁGINA ======== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ======== DISEÑO RESPONSIVO (PARA MÓVILES) ======== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 10px;
    }
    .main-nav li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    h2 {
        font-size: 2em;
    }
}