/* ══════════════════════════════════════════════════════
   DELIVERY.CSS — Sección de solicitud de delivery
   ══════════════════════════════════════════════════════ */

/* ── Sección principal ─────────────────────────────── */
.delivery-section {
    background: #0f172a !important; /* fuerza sobre cualquier herencia */
    padding: 5rem 0 !important;     /* gana sobre .section { padding: 6rem 0 } */
    position: relative;
    overflow: hidden;               /* contiene el honeypot absoluto */
}
.delivery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Título blanco + sin margen inferior exagerado del .section-title global */
.delivery-section .section-title {
    color: #fff !important;
    margin-bottom: 0.75rem !important; /* override de los 3rem globales */
}

/* Suprime la barra decorativa azul (no visible en fondo oscuro) */
.delivery-section .section-title::after {
    display: none;
}

.delivery-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-top: 0;
    font-family: var(--font-primary);
}

/* ── Alertas de estado ─────────────────────────────── */
.delivery-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    flex-wrap: wrap;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.delivery-alert i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.delivery-alert > div { flex: 1; line-height: 1.5; }
.delivery-alert--ok {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #dcfce7;
}
.delivery-alert--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fee2e2;
}
.btn-wa-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.btn-wa-confirm:hover { background: #1da851; color: #fff; }

/* ── Tarjeta del formulario ────────────────────────── */
.delivery-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ── Grid de campos ────────────────────────────────── */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.delivery-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.delivery-field--full { grid-column: 1 / -1; }

.delivery-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
}
.delivery-field label .req { color: #ef4444; }

.delivery-field input,
.delivery-field textarea {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    resize: vertical;
}
.delivery-field input:focus,
.delivery-field textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
    background: #fff;
}
.delivery-field input::placeholder,
.delivery-field textarea::placeholder { color: #a0aec0; }

/* Honeypot oculto para bots — visually-hidden standard, no altera layout */
.delivery-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Footer del form ───────────────────────────────── */
.delivery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}
.delivery-terms {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-family: var(--font-primary);
}

.btn-delivery {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    white-space: nowrap;
}
.btn-delivery:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.btn-delivery:active { transform: translateY(0); }

/* ── Botón delivery en hero CTA ────────────────────── */
.btn-delivery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}
.btn-delivery-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .delivery-grid        { grid-template-columns: 1fr; }
    .delivery-card        { padding: 1.75rem 1.25rem; }
    .delivery-footer      { flex-direction: column; align-items: stretch; }
    .btn-delivery         { justify-content: center; }
    .delivery-section     { padding: 3.5rem 0; }
}
