:root {
    --azul: #000033;
    --rojo: #d30000;
    --fondo: #f4f6f9;
    --texto: #252b36;
    --blanco: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    line-height: 1.65;
}

a {
    color: var(--azul);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.contenedor {
    width: min(1320px, 92%);
    margin: auto;
}

.cabecera {
    background: var(--azul);
    color: white;
}

.encabezado {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.marca img {
    display: block;
    width: 260px;
}

.contacto-superior {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.contacto-superior a {
    color: white;
}

.navegacion {
    background: white;
    border-bottom: 3px solid var(--rojo);
    box-shadow: 0 3px 12px #00000012;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.menu a {
    padding: 16px 24px;
    font-weight: 600;
    transition: .2s;
}

.menu a:hover,
.menu a.activo {
    background: var(--azul);
    color: white;
}

main {
    min-height: 60vh;
}

.contenido {
    padding: 55px 0;
}

h1, h2, h3 {
    color: var(--azul);
    line-height: 1.25;
}

h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.portada {
    min-height: 480px;
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--azul);
    background-size: cover;
    background-position: center;
}

.portada h1 {
    color: white;
    font-size: clamp(32px, 5vw, 58px);
    max-width: 750px;
}

.portada p {
    max-width: 650px;
    font-size: 20px;
}

.boton {
    display: inline-block;
    padding: 13px 28px;
    background: var(--rojo);
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.cuadricula {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.tarjeta {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border-bottom: 3px solid var(--rojo);
    box-shadow: 0 4px 18px #00000012;
}

.tarjeta img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.tarjeta-contenido {
    padding: 24px;
}

form {
    max-width: 850px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd1da;
    border-radius: 4px;
    font: inherit;
    background: white;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

textarea {
    min-height: 150px;
}

button, input[type="submit"] {
    width: auto;
    background: var(--rojo);
    color: white;
    border: 0;
    padding: 13px 28px;
    border-radius: 4px;
    cursor: pointer;
}

.pie {
    background: var(--azul);
    color: white;
    border-top: 4px solid var(--rojo);
}

.pie-columnas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 40px 0;
}

.pie h3,
.pie a {
    color: white;
}

.copyright {
    text-align: center;
    padding: 18px;
    border-top: 1px solid #ffffff20;
    font-size: 13px;
}

@media (max-width: 900px) {
    .cuadricula {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-superior {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .encabezado {
        flex-direction: column;
        padding: 20px 0;
    }

    .menu a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .cuadricula,
    .pie-columnas {
        grid-template-columns: 1fr;
    }

    .portada {
        min-height: 380px;
    }

    .contacto-superior {
        text-align: center;
    }
}

.franja-comercial {
    background: var(--azul);
    color: white;
    padding: 55px 0;
    text-align: center;
}

.franja-comercial h2 {
    color: white;
    font-size: 32px;
}

.tarjeta-contenido a {
    color: var(--rojo);
    font-weight: bold;
}

.tarjeta {
    transition: transform .2s, box-shadow .2s;
}

.tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px #00000020;
}

.formulario-corporativo {
    background: white;
    padding: clamp(20px, 4vw, 35px);
    border-radius: 6px;
    border-top: 4px solid var(--rojo);
    box-shadow: 0 4px 18px #00000012;
    max-width: 850px;
    margin-top: 30px;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 6px;
}

.form-input-wrapper {
    margin-top: 5px;
}

.form-message {
    margin: 10px 0;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

.portada-principal {
    width: 100%;
    background: var(--azul);
}

.portada-principal img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ajuste del encabezado corporativo */
.encabezado {
    min-height: 120px;
    padding: 20px 0;
}

.marca img {
    width: 240px;
    height: auto;
}

.producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: white;
    margin: 30px 0;
    border-radius: 6px;
    overflow: hidden;
    border-bottom: 3px solid var(--rojo);
    box-shadow: 0 4px 18px #00000012;
    scroll-margin-top: 25px;
}

.producto img {
    display: block;
    width: 100%;
    height: auto;
}

.producto-info {
    padding: 30px;
}

.producto-info h2 {
    margin-top: 0;
}

@media (max-width: 800px) {
    .producto {
        grid-template-columns: 1fr;
    }
}

.servicio-tarjeta {
    background: white;
    padding: 32px;
    border-radius: 6px;
    border-bottom: 4px solid var(--rojo);
    box-shadow: 0 4px 18px #00000012;
}

.servicio-numero {
    display: inline-block;
    color: var(--rojo);
    font-size: 38px;
    font-weight: bold;
    line-height: 1;
}

.servicio-tarjeta h2 {
    color: var(--azul);
    font-size: 21px;
    margin: 18px 0 12px;
}

.servicio-tarjeta p {
    margin-bottom: 0;
}

.imagen-interna {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto 55px;
}

.imagen-interna img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.servicio-tarjeta h2 {
    color: var(--rojo);
    font-size: 23px;
    margin: 0 0 18px;
    line-height: 1.3;
}

.servicio-tarjeta p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.notices {
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: bold;
}

.notices p {
    margin: 0;
}

.notices.green {
    background: #e8f5e9;
    color: #166534;
    border-left: 5px solid #198754;
}

.notices.red {
    background: #fce8e8;
    color: #a40000;
    border-left: 5px solid #d30000;
}

/* Footer corporativo */
.pie-corporativo {
    background: #000033;
    border-top: 5px solid #d30000;
    color: #ffffff;
}

.pie-corporativo .pie-columnas {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    padding: 55px 0 40px;
    align-items: start;
}

.pie-identidad img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.pie-corporativo h3 {
    color: #ffffff;
    font-size: 21px;
    margin: 0 0 24px;
}

.pie-corporativo h3::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #d30000;
    margin-top: 12px;
}

.pie-corporativo p,
.pie-corporativo li {
    color: #d5d5e4;
    font-size: 15px;
    line-height: 1.8;
}

.pie-soluciones {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pie-soluciones li {
    padding: 3px 0;
}

.pie-corporativo .pie-etiqueta {
    color: #ffffff;
    font-weight: bold;
    margin: 18px 0 0;
}

.pie-etiqueta + p {
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.pie-corporativo a {
    color: #ffffff;
    text-decoration: none;
}

.pie-corporativo a:hover {
    text-decoration: underline;
}

.pie-grupo {
    border-top: 1px solid #333355;
    text-align: center;
    padding: 25px 0;
}

.pie-grupo p {
    margin: 0 0 5px;
}

.pie-corporativo .copyright {
    background: #000024;
    color: #b5b5cc;
    padding: 18px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 800px) {
    .pie-corporativo .pie-columnas {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 0;
    }
}
