/* Nicolas Tostin — hoja de estilo única */

/* ---------- Base ---------- */

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem; /* 15 px */
    line-height: 1.55;
}

h1, h2, h3 {
    color: #294d72;
    line-height: 1.25;
}

h1 {
    margin: 0 0 0.6em;
    font-size: 1.75rem;
    font-weight: normal;
}

h2 {
    margin: 0 0 0.7em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #dcdcdc;
    font-size: 1.3rem;
    font-weight: normal;
}

h3 {
    margin: 0 0 0.3em;
    font-size: 1rem;
}

p, ul, dl, address {
    margin: 0 0 0.7em;
}

ul {
    padding-left: 1.3em;
}

address {
    font-style: normal;
}

a {
    color: #294d72;
}

a:hover {
    color: #1a3550;
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #294d72;
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.visualmente-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.saltar {
    position: absolute;
    left: -10000px;
    top: 0;
    padding: 6px 12px;
    background: #294d72;
    color: #fff;
}

.saltar:focus {
    left: 0;
    z-index: 10;
}

/* ---------- Cabecera ---------- */

.cabecera {
    border-top: 4px solid #294d72;
    border-bottom: 1px solid #dcdcdc;
}

.cabecera-interior {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.marca {
    margin: 0;
    font-size: 1.15rem;
    font-weight: bold;
}

.marca a {
    text-decoration: none;
}

.navegacion ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navegacion a {
    text-decoration: none;
}

.navegacion a:hover {
    text-decoration: underline;
}

/* ---------- Secciones ---------- */

.seccion {
    padding-top: 26px;
    scroll-margin-top: 8px;
}

.inicio {
    padding-top: 28px;
}

.servicios {
    border-bottom: 1px solid #ececec;
}

.servicio {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 0 24px;
    padding: 9px 0 3px;
    border-top: 1px solid #ececec;
}

.servicio p {
    margin-bottom: 0.4em;
}

.experiencia li {
    margin-bottom: 0.3em;
}

.referencias {
    margin-top: 1em;
}

.nota {
    color: #555;
}

.dos-columnas {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0 36px;
}

.datos {
    margin-top: 0;
    padding-left: 16px;
    border-left: 1px solid #dcdcdc;
}

.datos dt {
    color: #294d72;
    font-weight: bold;
}

.datos dd {
    margin: 0 0 0.5em;
}

/* Bloques desplegables (variante «detalle») */

details {
    margin: 0 0 0.6em;
}

summary {
    color: #294d72;
    font-size: 0.875rem;
    cursor: pointer;
}

details[open] summary {
    margin-bottom: 0.4em;
}

details ul {
    margin-bottom: 0.4em;
    font-size: 0.875rem;
}

.experiencia-detalle {
    padding: 8px 14px 2px;
    border: 1px solid #ececec;
}

.experiencia-detalle h3 {
    margin-top: 0.6em;
}

/* ---------- Contacto y formulario ---------- */

.contacto {
    grid-template-columns: 2fr 3fr;
}

.formulario .campo {
    margin-bottom: 12px;
}

.formulario label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.obligatorio,
.opcional {
    color: #595959;
    font-size: 0.8125rem;
    font-weight: normal;
}

.formulario input[type="text"],
.formulario input[type="email"],
.formulario textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #949494;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font: inherit;
}

.formulario textarea {
    min-height: 8em;
    resize: vertical;
}

.formulario [aria-invalid="true"] {
    border-color: #b00020;
}

.indicacion,
.ayuda,
.privacidad {
    color: #595959;
    font-size: 0.8125rem;
}

.ayuda {
    margin: 3px 0 0;
}

.error {
    margin: 3px 0 0;
    color: #b00020;
    font-size: 0.875rem;
}

button {
    padding: 8px 18px;
    border: 1px solid #294d72;
    border-radius: 2px;
    background: #294d72;
    color: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #1a3550;
}

/* Campo trampa para robots: fuera de la vista y del orden de tabulación. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.aviso {
    margin: 0 0 14px;
    padding: 8px 12px;
    border-left: 4px solid;
}

.aviso ul,
.aviso p {
    margin-bottom: 0.3em;
}

.aviso-ok {
    border-color: #2e6b2e;
    background: #f1f7f1;
    color: #1f4d1f;
}

.aviso-error {
    border-color: #b00020;
    background: #fbf1f2;
    color: #7a0016;
}

.aviso-error a {
    color: #7a0016;
}

#formulario-estado:focus {
    outline: none;
}

/* ---------- Pie ---------- */

.pie {
    margin-top: 32px;
    padding: 12px 0;
    border-top: 1px solid #dcdcdc;
    color: #595959;
    font-size: 0.8125rem;
}

.pie p {
    margin: 0 0 0.2em;
}

/* ---------- Pantallas pequeñas ---------- */

@media (max-width: 760px) {
    .servicio,
    .dos-columnas,
    .contacto {
        grid-template-columns: 1fr;
    }

    .datos {
        padding-left: 0;
        border-left: 0;
    }

    .contacto > div + div {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .contenedor {
        padding: 0 16px;
    }

    .marca {
    margin: 0;
    font-size: 1.15rem;
    font-weight: bold;
}

.marca a {
    text-decoration: none;
}

.navegacion ul {
        gap: 4px 14px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media print {
    .cabecera nav,
    .formulario,
    .saltar {
        display: none;
    }
}

/* Verificación Turnstile: reserva su altura para evitar saltos de página. */
.cf-turnstile {
    min-height: 65px;
    margin-bottom: 8px;
}
