/* ========================================
   SMILEY RESERVAS v3.3.0 - VERSIÓN LIMPIA
   ======================================== */

:root {
    --smiley-red: #ff0000;
    --smiley-red-dark: #cc0000;
    --smiley-green: #33cc33;
    --smiley-blue-dark: #1e3a5f;
    --smiley-blue-darker: #152d47;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.smiley-reservas-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ========================================
   CÁPSULA BLANCA
   ======================================== */

.smiley-reservas-capsula-blanca {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========================================
   HEADER
   ======================================== */

.smiley-reservas-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.smiley-reservas-subtitulo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smiley-red);
    margin: 0 0 15px 0;
}

.smiley-reservas-titulo {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--smiley-blue-dark);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.smiley-reservas-descripcion {
    font-size: clamp(16px, 2vw, 20px);
    color: #4a5568;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

/* ========================================
   TARJETAS
   ======================================== */

.smiley-tarjetas-header {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeInUp 0.7s ease-out;
}

.smiley-tarjetas-titulo {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--smiley-blue-dark);
    margin: 0;
}

.smiley-tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.smiley-card {
    position: relative;
    height: 110px;
    transition: all 0.3s ease;
    z-index: 1;
}

.smiley-card.hover {
    z-index: 1000;
}

.smiley-card-front {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.smiley-card:hover .smiley-card-front {
    transform: translateY(-3px);
    border-color: var(--smiley-red);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

.smiley-card-icon {
    font-size: 32px;
    line-height: 1;
}

.smiley-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--smiley-blue-dark);
    text-align: center;
    line-height: 1.2;
}

.smiley-card-count {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
}

.smiley-card-back {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: white;
    border: 3px solid var(--smiley-red);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.smiley-card.hover .smiley-card-back {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.smiley-card.hover .smiley-card-front {
    opacity: 0;
}

.smiley-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--smiley-blue-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.smiley-card-place {
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--smiley-blue-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
}

.smiley-card-place:last-child {
    margin-bottom: 0;
}

.smiley-card-place:hover {
    background: var(--smiley-red);
    color: white;
    border-color: var(--smiley-red);
    transform: translateX(5px);
}

/* ========================================
   MAPA Y FORMULARIO - SIMPLE
   ======================================== */

.smiley-reservas-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.smiley-reservas-map-column {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
}

.smiley-map-interactive {
    width: 100% !important;
    height: 100% !important;
    min-height: 700px !important;
    background: #e5e5e5 !important;
}

/* Asegurar que Leaflet también se extienda */
.smiley-map-interactive .leaflet-container {
    height: 100% !important;
    min-height: 700px !important;
}

.smiley-reservas-form-column {
    background: linear-gradient(135deg, var(--smiley-blue-dark) 0%, var(--smiley-blue-darker) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 35px 45px;
    height: auto !important;
    max-height: none !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.smiley-form-content {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
}

.smiley-form-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.smiley-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.smiley-form-subtitle {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
}

.smiley-form-wrapper {
    overflow: visible;
}

/* ========================================
   WPFORMS - FORZAR COLORES Y ANCHOS
   ======================================== */

.smiley-form-wrapper .wpforms-container {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.smiley-form-wrapper .wpforms-title,
.smiley-form-wrapper .wpforms-description {
    display: none !important;
}

.smiley-form-wrapper .wpforms-field-label {
    color: #ffffff !important;
}

/* CRÍTICO: Todos los campos con mismo color de fondo */
.smiley-form-wrapper input[type="text"],
.smiley-form-wrapper input[type="email"],
.smiley-form-wrapper input[type="tel"],
.smiley-form-wrapper input[type="date"],
.smiley-form-wrapper input[type="number"],
.smiley-form-wrapper select {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Textarea más alto */
.smiley-form-wrapper textarea {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    min-height: 100px !important;
}

.smiley-form-wrapper input::placeholder,
.smiley-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.smiley-form-wrapper input:focus,
.smiley-form-wrapper select:focus,
.smiley-form-wrapper textarea:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    outline: none !important;
}

/* Botón CTA - más abajo */
.smiley-form-wrapper .wpforms-submit-container {
    margin-top: 40px !important;
}

.smiley-form-wrapper .wpforms-submit {
    width: 100% !important;
    background: var(--smiley-red) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 14px 20px !important;
}

.smiley-form-wrapper .wpforms-submit:hover {
    background: var(--smiley-red-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4) !important;
}

.smiley-logo-footer-interno {
    text-align: center !important;
    padding-top: 20px !important;
    margin-top: 15px !important;
}

.smiley-logo-footer-interno img {
    max-width: 40px !important;
    height: auto !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.smiley-logo-footer-interno img:hover {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

/* ========================================
   WHATSAPP
   ======================================== */

.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--smiley-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(51, 204, 51, 0.4);
    transition: all 0.3s ease;
    z-index: 999999;
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
}

@keyframes pulseWhatsApp {
    0%, 100% { box-shadow: 0 4px 20px rgba(51, 204, 51, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(51, 204, 51, 0.6); }
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .smiley-tarjetas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .smiley-reservas-capsula-blanca {
        padding: 35px;
    }
    
    .smiley-reservas-columns {
        grid-template-columns: 1fr;
    }
    
    .smiley-map-interactive {
        height: 500px;
    }
    
    .smiley-reservas-form-column {
        padding: 30px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .smiley-reservas-container {
        padding: 20px;
    }
    
    .smiley-reservas-capsula-blanca {
        padding: 25px;
    }
    
    .smiley-tarjetas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smiley-card {
        height: 100px;
    }
    
    .smiley-card-icon {
        font-size: 28px;
    }
    
    .smiley-map-interactive {
        height: 450px;
    }
    
    .smiley-reservas-form-column {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .smiley-reservas-container {
        padding: 12px;
    }
    
    .smiley-reservas-capsula-blanca {
        padding: 20px;
    }
    
    .smiley-card {
        height: 90px;
    }
    
    .smiley-card-icon {
        font-size: 24px;
    }
    
    .smiley-card-name {
        font-size: 11px;
    }
    
    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}