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

.sch-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #33cc33 0%, #28a428 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(51, 204, 51, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
}

.sch-whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(51, 204, 51, 0.6);
}

.sch-whatsapp-float:active {
    transform: translateY(-3px) scale(1.05);
}

.sch-whatsapp-icon {
    width: 38px;
    height: 38px;
    fill: #ffffff;
}

/* Pulse animation para llamar la atención */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(51, 204, 51, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(51, 204, 51, 0.7), 0 0 0 10px rgba(51, 204, 51, 0.1);
    }
}

.sch-whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

.sch-whatsapp-float:hover {
    animation: none;
}

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

@media (max-width: 640px) {
    .sch-whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 64px;
        height: 64px;
    }
    
    .sch-whatsapp-icon {
        width: 34px;
        height: 34px;
    }
}

/* ========================================
   SMILEY CONTACT HERO v1.2
   Match exacto con diseño azul oscuro + botón rojo Smiley
   ======================================== */

.smiley-contact-hero {
    padding: 60px 20px;
    background: transparent;
}

.sch-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

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

.sch-capsule {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.sch-capsule:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   GRID 50/50 (Invertido)
   ======================================== */

.sch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ========================================
   COLUMNA FORMULARIO (IZQUIERDA)
   ======================================== */

.sch-form-column {
    position: relative;
}

.sch-form-wrapper {
    background: #2c3e50 !important;
    padding: 40px 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ========================================
   ANIMACIÓN HOVER EN FORMULARIO
   ======================================== */

.sch-form-wrapper:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   LOGO DENTRO DEL FORMULARIO (DECORATIVO)
   ======================================== */

.sch-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.sch-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.95;
    transition: all 0.3s ease;
    cursor: default;
}

.sch-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ========================================
   HEADER PERSONALIZADO (Título + Subtítulo)
   ======================================== */

.sch-form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sch-form-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.sch-form-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 17px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* ========================================
   OCULTAR TÍTULO DE WPFORMS (usamos el nuestro)
   ======================================== */

.sch-form-wrapper .wpforms-head-container {
    display: none !important;
}

.sch-form-wrapper .wpforms-title {
    display: none !important;
}

.sch-form-wrapper .wpforms-description {
    display: none !important;
}

/* ========================================
   ESTILOS FORMULARIO - AZUL OSCURO + INPUTS CLAROS
   ======================================== */

.sch-no-form {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.sch-no-form p {
    margin: 0;
    color: #856404;
}

/* Labels - BLANCO */
.sch-form-wrapper .wpforms-field-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    display: block !important;
}

/* Required asterisk - ROJO SMILEY */
.sch-form-wrapper .wpforms-required-label {
    color: #ff0000 !important;
}

/* Sublabels */
.sch-form-wrapper .wpforms-field-sublabel {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Container de cada field */
.sch-form-wrapper .wpforms-field {
    margin-bottom: 20px !important;
}

/* Inputs y Textareas - GRIS AZULADO CLARO */
.sch-form-wrapper input[type="text"],
.sch-form-wrapper input[type="email"],
.sch-form-wrapper input[type="tel"],
.sch-form-wrapper input[type="url"],
.sch-form-wrapper input[type="number"],
.sch-form-wrapper input[type="date"],
.sch-form-wrapper textarea,
.sch-form-wrapper select {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    background-color: #4a5f7f !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
}

/* Placeholders - BLANCO SEMI-TRANSPARENTE */
.sch-form-wrapper input[type="text"]::placeholder,
.sch-form-wrapper input[type="email"]::placeholder,
.sch-form-wrapper input[type="tel"]::placeholder,
.sch-form-wrapper input[type="url"]::placeholder,
.sch-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic !important;
}

/* Focus state - BORDE BLANCO */
.sch-form-wrapper input[type="text"]:focus,
.sch-form-wrapper input[type="email"]:focus,
.sch-form-wrapper input[type="tel"]:focus,
.sch-form-wrapper input[type="url"]:focus,
.sch-form-wrapper input[type="number"]:focus,
.sch-form-wrapper textarea:focus,
.sch-form-wrapper select:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: #566d8a !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

/* Textarea específico */
.sch-form-wrapper textarea {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

/* ========================================
   BOTÓN SUBMIT - ROJO SMILEY #ff0000
   ======================================== */

.sch-form-wrapper button[type="submit"],
.sch-form-wrapper .wpforms-submit,
.sch-form-wrapper input[type="submit"],
.sch-form-wrapper .wpforms-submit-container button {
    width: 100% !important;
    background: #ff0000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 18px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4) !important;
    margin-top: 10px !important;
}

.sch-form-wrapper button[type="submit"]:hover,
.sch-form-wrapper .wpforms-submit:hover,
.sch-form-wrapper input[type="submit"]:hover,
.sch-form-wrapper .wpforms-submit-container button:hover {
    background: #cc0000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5) !important;
}

.sch-form-wrapper button[type="submit"]:active,
.sch-form-wrapper .wpforms-submit:active,
.sch-form-wrapper input[type="submit"]:active,
.sch-form-wrapper .wpforms-submit-container button:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4) !important;
}

/* Container del submit */
.sch-form-wrapper .wpforms-submit-container {
    margin-top: 15px !important;
}

