* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
}

header {
    background: #0b1f3a;
    color: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    font-size: 14px;
}

nav a:hover {
    color: #ffb000;
}

.hero {
    background: linear-gradient(rgba(11,31,58,0.82), rgba(11,31,58,0.82)), url('/assets/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 75px 8%;
    text-align: left;
}

.hero h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    background: #ffb000;
    color: #0b1f3a;
    padding: 11px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #ffc247;
}

section {
    padding: 34px 8%;
    scroll-margin-top: 20px;
}

.titulo {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: #0b1f3a;
}

.servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.card h3 {
    color: #0b1f3a;
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    line-height: 1.5;
    font-size: 15px;
}

.nosotros {
    background: white;
    line-height: 1.6;
    font-size: 16px;
    text-align: center;
}

.nosotros p {
    max-width: 850px;
    margin: 0 auto;
}

.contacto {
    background: #0b1f3a;
    color: white;
    padding: 28px 8%;
}

.contacto h2 {
    margin-bottom: 10px;
    font-size: 26px;
    text-align: center;
}

.contacto-info {
    text-align: center;
    margin-bottom: 12px;
}

.contacto-info p {
    margin: 3px 0;
    font-size: 14px;
}

.formulario-contacto {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    color: #222;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.formulario-contacto h3 {
    color: #0b1f3a;
    margin-bottom: 10px;
    text-align: center;
    font-size: 18px;
}

.fila-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.campo {
    margin-bottom: 8px;
}

.campo label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
    color: #0b1f3a;
    font-size: 12px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccd3dd;
    border-radius: 6px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

.campo textarea {
    min-height: 55px;
    resize: vertical;
}

.captcha-box {
    background: #f4f6f8;
    border: 1px solid #d0d5dd;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.captcha-codigo {
    display: inline-block;
    background: #0b1f3a;
    color: #ffb000;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 6px;
}

.captcha-box label {
    color: #0b1f3a;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

.checkbox-robot {
    margin-top: 7px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    color: #0b1f3a;
    font-size: 12px !important;
}

.checkbox-robot input {
    width: auto;
}

.mensaje-ok {
    background: #dcfae6;
    color: #027a48;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
}

.mensaje-error {
    background: #ffe4e8;
    color: #b42318;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
}

.campo-oculto {
    display: none;
}

.btn-formulario {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

footer {
    background: #071426;
    color: white;
    text-align: center;
    padding: 14px;
    font-size: 13px;
}

/* ==============================
   MEJORAS PRESENTACIÓN SICOE
   ============================== */

.marca {
    display: flex;
    align-items: center;
}

.marca-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 28px;
    letter-spacing: 1px;
}

.logo-header {
    height: 48px;
    width: auto;
    display: block;
}

.botones-hero {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secundario {
    background: transparent;
    color: white;
    border: 2px solid #ffb000;
}

.btn-secundario:hover {
    background: #ffb000;
    color: #0b1f3a;
}

.icono-servicio {
    font-size: 34px;
    margin-bottom: 10px;
}

.por-que-sicoe {
    background: #eef2f6;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.beneficio {
    background: white;
    padding: 22px;
    border-radius: 8px;
    border-left: 5px solid #ffb000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.beneficio h3 {
    color: #0b1f3a;
    margin-bottom: 8px;
    font-size: 18px;
}

.beneficio p {
    font-size: 15px;
    line-height: 1.5;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    margin-left: 8px;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: white;
}

.whatsapp-flotante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #25d366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 999;
}

.whatsapp-flotante:hover {
    background: #1ebe5d;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 18px 6%;
    }

    nav {
        margin-top: 12px;
    }

    nav a {
        display: inline-block;
        margin: 7px;
        font-size: 13px;
    }

    .hero {
        padding: 60px 8%;
    }

    .hero h2 {
        font-size: 29px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 30px 6%;
    }

    .fila-form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .formulario-contacto {
        max-width: 100%;
        padding: 14px;
    }

    .contacto {
        padding: 24px 6%;
    }

    .marca-link {
        font-size: 24px;
        justify-content: center;
    }

    .logo-header {
        height: 42px;
    }

    .botones-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-secundario {
        text-align: center;
    }

    .btn-whatsapp {
        display: inline-block;
        margin-left: 0;
        margin-top: 10px;
    }

    .whatsapp-flotante {
        right: 14px;
        bottom: 14px;
        font-size: 13px;
        padding: 10px 14px;
    }
}
/* ==============================
   FOOTER PROFESIONAL SICOE
   ============================== */

.footer-sicoe {
    background: #071426;
    color: white;
    padding: 35px 8% 0;
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 25px;
    padding-bottom: 25px;
}

.footer-columna h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffb000;
}

.footer-columna h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #ffb000;
}

.footer-columna p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columna li {
    font-size: 14px;
    margin-bottom: 7px;
}

.footer-columna a {
    color: white;
    text-decoration: none;
}

.footer-columna a:hover {
    color: #ffb000;
}

.footer-inferior {
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
    color: #d0d5dd;
}

@media (max-width: 700px) {
    .footer-sicoe {
        padding: 28px 6% 0;
        text-align: center;
    }

    .footer-contenido {
        gap: 18px;
    }
}

/* ==============================
   MEJORA MENÚ MÓVIL SICOE
   ============================== */

@media (max-width: 700px) {

    header {
        padding: 16px 6%;
        gap: 12px;
    }

    .marca {
        width: 100%;
        justify-content: center;
    }

    .marca-link {
        justify-content: center;
        font-size: 24px;
    }

    .logo-header {
        height: 44px;
    }

    nav {
        width: 100%;
        margin-top: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    nav a {
        margin: 0;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 6px;
        padding: 9px 8px;
        font-size: 13px;
        text-align: center;
    }

    nav a:hover {
        background: #ffb000;
        color: #0b1f3a;
    }

    nav a:last-child {
        grid-column: 1 / -1;
        background: #ffb000;
        color: #0b1f3a;
        font-weight: bold;
    }

    nav a:last-child:hover {
        background: #ffc247;
        color: #0b1f3a;
    }
}

@media (max-width: 380px) {

    nav {
        grid-template-columns: 1fr;
    }

    nav a:last-child {
        grid-column: auto;
    }
}
