/* Contenedor Principal de la Promoción */
.cpm-promo-container {
    max-width: 820px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(11, 30, 54, 0.08);
    border: 1px solid #eef2f6;
    overflow: hidden;
    font-family: inherit;
    color: #2c3e50;
    line-height: 1.6;
}

/* Cabecera y Título */
.cpm-promo-header {
    background: linear-gradient(135deg, #0b1e36 0%, #15325b 100%);
    color: #ffffff;
    padding: 40px 35px 30px;
    text-align: center;
    position: relative;
}

.cpm-promo-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e6af2e, #f3ca65);
    color: #0b1e36;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(230, 175, 46, 0.35);
}

.cpm-promo-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px;
    line-height: 1.25;
}

.cpm-discount-hero {
    margin: 20px 0 15px;
}

.cpm-discount-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f3ca65;
    font-size: 26px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.cpm-promo-description {
    font-size: 16px;
    color: #d1dced;
    max-width: 680px;
    margin: 15px auto 0;
    line-height: 1.7;
}

/* Módulo de Urgencia: Cuenta Atrás y Plazas */
.cpm-urgency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

@media (max-width: 768px) {
    .cpm-urgency-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.cpm-countdown-card, .cpm-spots-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cpm-module-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Reloj Cuenta Atrás */
.cpm-countdown-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cpm-clock-segment {
    background: #0b1e36;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 54px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(11, 30, 54, 0.15);
}

.cpm-clock-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #f3ca65;
    font-variant-numeric: tabular-nums;
}

.cpm-clock-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.cpm-clock-divider {
    font-size: 20px;
    font-weight: 800;
    color: #0b1e36;
}

.cpm-clock-footer, .cpm-spots-footer {
    font-size: 12px;
    color: #64748b;
}

/* Contador de Plazas */
.cpm-spots-live-box {
    margin-bottom: 12px;
}

.cpm-spots-number {
    font-size: 36px;
    font-weight: 800;
    color: #0b1e36;
    line-height: 1;
}

.cpm-spots-text {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

.cpm-progress-wrap {
    background: #e2e8f0;
    height: 10px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cpm-progress-bar {
    background: linear-gradient(90deg, #e6af2e, #d97706);
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
}

.cpm-urgency-pulse {
    color: #dc2626;
    font-weight: 700;
    animation: cpmPulse 1.5s infinite;
}

@keyframes cpmPulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Caja de Condiciones y Prevención de Duplicidades */
.cpm-rules-notice {
    display: flex;
    gap: 15px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px 22px;
    margin: 25px 30px 0;
    border-radius: 0 8px 8px 0;
    align-items: flex-start;
}

.cpm-notice-icon {
    font-size: 24px;
    line-height: 1;
}

.cpm-notice-text {
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.55;
}

.cpm-notice-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Formulario de Captura */
.cpm-form-wrapper {
    padding: 30px 35px 40px;
}

.cpm-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0b1e36;
    margin: 0 0 6px;
    text-align: center;
}

.cpm-form-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 25px;
}

.cpm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .cpm-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.cpm-form-field {
    display: flex;
    flex-direction: column;
}

.cpm-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.cpm-form-field .req {
    color: #dc2626;
}

.cpm-form-field input[type="text"],
.cpm-form-field input[type="email"],
.cpm-form-field input[type="tel"] {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.cpm-form-field input:focus {
    border-color: #0b1e36;
    box-shadow: 0 0 0 3px rgba(11, 30, 54, 0.12);
}

.cpm-field-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.cpm-form-consent {
    margin: 15px 0 22px;
}

.cpm-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.5;
}

.cpm-form-consent input[type="checkbox"] {
    margin-top: 2px;
}

/* Botón de Envío */
.cpm-form-actions {
    text-align: center;
}

.cpm-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #e6af2e 0%, #d97706 100%);
    color: #0b1e36;
    border: none;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 175, 46, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cpm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 175, 46, 0.45);
    background: linear-gradient(135deg, #f3ca65 0%, #e6af2e 100%);
}

.cpm-submit-btn:active {
    transform: translateY(0);
}

.cpm-submit-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Caja de Mensaje de Resultado */
.cpm-form-feedback {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.cpm-feedback-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.cpm-feedback-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Cartel de Cierre / Agotado */
.cpm-closed-banner {
    padding: 40px 30px;
    text-align: center;
    background: #f8fafc;
}

.cpm-closed-banner h3 {
    font-size: 22px;
    color: #64748b;
    margin: 0 0 10px;
}

.cpm-closed-banner p {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 10px;
}
