/* newsletter — estilos específicos */

.newsletter-layout {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

/* Hero */
.nl-hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.nl-hero-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.22);
}

.nl-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 0.55rem;
}

.nl-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Qué recibirás */
.nl-perks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.85rem;
    margin: 1.75rem 0 2rem;
}

.nl-perk {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-alt, #f8fafc);
}

.nl-perk-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: #fff;
    flex-shrink: 0;
}

.ic-blue {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.ic-green {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

.ic-purple {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.ic-amber {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.nl-perk-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 0.15rem;
}

.nl-perk-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
    margin: 0;
}

/* Formulario */
.nl-form-wrap {
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 1.75rem;
    background: #fff;
    margin-bottom: 1.75rem;
}

.nl-form-wrap h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 1.1rem;
}

.field-group {
    margin-bottom: 1rem;
}

.field-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.field-group label .req {
    color: #dc2626;
    margin-left: 2px;
}

.field-group input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text, #1e293b);
    background: var(--bg-input, #f8fafc);
    transition: border-color 0.16s, box-shadow 0.16s;
    box-sizing: border-box;
}

.field-group input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

/* Preferencias de categoría */
.prefs-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    display: block;
}

.prefs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.pref-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text, #1e293b);
    background: transparent;
    cursor: pointer;
    transition: all 0.14s;
    user-select: none;
}

.pref-chip:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.pref-chip.selected {
    border-color: var(--primary, #2563eb);
    background: var(--primary, #2563eb);
    color: #fff;
}

.pref-chip i {
    font-size: 0.72rem;
}

/* Frecuencia */
.freq-row {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.freq-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text, #1e293b);
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.14s;
}

.freq-btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.freq-btn.selected {
    border-color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.07);
    color: var(--primary, #2563eb);
}

.freq-btn .freq-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
}

.freq-btn .freq-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.1rem;
    font-weight: 400;
}

.freq-btn.selected .freq-sub {
    color: var(--primary, #2563eb);
    opacity: 0.7;
}

/* Privacidad */
.privacy-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.privacy-note a {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Error */
.form-error {
    display: none;
    padding: 0.6rem 0.9rem;
    background: rgba(220, 38, 38, 0.07);
    border: 1.5px solid rgba(220, 38, 38, 0.25);
    border-radius: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.83rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

/* Botón suscribir */
.btn-subscribe {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, transform 0.12s;
}

.btn-subscribe:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-subscribe:disabled {
    background: var(--text-muted, #94a3b8);
    cursor: not-allowed;
    transform: none;
}

/* Éxito */
.nl-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1.5px solid #16a34a;
    border-radius: 16px;
    background: rgba(22, 163, 74, 0.05);
    margin-bottom: 1.75rem;
}

.nl-success .success-icon {
    font-size: 2.75rem;
    color: #16a34a;
    margin-bottom: 0.8rem;
}

.nl-success h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 0.4rem;
}

.nl-success p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text-muted, #64748b);
    line-height: 1.65;
}

/* Garantías */
.nl-guarantees {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nl-guarantee {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.nl-guarantee i {
    color: #16a34a;
}

/* Últimas ediciones */
.nl-samples {
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.nl-samples-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: var(--primary, #2563eb);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
}

.nl-sample-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-family: 'Montserrat', sans-serif;
}

.nl-sample-item:last-child {
    border-bottom: none;
}

.nl-sample-item:nth-child(even) {
    background: var(--bg-alt, #f8fafc);
}

.sample-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', monospace, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sample-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 0.1rem;
}

.sample-text p {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.sample-date {
    margin-left: auto;
    font-family: 'Ubuntu', monospace, sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Separador */
.about-divider {
    border: none;
    border-top: 1.5px solid var(--border, #e2e8f0);
    margin: 0.5rem 0 1.75rem;
}

/* Breadcrumb */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    list-style: none;
    padding: 0.65rem 1.25rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.breadcrumb li+li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .nl-form-wrap {
        padding: 1.25rem;
    }

    .freq-row {
        flex-direction: column;
    }
}