/* ========================================
   MENSAJES ERROR/ÉXITO
   ======================================== */

/* Mensajes de error - ROJO */
.sch-form-wrapper .wpforms-error {
    color: #fca5a5 !important;
    font-size: 13px !important;
    margin-top: 6px !important;
    font-weight: 500 !important;
}

.sch-form-wrapper .wpforms-field.wpforms-has-error input,
.sch-form-wrapper .wpforms-field.wpforms-has-error textarea {
    border-color: #ff0000 !important;
    background-color: rgba(255, 0, 0, 0.15) !important;
}

/* Mensaje de éxito - VERDE */
.sch-form-wrapper .wpforms-confirmation-container {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border: 2px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

/* ========================================
   COLUMNA CONTENIDO (DERECHA)
   ======================================== */

.sch-content-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Imagen */
.sch-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    min-height: 240px;
}

.sch-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: block;
    object-fit: cover;
}

/* Cita de agradecimiento - ROSA SUAVE */
.sch-quote {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ff0000;
    padding: 22px 28px;
    border-radius: 12px;
    position: relative;
    font-style: italic;
}

.sch-quote-icon {
    color: #ff0000;
    opacity: 0.25;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
}

.sch-quote-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    font-weight: 500;
}

/* Beneficios - VERDE SMILEY */
.sch-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sch-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    border-left: 3px solid #33cc33;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sch-benefit-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(51, 204, 51, 0.15);
}

.sch-benefit-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.sch-benefit-text {
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* Email contacto - AZUL CLARO */
.sch-email-contact {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #93c5fd;
}

.sch-email-label {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sch-email-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.sch-email-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
    transform: scale(1.03);
}

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

@media (max-width: 968px) {
    .sch-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    /* En mobile, formulario arriba (UX priority) */
    .sch-form-column {
        order: 1;
    }
    
    .sch-content-column {
        order: 2;
    }
    
    .sch-capsule {
        padding: 35px 28px;
    }
    
    .sch-logo {
        max-width: 150px;
    }
    
    .sch-form-wrapper {
        padding: 30px 25px !important;
    }
}

@media (max-width: 640px) {
    .smiley-contact-hero {
        padding: 40px 16px;
    }
    
    .sch-capsule {
        padding: 28px 22px;
        border-radius: 18px;
    }
    
    .sch-logo-container {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .sch-logo {
        max-width: 130px;
    }
    
    .sch-form-wrapper {
        padding: 25px 20px !important;
    }
    
    .sch-quote {
        padding: 18px 22px;
    }
    
    .sch-quote-text {
        font-size: 14px;
    }
    
    .sch-benefit-item {
        padding: 10px 14px;
    }
    
    .sch-benefit-text {
        font-size: 14px;
    }
    
    .sch-email-link {
        font-size: 15px;
    }
    
    .sch-form-wrapper input[type="text"],
    .sch-form-wrapper input[type="email"],
    .sch-form-wrapper textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
    }
    
    .sch-form-wrapper .wpforms-title {
        font-size: 20px !important;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
}

.sch-capsule {
    animation: fadeInScale 0.5s ease-out;
}

.sch-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.sch-logo-link {
    animation: fadeInUp 0.4s ease-out;
}

.sch-benefit-item {
    animation: fadeInUp 0.6s ease-out;
}

.sch-benefit-item:nth-child(1) {
    animation-delay: 0.1s;
}

.sch-benefit-item:nth-child(2) {
    animation-delay: 0.2s;
}

.sch-benefit-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading state para formulario */
.sch-form-wrapper.wpforms-submit-processing button[type="submit"] {
    opacity: 0.7 !important;
    cursor: wait !important;
}

.sch-form-wrapper.wpforms-submit-processing button[type="submit"]::after {
    content: "..." !important;
    animation: dots 1.5s infinite !important;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* ========================================
   OVERRIDES ADICIONALES WPFORMS
   ======================================== */

/* Remover estilos base de WPForms que puedan interferir */
.sch-form-wrapper .wpforms-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sch-form-wrapper .wpforms-form {
    background: transparent !important;
}

/* Checkbox y radio buttons */
.sch-form-wrapper input[type="checkbox"],
.sch-form-wrapper input[type="radio"] {
    width: auto !important;
    margin-right: 8px !important;
}

.sch-form-wrapper .wpforms-field-checkbox label,
.sch-form-wrapper .wpforms-field-radio label {
    color: #ffffff !important;
}

/* Select dropdown */
.sch-form-wrapper select option {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

/* File upload */
.sch-form-wrapper input[type="file"] {
    color: #ffffff !important;
}

/* ========================================
   CAMPO COMPLETADO - Indicador visual verde
   ======================================== */

.sch-form-wrapper input[type="text"]:valid:not(:placeholder-shown),
.sch-form-wrapper input[type="email"]:valid:not(:placeholder-shown),
.sch-form-wrapper input[type="tel"]:valid:not(:placeholder-shown),
.sch-form-wrapper textarea:valid:not(:placeholder-shown) {
    border-color: #33cc33 !important;
    background-color: #3d5a3e !important;
    box-shadow: 0 0 0 3px rgba(51, 204, 51, 0.2) !important;
}