/* Day Pass Form Styles - Indicador de Plazas en Tiempo Real */
.dp-stock-notice {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: dpFadeIn 0.25s ease-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

@keyframes dpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dp-stock-notice.dp-loading {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.dp-stock-notice.dp-ok {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.dp-stock-notice.dp-warn {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dp-stock-notice.dp-full {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dp-price-summary {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: right;
    font-size: 14px;
    color: #1a2332;
    font-weight: 600;
}

.dp-price-summary span {
    font-size: 18px;
    color: #d4af37;
}

/* ─── Campo de fecha — visibilidad en móvil ─── */

/* Selecciona el input de fecha dentro del formulario Day Pass */
.elementor-form input[name="form_fields[fecha]"],
.elementor-form input[name*="field_b0bc225"],
.daypass-form input[type="date"],
.dp-popup input[type="date"],
[data-form-id="1e9f6353"] input[type="date"] {
    /* Asegura que el texto placeholder nativo (dd/mm/aaaa) sea visible */
    color: #333333;
    font-size: 16px; /* evita zoom automático en iOS al enfocar */
    min-height: 48px; /* área táctil mínima recomendada por Google */
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    /* Fuerza el icono del calendario en iOS/Android */
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 42px;
    cursor: pointer;
}

/* Texto del placeholder nativo en Chrome/Safari cuando el campo está vacío */
.elementor-form input[name="form_fields[fecha]"]::-webkit-datetime-edit-text,
.elementor-form input[name*="field_b0bc225"]::-webkit-datetime-edit-text,
[data-form-id="1e9f6353"] input[type="date"]::-webkit-datetime-edit-text {
    color: #999;
}

input[name="form_fields[fecha]"]::-webkit-datetime-edit-month-field,
input[name="form_fields[fecha]"]::-webkit-datetime-edit-day-field,
input[name="form_fields[fecha]"]::-webkit-datetime-edit-year-field,
input[type="date"][name*="fecha"]::-webkit-datetime-edit-month-field,
input[type="date"][name*="fecha"]::-webkit-datetime-edit-day-field,
input[type="date"][name*="fecha"]::-webkit-datetime-edit-year-field,
.elementor-form input[type="date"]::-webkit-datetime-edit-month-field,
.elementor-form input[type="date"]::-webkit-datetime-edit-day-field,
.elementor-form input[type="date"]::-webkit-datetime-edit-year-field {
    color: #999;
}

/* Cuando el campo tiene valor, poner el texto oscuro */
input[name="form_fields[fecha]"]:not([value=""])::-webkit-datetime-edit-month-field,
input[name="form_fields[fecha]"]:not([value=""])::-webkit-datetime-edit-day-field,
input[name="form_fields[fecha]"]:not([value=""])::-webkit-datetime-edit-year-field {
    color: #333;
}

/* Focus con acento dorado corporativo */
input[name="form_fields[fecha]"]:focus,
input[type="date"][name*="fecha"]:focus,
.elementor-form input[type="date"]:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* Elimina el icono nativo del navegador (evita doble icono) */
input[name="form_fields[fecha]"]::-webkit-calendar-picker-indicator,
input[type="date"][name*="fecha"]::-webkit-calendar-picker-indicator,
.elementor-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 42px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

/* Wrapper position para que el picker invisible se superponga al icono SVG */
.elementor-field-group:has(input[type="date"]) {
    position: relative;
}



/* ─── Calendario Flatpickr: Estilos para días llenos, cerrados y disponibles ─── */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.dp-day-closed,
.flatpickr-day.dp-day-full,
.flatpickr-day.dp-day-past {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.flatpickr-day.dp-day-full,
.flatpickr-day.flatpickr-disabled.dp-day-full {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fee2e2 !important;
    text-decoration: line-through !important;
    opacity: 0.50 !important;
    position: relative;
}

.flatpickr-day.dp-day-full::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ef4444;
}

.flatpickr-day.dp-day-closed,
.flatpickr-day.flatpickr-disabled.dp-day-closed {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    text-decoration: line-through !important;
    opacity: 0.50 !important;
}

.flatpickr-day.dp-day-available:not(.flatpickr-disabled):not(.selected) {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.flatpickr-day.dp-day-available:not(.flatpickr-disabled):not(.selected):hover {
    background-color: #fef9c3 !important;
    border-color: #D4AF37 !important;
    color: #1e293b !important;
}