* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fondo de madera, igual que el resto de la web */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)), url('../imagenes/madera.jpg') center / cover;
}

a { color: #d42a1f; }
a:hover { color: #a81f16; }

/* ---------- Cabecera ---------- */
.web-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 24px;
    padding: 20px 5%;
    background: #fff;
    border-bottom: 4px solid #d42a1f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo { display: block; width: clamp(150px, 20vw, 260px); height: auto; }

.web-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(6px, 1.5vw, 22px); margin-left: auto; }

.web-nav a {
    padding: 10px clamp(6px, 1vw, 14px);
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.web-nav a:hover, .web-nav a[aria-current="page"] { color: #d42a1f; border-bottom-color: #d42a1f; }

.web-sesion { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: bold; color: #1a1a1a; }

/* ---------- Botones ---------- */
.boton {
    display: inline-block;
    padding: 14px 34px;
    border: none;
    background: #d42a1f;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.boton:hover { background: #a81f16; color: #fff; transform: translateY(-2px); }
.boton-peq { padding: 9px 18px; font-size: 12px; }
.boton-sec { background: #1a1a1a; }
.boton-sec:hover { background: #333; }
.boton-peligro { background: #fff; color: #a81f16; border: 2px solid #d42a1f; }
.boton-peligro:hover { background: #d42a1f; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #d42a1f; outline-offset: 2px; }

/* ---------- Contenido ---------- */
.web-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 50px 5% 70px; }

h1 { font-size: 34px; text-transform: uppercase; color: #1a1a1a; }
h1::after { content: ""; display: block; width: 70px; height: 3px; margin: 16px 0 26px; background: #d42a1f; }
h2 { font-size: 22px; color: #1a1a1a; margin-bottom: 14px; }

.caja {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 36px;
    background: #fff;
    border-top: 4px solid #d42a1f;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
.caja h1 { font-size: 28px; text-align: center; }
.caja h1::after { margin: 16px auto 26px; }
.caja p { line-height: 1.6; margin-bottom: 14px; }

.tarjeta {
    margin-bottom: 26px;
    padding: 26px 28px;
    background: #fff;
    border-top: 4px solid #d42a1f;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.datos { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.datos dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: #777; padding-top: 2px; }
.datos dd { color: #1a1a1a; line-height: 1.5; overflow-wrap: anywhere; }

.insignia { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; background: #e8f5ec; color: #1e6b35; }
.insignia.pend { background: #fdecea; color: #a81f16; }

/* ---------- Formularios ---------- */
.formulario { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.formulario label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; color: #444; }
.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="tel"], .formulario input[type="password"] {
    width: 100%; padding: 13px; font: inherit; font-size: 16px; color: #333; background: #fff; border: 1px solid #ddd; border-radius: 3px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.formulario input:focus { outline: none; border-color: #d42a1f; box-shadow: 0 0 0 1px #d42a1f; }
.formulario small { display: block; margin-top: 6px; color: #666; font-size: 13px; }
.formulario .acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

.aceptar { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #444; }
.formulario .aceptar label { margin: 0; font-size: 14px; font-weight: normal; text-transform: none; letter-spacing: 0; color: #444; }
.aceptar input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: #d42a1f; }

.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; background: #f3f3f3; border-left: 4px solid #d42a1f; }
.formulario .captcha label { margin: 0; font-size: 14px; font-weight: normal; text-transform: none; letter-spacing: 0; color: #333; }
.formulario .captcha input[type="text"] { width: 110px; padding: 8px 10px; font-size: 15px; }

.enlaces { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; text-align: center; font-size: 15px; }
.nota { margin-top: 18px; font-size: 14px; color: #666; text-align: center; }

.aviso { margin: 0 0 18px; padding: 13px 18px; font-size: 15px; font-weight: bold; line-height: 1.5; border-left: 5px solid #d42a1f; background: #fff; }
.aviso.ok { color: #1e6b35; background: #e8f5ec; border-color: #1e6b35; }
.aviso.error { color: #a81f16; background: #fdecea; border-color: #d42a1f; }

.eliminar { margin-top: 10px; }

/* ---------- Pie ---------- */
.web-footer { background: #1a1a1a; color: #ddd; padding: 16px 5%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }
.web-legal { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.web-footer a { color: #ddd; text-decoration: none; }
.web-footer a:hover { color: #d42a1f; text-decoration: underline; }

@media (max-width: 700px) {
    .web-header { padding: 14px 5%; }
    .logo { width: 150px; }
    .web-nav { margin-left: 0; width: 100%; }
    .caja { padding: 28px 20px; }
    h1 { font-size: 26px; }
    .datos { grid-template-columns: 1fr; gap: 2px; }
    .datos dd { margin-bottom: 10px; }
    .web-footer { justify-content: center; text-align: center; }
}
