/* =========================
   RESET Y CONFIGURACIÓN BASE
========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f9fc;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   HEADER / NAV
========================= */
header {
    background: #0a3d91;
    color: #fff;
    padding: 0.5em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1em;
}

.logo {
    height: 48px;
    margin-right: 1em;
    transition: height 0.25s ease;
}

.logo.small { height: 36px; }

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2em;
    margin: 0;
    padding: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
nav a:hover { color: #1eff00; }

/* =========================
   MAIN / SECTIONS
========================= */
main { margin-top: 80px; }

.section {
    max-width: 1100px;
    margin: 2em auto;
    padding: 2em 1em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10,61,145,0.05);
}

h1, h2 { color: #0a3d91; }

.lead {
    color: #425d82;
    margin-bottom: 1em;
}

/* =========================
   NUESTROS SERVICIOS
========================= */
.servicios-section {
    max-width: 1300px;
    box-shadow: none;
}

.servicios-section h2,
.servicios-section .lead { color: #0a3d91; }

/* Filas alternadas */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em 1em;
    gap: 2em;
    flex-wrap: wrap;
    border-radius: 12px;
}

.service-row.azul { background: #0a3d91; color: #fff; }
.service-row.blanco { background: #d3d3d3; color: #222; }

.service-text, .service-img { flex: 1 1 400px; }
.service-text p { font-size: 1.2rem; font-weight: 500; margin: 0; line-height: 1.4; }

.service-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(10,61,145,0.06);
}

/* Orden alternante de imagen y texto */
.service-row:nth-child(even) .service-img { order: 1; }
.service-row:nth-child(even) .service-text { order: 2; }

/* =========================
   QUIÉNES SOMOS
========================= */
.quienes-somos-section {
    background: #fff;
}

.quienes-somos-content {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    flex-wrap: wrap;
}

.quienes-somos-text {
    flex: 1 1 400px;
}

.quienes-somos-text h2 {
    color: #0a3d91;
    font-size: 1.8rem;
    margin-top: 1.2em;
}

.quienes-somos-text p {
    color: #222;
    line-height: 1.6;
}

.quienes-somos-img {
    flex: 0 0 300px;
    text-align: center;
}

.quienes-somos-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(10,61,145,0.06);
}

/* =========================
   CONTACTO
========================= */
.contact-section {
    background: #0a3d91;
    color: #fff;
    box-shadow: none;
    max-width: 1300px;
    padding: 2.5em 1em;
    border-radius: 12px;
}

.contact-section h2,
.contact-section label { color: #fff; }

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    background: #fff;
    color: #0a3d91;
    border: 1px solid #cbd9ff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.contact-section .btn-primary {
    background: #fff;
    color: #0a3d91;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.contact-section .btn-primary:hover {
    background: #e6edff;
    color: #0a3d91;
}

.contact-section .note {
    color: rgba(255,255,255,0.85);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0a3d91;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* =========================
   BANNER DE ESTADO
========================= */
.status-banner {
    position: fixed;
    right: 20px;
    top: 90px;
    background: #e6f7e8;
    color: #114b2b;
    border-left: 4px solid #0a8b49;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(10,61,145,0.07);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 1200;
}

.status-banner.error {
    background: #fff0f0;
    color: #6b1b1b;
    border-left-color: #d94a4a;
}

.status-banner.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1300px) {
    .service-img img {
        max-width: 100%;
        height: auto;
    }
    .servicios-section { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 780px) {
    .contact-wrapper { justify-content: center; }
    .contact-form { width: 100%; max-width: 540px; }
    .section { margin: 1.2em; padding: 1.2em; }
    nav ul { gap: 0.8em; font-size: 0.95em; }

    /* Servicios móvil: apilar */
    .service-row {
        flex-direction: column;
        text-align: center;
        padding: 1.2em 1em;
    }
    .service-row .service-img,
    .service-row .service-text {
        order: 0 !important;
        flex: 1 1 100%;
        margin-bottom: 1em;
    }

    /* Quiénes Somos móvil: apilar */
    .quienes-somos-content {
        flex-direction: column;
        align-items: center;
    }
    .quienes-somos-img { flex: 1 1 100%; margin-top: 1em; }
    .quienes-somos-text h2 { font-size: 1.5rem; }
}
/* =========================
   CONTACTO (REDISEÑO)
========================= */
.contact-section {
    background: #0a3d91;
    color: #fff;
    box-shadow: none;
    max-width: 1300px;
    padding: 2.5em 1em;
    border-radius: 12px;
}

.contact-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 1em;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1em;
    padding-bottom: 1em;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 0 auto;
}

.contact-form label {
    font-size: 0.95em;
    color: #fff;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75em 1em;
    border: 1px solid #cbd9ff;
    border-radius: 10px;
    background: #ffffff;
    color: #0a3d91;
    font-size: 0.95em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    margin-top: 0.5em;
}

.btn-primary {
    background: #ffffff;
    color: #0a3d91;
    font-weight: 700;
    border: none;
    padding: 0.75em 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #e6edff;
    color: #0a3d91;
}

.note {
    font-size: 0.85em;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

/* RESPONSIVO */
@media (max-width: 780px) {
    .contact-form {
        max-width: 90%;
        gap: 0.8em;
    }
    .form-actions { gap: 0.4em; }
}
/* =========================
   AJUSTES DE TEXTO NUEVOS
========================= */

/* Sub-secciones de "Nuestros Servicios" - texto más grande */
.service-text p {
    font-size: 1.75rem; 
}

/* Sección Inicio - centrar título y párrafo */
#inicio {
    text-align: center;
}

/* Sección Nuestros Servicios - centrar título y descripción */
.servicios-section h2,
.servicios-section .lead {
    text-align: center;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid #1eff00; /* azul accesible */
    background-color: #f0f8ff;  /* leve contraste */
}

.status-banner {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #e6ffe6;
    border: 1px solid #00cc66;
    color: #006633;
}

/* Focus visible en campos del formulario */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus {
    outline: 3px solid #1eff00; /* verde accesible */
    background-color: #f0f8ff;  /* leve contraste */
}

/* Focus visible en logo y enlaces del menú */
.logo-link:focus,
nav ul li a:focus {
    outline: 3px solid #1eff00; /* verde accesible */
    background-color: #f0f8ff00;  /* leve contraste */
}

.footer-link:focus {
    outline: 3px solid #1eff00;
    background-color: #00000000;
}


