:root {
    --primary: #0a2540;
    --secondary: #c1a35f;
    --text: #425466;
    --light: #f6f9fc;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

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

/* Header & Nav */
header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), 
                url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    border-bottom: 4px solid var(--secondary);
    transition: transform 0.3s;
}

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

/* Formulario */
.contact-section { background: var(--light); padding: 80px 0; }
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
/* Contenedor del Formulario */
.contact-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    padding: 100px 0;
}

.contact-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px; /* Bordes más suaves */
    max-width: 650px;
    margin: auto;
    /* Sombra profunda para dar volumen */
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1); 
    border: 1px solid rgba(193, 163, 95, 0.2);
}

.contact-box h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.contact-box p {
    text-align: center;
    margin-bottom: 35px;
    color: #6b7c93;
}

/* Diseño de los campos de entrada */
.form-group {
    margin-bottom: 20px;
}

form input, 
form select, 
form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e3e8ee;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease; /* Animación suave */
    outline: none;
    background-color: #fcfdfe;
}

/* Efecto al hacer clic o escribir (Focus) */
form input:focus, 
form select:focus, 
form textarea:focus {
    border-color: var(--secondary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(193, 163, 95, 0.1);
    transform: translateY(-2px); /* Pequeño levante visual */
}

/* Botón Modernizado */
.btn-submit {
    background: linear-gradient(135deg, #0a2540 0%, #164069 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}
/* Ajustes para Pantallas Móviles (Celulares) */
@media (max-width: 768px) {
    
    /* 1. Ajuste del Menú de Navegación */
    nav {
        flex-direction: column; /* Pone el logo arriba y los botones abajo */
        padding: 10px;
        text-align: center;
    }
    
    nav div {
        margin-bottom: 10px;
    }

    /* 2. Ajuste de los servicios (Cards) */
    .grid, .services-grid {
        grid-template-columns: 1fr !important; /* Fuerza a que haya solo 1 columna */
        padding: 10px;
    }

    /* 3. Ajuste de textos y contenedores */
    h1 {
        font-size: 1.8rem; /* Letra un poco más pequeña para que no se corte */
    }

    .container, .services-container {
        padding: 20px 10px;
    }

    /* 4. Botones grandes para que sean fáciles de tocar */
    .btn, .btn-contacto, a[style*="background: #28a745"] {
        display: block; /* Ocupa todo el ancho */
        width: 90%;
        margin: 10px auto;
        font-size: 1.1rem;
    }
}
/* ESTILOS GENERALES */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* MENÚ DE NAVEGACIÓN (NAVBAR) */
.main-nav {
    background-color: #333;
    padding: 15px 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.3);
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #28a745;
}

/* BOTÓN DE ACCIÓN */
.btn-solicitud {
    background-color: #28a745;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold !important;
    transition: background 0.3s !important;
}

.btn-solicitud:hover {
    background-color: #218838;
    color: white !important;
}

/* DISEÑO RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #444;
    }

    .btn-solicitud {
        border-bottom: none !important;
        margin-top: 5px;
    }
}