
:root {
    --fondo: #080e19;
    --panel: #111c2e;
    --borde: #26364d;
    --azul: #38bdf8;
    --texto: #f1f5f9;
    --secundario: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--fondo);
    color: var(--texto);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ENCABEZADO MUNICIPAL */

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 6%;
    background: #0f172a;
    border-bottom: 1px solid var(--borde);
}

.identidad {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-municipal {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 5px;
}

.subtitulo {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #cbd5e1;
}

.identidad h1 {
    color: var(--azul);
    font-size: 25px;
}

.identidad p {
    font-size: 14px;
    color: var(--secundario);
}

/* MENU PRINCIPAL */

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 6%;
    background: #111c2e;
    border-bottom: 1px solid var(--borde);
}

.menu a {
    padding: 10px 16px;
    border-radius: 6px;
    color: var(--secundario);
    transition: 0.25s;
}

.menu a:hover,
.menu a.activo {
    background: #1e3550;
    color: var(--azul);
}

/* PORTADA MUNICIPAL */

.portada {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 75px 6%;

    background:
        linear-gradient(
            90deg,
            rgba(8, 14, 25, 0.97) 0%,
            rgba(8, 14, 25, 0.78) 40%,
            rgba(8, 14, 25, 0.20) 100%
        ),
        url("../imagenes/portada.jpg");

    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;

    border-bottom: 1px solid var(--borde);
}

.etiqueta {
    color: var(--azul);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
}

.portada h2 {
    font-size: clamp(32px, 5vw, 55px);
    margin: 15px 0;
    color: white;
    text-shadow: 0 3px 10px #00000066;
}

.portada p {
    max-width: 650px;
    color: #d3deeb;
    font-size: 18px;
    margin-bottom: 30px;
}

.botones-portada {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.eslogan {
    color: #cbd5e1;
    font-size: 15px;
    font-style: italic;
    margin-top: 35px;
}

/* BOTONES */

.boton {
    display: inline-block;
    padding: 13px 24px;
    background: #0369a1;
    color: white;
    border: none;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
    transition: 0.25s;
}

.boton:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.boton i {
    margin-right: 5px;
}

.boton-whatsapp {
    background: #128c4b;
}

.boton-whatsapp:hover {
    background: #0c713b;
}

/* SERVICIOS CATASTRALES */

.contenedor {
    max-width: 1500px;
    margin: auto;
    padding: 40px 6%;
}

.contenedor h2 {
    margin: 10px 0 25px;
    font-size: 27px;
}

.servicios {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tarjeta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--borde);
    border-radius: 14px;
    padding: 27px;
    color: var(--texto);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: 0.25s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    border-color: var(--azul);
    background: #172b43;
    box-shadow: 0 10px 25px #00000044;
}

.icono {
    font-size: 33px;
    color: var(--azul);
}

.verde {
    color: #25d366;
}

.tarjeta h3 {
    color: var(--azul);
    font-size: 19px;
    margin: 15px 0 10px;
}

.tarjeta p {
    color: var(--secundario);
    margin-bottom: 20px;
}

.enlace {
    color: var(--azul);
    font-size: 14px;
    margin-top: auto;
}

/* AVISOS */

.aviso {
    background: var(--panel);
    border: 1px solid var(--borde);
    border-left: 4px solid var(--azul);
    border-radius: 10px;
    padding: 25px;
}

.aviso h3 {
    color: var(--azul);
    margin-bottom: 10px;
}

.aviso p {
    margin: 7px 0;
}

.aviso i {
    color: var(--azul);
    margin-right: 8px;
}

/* WHATSAPP FLOTANTE */

.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 63px;
    height: 63px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 35px;
    box-shadow: 0 4px 20px #00000066;
    z-index: 1000;
    transition: 0.25s;
}

.whatsapp:hover {
    transform: scale(1.12);
    background: #128c4b;
}

/* PIE DE PAGINA */

footer {
    background: #0f172a;
    border-top: 1px solid var(--borde);
    text-align: center;
    color: var(--secundario);
    padding: 35px 20px;
}

.logo-footer {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

footer h3 {
    color: var(--azul);
}

/* FORMULARIOS Y LOGIN */

.formulario {
    max-width: 550px;
    margin: 45px auto;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--borde);
    border-radius: 14px;
}

.formulario h2 {
    color: var(--azul);
    margin-bottom: 20px;
}

.formulario label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #080e19;
    border: 1px solid var(--borde);
    color: var(--texto);
    border-radius: 7px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--azul);
}

.formulario .boton {
    width: 100%;
    margin-top: 22px;
}

.mensaje {
    margin-top: 15px;
    color: var(--azul);
}

/* ADAPTACION A CELULARES */

@media (max-width: 600px) {

    .logo-municipal {
        width: 65px;
        height: 65px;
    }

    .identidad {
        gap: 10px;
    }

    .identidad h1 {
        font-size: 18px;
    }

    .identidad p {
        font-size: 11px;
    }

    .subtitulo {
        font-size: 9px;
    }

    .menu a {
        padding: 8px;
        font-size: 14px;
    }

    .portada {
        min-height: 440px;
        padding: 50px 6%;
        background-position: center;
    }

    .portada p {
        font-size: 16px;
    }

    .formulario {
        margin: 25px 15px;
        padding: 20px;
    }

    .servicios {
        grid-template-columns: 1fr;
    }

    .whatsapp {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 29px;
    }
}
