:root {
    --navy: #0b1d3a;
    --navy-soft: #132a4d;
    --green: #00a86b;
    --green-dark: #007e51;
    --charcoal: #2f3742;
    --muted: #5d6673;
    --light: #f3f5f7;
    --line: #e3e7ec;
    --white: #ffffff;
    --heading: "Manrope", "Aptos", Arial, sans-serif;
    --body: "Manrope", "Aptos", Arial, sans-serif;
    --radius-button: 8px;
    --radius-card: 12px;
    --shadow-soft: 0 18px 50px rgba(11, 29, 58, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--white);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Esta página no tenía foco visible ni salto al contenido, y es la única con
   formulario. Mismos valores que styles.css para que las dos se comporten igual. */
:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    transform: translateY(-150%);
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-family: var(--heading);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 24px rgba(0, 168, 107, 0.2);
}

.btn-accent:hover {
    background: var(--green-dark);
    box-shadow: 0 12px 28px rgba(0, 168, 107, 0.28);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo { height: 34px; width: auto; }

/* Page */
.newsletter-page { padding: 60px 0 80px; min-height: 60vh; }

.newsletter-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 44px 36px;
}

.newsletter-card h1 {
    font-family: var(--heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.newsletter-card .subtitle {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }

.newsletter-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
}

.newsletter-form input[type="email"] {
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-button);
    font-family: var(--body);
    font-size: 15px;
    color: var(--charcoal);
    background: var(--light);
    transition: border-color .2s, box-shadow .2s;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
    background: var(--white);
}

.newsletter-form .btn-accent {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
}

.newsletter-form .btn-accent:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-status {
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    transition: color .3s;
    margin: 0;
}

.newsletter-status.success { color: var(--green); }
.newsletter-status.error { color: #d32f2f; }

/* El bloque de baja se revela por JS cuando la URL trae un token; el atributo
   hidden manda por encima de cualquier display de más abajo. */
[hidden] { display: none !important; }

.newsletter-unsubscribe {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsletter-unsubscribe h2 {
    font-family: var(--heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0;
}

.newsletter-unsubscribe p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.newsletter-unsubscribe .btn-accent {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
}

.newsletter-unsubscribe .btn-accent:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-benefits {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.newsletter-benefits h2 {
    font-family: var(--heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: 0;
}

.newsletter-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.45;
}

.newsletter-benefits li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--green);
}

.newsletter-back {
    text-align: center;
    margin-top: 20px;
}

.newsletter-back a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.newsletter-back a:hover { color: var(--green); }

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { margin: 0; }

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover { color: var(--white); }

/* Util */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .newsletter-card { padding: 30px 22px; }
    .newsletter-card h1 { font-size: 22px; }
}

.newsletter-honeypot {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Enlace al archivo público: quien duda de suscribirse puede leer las ediciones
   completas antes de dejar su correo. */
.newsletter-archivo {
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.newsletter-archivo a {
    display: inline-block;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

.newsletter-archivo a:hover {
    text-decoration: underline;
}
