/* ========================================
   WPForms Estilo SmileyWeb - VERSIÓN FINAL
   Solo aplica a la sección de contacto
   ======================================== */

/* Animación global - disponible para todo */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Variables solo para el formulario - NO globales */
.stk-c07e646 {
    --smiley-red: #ff0000;
    --smiley-red-dark: #cc0000;
    --smiley-green: #33cc33;
    --smiley-blue-dark: #1e3a5f;
    --smiley-blue-darker: #152d47;
}

/* ========================================
   CONTENEDORES DE COLUMNAS - IGUALAR ESPACIOS
   ======================================== */

/* Columna del formulario con hover */
.stk-c07e646 {
    padding: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.stk-c07e646:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4) !important;
}

/* Columna del mapa con hover */
.stk-8ee9fae {
    padding: 15px !important;
    display: flex !important;
    align-items: stretch !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.stk-8ee9fae:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================
   FORMULARIO WPFORMS
   ======================================== */

/* Container del formulario con animación (sin hover aquí) */
.stk-c07e646 .wpforms-container {
    background: linear-gradient(135deg, var(--smiley-blue-dark) 0%, var(--smiley-blue-darker) 100%) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    animation: fadeInUp 0.6s ease-out !important;
    animation-fill-mode: both !important;
    transition: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ELIMINAR - El hover ahora es en .stk-c07e646 */

/* Título del formulario */
.stk-c07e646 .wpforms-title {
    color: #ffffff !important;
    font-size: 28px !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
}

/* Descripción */
.stk-c07e646 .wpforms-description {
    color: #e2e8f0 !important;
    font-size: 16px !important;
    margin: 0 0 35px 0 !important;
    line-height: 1.6 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* ANCHO COMPLETO - Forzar campos a ancho completo */
.stk-c07e646 .wpforms-field-container {
    display: block !important;
}

.stk-c07e646 .wpforms-field {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* Labels */
.stk-c07e646 .wpforms-field-label {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px !important;
}

.stk-c07e646 .wpforms-required-label {
    color: var(--smiley-red) !important;
    font-weight: 700 !important;
}

/* Campos de input */
.stk-c07e646 .wpforms-field input[type="text"],
.stk-c07e646 .wpforms-field input[type="email"],
.stk-c07e646 .wpforms-field input[type="tel"],
.stk-c07e646 .wpforms-field input[type="url"],
.stk-c07e646 .wpforms-field input[type="number"],
.stk-c07e646 .wpforms-field select,
.stk-c07e646 .wpforms-field textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

/* Placeholder */
.stk-c07e646 .wpforms-field input::placeholder,
.stk-c07e646 .wpforms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400 !important;
}

/* Autofill de navegador */
.stk-c07e646 .wpforms-field input:-webkit-autofill,
.stk-c07e646 .wpforms-field input:-webkit-autofill:hover,
.stk-c07e646 .wpforms-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(30, 58, 95, 0.9) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Focus */
.stk-c07e646 .wpforms-field input:focus,
.stk-c07e646 .wpforms-field select:focus,
.stk-c07e646 .wpforms-field textarea:focus {
    outline: none !important;
    border-color: var(--smiley-red) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1) !important;
}

/* Textarea */
.stk-c07e646 .wpforms-field textarea {
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* Select dropdown */
.stk-c07e646 .wpforms-field select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23ffffff' d='M7 10L2 5h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 45px !important;
}

/* Botón Submit - EXACTAMENTE IGUAL QUE CAMPOS */
.stk-c07e646 .wpforms-submit-container {
    width: 100% !important;
    margin-top: 10px !important;
}

.stk-c07e646 .wpforms-submit {
    width: 100% !important;
    padding: 12px 16px !important;
    background: var(--smiley-red) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.stk-c07e646 .wpforms-submit:hover {
    background: var(--smiley-green) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(51, 204, 51, 0.3) !important;
}

.stk-c07e646 .wpforms-submit:active {
    transform: translateY(0) !important;
}

/* Mensajes de error */
.stk-c07e646 .wpforms-error {
    color: #ff6b6b !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    font-weight: 600 !important;
}

.stk-c07e646 .wpforms-field.wpforms-has-error input,
.stk-c07e646 .wpforms-field.wpforms-has-error textarea,
.stk-c07e646 .wpforms-field.wpforms-has-error select {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

/* Mensaje de confirmación */
.stk-c07e646 .wpforms-confirmation-container-full {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB) !important;
    border: 3px solid var(--smiley-green) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    color: #155724 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.stk-c07e646 .wpforms-confirmation-container-full::before {
    content: "✅";
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

/* Logo pequeño al pie del formulario */
.stk-c07e646 .wpforms-submit-container::after {
    content: "";
    display: block;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background-image: url('http://landing.smileywebs.com/wp-content/uploads/2025/11/Agregar_un_titulo-removebg-preview-e1762971831896.png');
    background-size: 80px auto;
    background-repeat: no-repeat;
    background-position: center;
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.stk-c07e646 .wpforms-submit-container:hover::after {
    opacity: 0.9;
}

/* ========================================
   MAPA GOOGLE - stk-8ee9fae
   ======================================== */

/* Contenedores del mapa */
.stk-8ee9fae-container,
.stk-8ee9fae-inner-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

.stk-8ee9fae .stk-column-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* Contenedor del iframe con animación (sin hover aquí) */
.stk-8ee9fae .gmap-block-j6ee3ud5 {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: fadeInUp 0.6s ease-out !important;
    animation-fill-mode: both !important;
    transition: none !important;
}

/* ELIMINAR hover del iframe - ahora es en .stk-8ee9fae */

/* iframe del mapa centrado con margin y padding */
.stk-8ee9fae .gmap-block-j6ee3ud5 iframe {
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    min-height: 490px !important;
    display: block !important;
    border-radius: 10px !important;
    margin: 5px auto !important;
    padding: 5px !important;
}

/* ========================================
   BOTÓN WHATSAPP FLOTANTE
   ======================================== */

.whatsapp-float-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #33cc33 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(51, 204, 51, 0.4) !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    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) !important;
    box-shadow: 0 8px 35px rgba(51, 204, 51, 0.6) !important;
}

.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: 600px) {
    .stk-c07e646 .wpforms-container {
        padding: 30px 20px !important;
        border-radius: 12px !important;
    }
    
    .stk-c07e646 .wpforms-title {
        font-size: 24px !important;
    }
    
    .whatsapp-float-btn {
        width: 56px !important;
        height: 56px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .stk-c07e646 .wpforms-submit-container::after {
        background-size: 70px auto;
        height: 30px;
    }
}