/* Importar fuentes de Google Fonts: Montserrat (para títulos) y Open Sans (para cuerpo) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/*
 * ----------------------------------------------------
 * ESTILOS GENERALES Y RESET
 * ----------------------------------------------------
 */
:root {
    --primary-color: #336699; /* Azul Corporativo */
    --accent-color: #FF9900; /* Naranja/Ámbar para acento (contrasta bien con el azul) */
    --secondary-bg: #E6F2FF; /* Fondo de la sección de servicios (azul claro) */
    --text-dark: #2c3e50;    /* Texto oscuro, casi negro */
    --text-medium: #555555;
    --bg-light: #F8F9FA;     /* Fondo del body (casi blanco) */
    --bg-white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.section {
    padding: 60px 0; /* Más espaciado vertical */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

/*
 * ----------------------------------------------------
 * CABECERA Y NAVEGACIÓN
 * ----------------------------------------------------
 */
.header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 28px;
    margin: 0;
    color: var(--bg-white);
}

.header h1 b {
    color: var(--accent-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 600;
    padding: 5px 0;
    display: block;
    border-bottom: 2px solid transparent; 
}

.nav-list a:hover {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color); 
}

/*
 * ----------------------------------------------------
 * SECCIÓN HERO/INICIO
 * ----------------------------------------------------
 */
.hero {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.hero h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 19px;
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/*
 * ----------------------------------------------------
 * SECCIÓN DE SERVICIOS
 * ----------------------------------------------------
 */
.services-section {
    background-color: var(--secondary-bg);
}

.services-section h3 {
    font-size: 32px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 25px;
    border: none;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.service-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-medium);
}

.service-footer-note {
    font-size: 15px;
    color: var(--text-medium);
    margin-top: 20px;
}

/*
 * ----------------------------------------------------
 * SECCIÓN DE CONTACTO
 * ----------------------------------------------------
 */
.contact-section {
    background-color: #F7F7F7;
}

.contact-section h3 {
    font-size: 32px;
    margin-bottom: 25px;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--bg-white);
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    gap: 20px;
    text-align: left;
}

.contact-form label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

/* ESTILOS DE CAMPOS DE ENTRADA Y SELECT */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], /* Añadido el campo teléfono */
.contact-form select, /* Añadido el select/dropdown */
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Estilo visual para el select */
    appearance: none; 
    background-color: var(--bg-white);
    /* Flecha personalizada SVG (base64, color azul) */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23336699%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.4-6.4H18.8a17.6%2017.6%200%200%200-13.4%206.4%2017.6%2017.6%200%200%200-4.6%2014.3l138%20146.4c5.1%205.1%2011.8%207.8%2018.7%207.8s13.6-2.7%2018.7-7.8l138-146.4a17.6%2017.6%200%200%200-4.6-14.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2); 
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
}

.contact-form button:hover {
    background-color: #2a527c;
    transform: translateY(-2px);
}

/* ESTILOS PARA MENSAJES DE VALIDACIÓN/ÉXITO (USADO por JavaScript) */
.form-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    display: none; /* Inicialmente oculto */
    transition: opacity 0.3s ease;
}

.contact-footer-note {
    font-size: 15px;
    color: var(--text-medium);
    margin-top: 25px;
}

/*
 * ----------------------------------------------------
 * PIE DE PÁGINA
 * ----------------------------------------------------
 */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 15px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

/*
 * ----------------------------------------------------
 * MEDIA QUERIES (Responsividad)
 * ----------------------------------------------------
 */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        margin-bottom: 10px;
    }

    .nav-list {
        margin-top: 10px;
    }

    .nav-list li {
        margin: 0 10px;
    }

    .section {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 30px;
    }
}

@media (max-width: 550px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        margin: 5px 0;
    }
}