/* ARCHIVO: css/base.css
   FUNCIÓN: variables de color, tipografía, botones y componentes compartidos.
   Estilos propios; la biblioteca Materialize está intacta en css/materialize.css y js/materialize.js. */

/* 01. BASE: cambia los colores del portal desde estas variables. */
:root {

    --azul: #006478;
    --azul-profundo: #003e49;
    --verde: #008264;
    --amarillo: #ffca08;
    --naranja: #e67c35;
    --morado: #7b56a7;
    --tinta: #073a43;
    --gris: #617984;
    --fondo: #f5f9f8;
    --borde: #e1e9e9;
    --sombra: 0 12px 35px #123f5410;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--tinta);
    background: white;
    margin: 0;
}

a {
    color: var(--azul);
}

img {
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus {
    background-color: #e2f2f2;
}

:focus-visible {
    outline: 3px solid #b86a00;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.container {
    width: 88%;
    max-width: 1340px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-weight: 730;
}

h2 {
    font-size: clamp(30px,3.2vw,43px);
    line-height: 1.16;
    letter-spacing: -1.4px;
    margin-bottom: 22px;
}

h3 {
    font-size: 21px;
    letter-spacing: -.5px;
    line-height: 1.3;
}

p {
    font-size: 15px;
    line-height: 1.8;
}

.icono {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 02. CONTROLES: relieve 3D, tarjetas y elementos comunes. */
.btn, .btn-large {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 650;
    border-radius: 9px;
    background: var(--azul);
    box-shadow: 0 4px 0 #054967,0 8px 16px #076b9a18;
    padding: 0 22px;
    min-height: 44px;
    line-height: 1.4;
    transition: transform .2s,box-shadow .2s,background .2s;
}

.btn .icono {
    width: 18px;
    height: 18px;
}

.btn:hover, .btn:focus {
    background: #075579;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #054967;
}

.btn-large {
    min-height: 51px;
    height: auto;
}

.boton-verde {
    background: var(--verde);
    box-shadow: 0 4px 0 #105d45,0 8px 16px #19856318;
}

.boton-verde:hover, .boton-verde:focus {
    background: #126d50;
}

.boton-amarillo {
    background: var(--amarillo);
    color: #314434;
    box-shadow: 0 4px 0 #b78a29,0 8px 16px #0001;
}

.boton-amarillo:hover, .boton-amarillo:focus {
    background: #ffdb7c;
}

.boton-borde {
    background: white;
    border: 1px solid #bfd0d4;
    box-shadow: 0 3px 0 #dce6e8;
    color: var(--tinta);
}

.boton-borde:hover, .boton-borde:focus {
    background: #edf5f6;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.sobrelinea {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2px;
    color: var(--verde);
    line-height: 1.5;
    margin-bottom: 18px;
}

.seccion {
    padding: 80px 0;
}

.fondo-suave {
    background: var(--fondo);
}

.titulo-seccion {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.titulo-seccion h2 {
    margin-bottom: 0;
}

.titulo-seccion h2 span {
    color: var(--verde);
}

.card {
    border-radius: 16px;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra);
    overflow: hidden;
}

.enlace-texto, .fuente {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 650;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 0;
}

.fuente .icono, .enlace-texto .icono {
    width: 16px;
    height: 16px;
}

.nota-fuente {
    font-size: 12px;
    color: var(--gris);
    line-height: 1.75;
    margin-top: 20px;
}

.parrafo-grande {
    font-size: 19px;
    color: #4c6975;
    line-height: 1.8;
}

.saltar {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 2000;
    background: white;
    padding: 15px;
}

.saltar:focus {
    top: 10px;
}

.aviso-js {
    padding: 18px;
    color: #5c4200;
    background: #fff1bc;
    text-align: center;
}

