/* =====================================================
   STORE CONTACT HERO v1.0
   CSS variables de color inyectadas dinámicamente
   desde PHP según opciones del admin
   ===================================================== */

/* Fallback vars (sobreescritas por PHP inline) */
:root {
    --sch-primary:        #b8860b;
    --sch-primary-dark:   #8c6408;
    --sch-secondary:      #4a7c59;
    --sch-secondary-dark: #2f5038;
    --sch-form-bg:        #2c2c1e;
}

/* ── Sección principal ── */
.sch-hero {
    padding: 60px 20px;
    background: transparent;
}

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

/* ── Cápsula contenedora ── */
.sch-capsule {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    animation: sch-fade-in 0.5s ease-out;
}

/* ── Grid 50/50 ── */
.sch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* =====================================================
   COLUMNA FORMULARIO
   ===================================================== */

.sch-form-wrapper {
    background: var(--sch-form-bg) !important;
    padding: 40px 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease !important;
    animation: sch-slide-up 0.6s ease-out;
}

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

/* Logo */
.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;
}
.sch-logo:hover { opacity: 1; transform: translateY(-3px); }

/* Header */
.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.85) !important; font-size: 16px !important;
    margin: 0 !important; font-weight: 400 !important;
}

/* Ocultar título nativo WPForms */
.sch-form-wrapper .wpforms-head-container,
.sch-form-wrapper .wpforms-title,
.sch-form-wrapper .wpforms-description { display: none !important; }

.sch-form-wrapper .wpforms-container,
.sch-form-wrapper .wpforms-form { background: transparent !important; padding: 0 !important; margin: 0 !important; }

/* Labels */
.sch-form-wrapper .wpforms-field-label {
    color: #ffffff !important; font-weight: 600 !important;
    margin-bottom: 8px !important; font-size: 14px !important;
}
.sch-form-wrapper .wpforms-required-label { color: var(--sch-primary) !important; }
.sch-form-wrapper .wpforms-field-sublabel { color: rgba(255,255,255,0.6) !important; }
.sch-form-wrapper .wpforms-field { margin-bottom: 18px !important; }

/* Inputs */
.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: 13px 16px !important;
    border: 2px solid transparent !important; border-radius: 8px !important;
    font-size: 15px !important; color: #ffffff !important;
    background-color: rgba(255,255,255,0.12) !important;
    transition: all 0.25s ease !important; box-sizing: border-box !important;
}
.sch-form-wrapper input::placeholder,
.sch-form-wrapper textarea::placeholder { color: rgba(255,255,255,0.5) !important; }

.sch-form-wrapper input:focus,
.sch-form-wrapper textarea:focus,
.sch-form-wrapper select:focus {
    outline: none !important;
    border-color: var(--sch-primary) !important;
    background-color: rgba(255,255,255,0.18) !important;
    box-shadow: 0 0 0 4px rgba(184,134,11,0.2) !important;
}
.sch-form-wrapper textarea { min-height: 110px !important; resize: vertical !important; }

/* Input completado */
.sch-form-wrapper input:valid:not(:placeholder-shown),
.sch-form-wrapper textarea:valid:not(:placeholder-shown) {
    border-color: var(--sch-secondary) !important;
}

/* Botón submit */
.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: var(--sch-primary) !important;
    color: #ffffff !important; border: none !important;
    border-radius: 8px !important; padding: 16px 32px !important;
    font-size: 15px !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(0,0,0,0.25) !important; margin-top: 8px !important;
}
.sch-form-wrapper button[type="submit"]:hover,
.sch-form-wrapper .wpforms-submit:hover,
.sch-form-wrapper .wpforms-submit-container button:hover {
    background: var(--sch-primary-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}

/* Mensajes */
.sch-form-wrapper .wpforms-error { color: #fca5a5 !important; font-size: 13px !important; margin-top: 5px !important; }
.sch-form-wrapper .wpforms-confirmation-container {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    border: 2px solid #10b981 !important; border-radius: 12px !important;
    padding: 22px !important; color: #065f46 !important;
    font-weight: 600 !important; text-align: center !important;
}

/* Sin formulario */
.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; }

/* Checkbox/Radio */
.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; }

/* =====================================================
   COLUMNA DERECHA
   ===================================================== */

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

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

/* Cita */
.sch-quote {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid var(--sch-primary);
    padding: 13px 18px 13px 20px;
    border-radius: 12px; position: relative;
}
.sch-quote-mark {
    position: absolute; top: 10px; right: 18px;
    font-size: 56px; line-height: 1;
    color: var(--sch-primary); opacity: 0.18;
    font-family: Georgia, serif; pointer-events: none;
}
.sch-quote-text {
    margin: 0; font-size: 15px; line-height: 1.7;
    color: #78350f; font-weight: 500; font-style: italic;
}

/* Beneficios */
.sch-benefits { display: flex; flex-direction: column; gap: 7px; }
.sch-benefit-item {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px; border-left: 3px solid var(--sch-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sch-benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(74,124,89,0.15);
}
.sch-benefit-icon { font-size: 20px; flex-shrink: 0; }
.sch-benefit-text { color: #1e293b; font-size: 14px; font-weight: 500; line-height: 1.4; }

/* Horario */
.sch-schedule {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 16px;
}
.sch-schedule-title {
    display: flex; align-items: center; gap: 7px;
    margin: 0 0 12px 0; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--sch-secondary);
}
.sch-schedule-title svg { flex-shrink: 0; }
.sch-schedule-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.sch-schedule-list li { font-size: 14px; color: #475569; }

/* Email */
.sch-email-contact {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 10px 16px; border-radius: 10px; text-align: center;
    border: 1px solid rgba(184,134,11,0.3);
}
.sch-email-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--sch-primary); text-decoration: none;
    font-size: 15px; font-weight: 700; transition: all 0.25s ease;
}
.sch-email-link:hover { color: var(--sch-primary-dark); transform: scale(1.03); }

/* Redes Sociales */
.sch-social { text-align: center; }
.sch-social-label {
    margin: 0 0 12px 0; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: #94a3b8;
}
.sch-social-icons { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.sch-social-link {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.sch-social-link svg { width: 20px; height: 20px; }
.sch-social-link:hover { transform: translateY(-4px); }

.sch-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.sch-facebook  { background: #1877f2; color: #fff; }
.sch-tiktok    { background: #010101; color: #fff; }
.sch-twitter   { background: #000000; color: #fff; }
.sch-social-link:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

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

.sch-whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #33cc33, #25a025);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(51,204,51,0.4);
    text-decoration: none; z-index: 9999;
    animation: sch-wa-pulse 2.5s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sch-whatsapp-float:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 30px rgba(51,204,51,0.6);
    animation: none;
}
.sch-whatsapp-icon { width: 34px; height: 34px; fill: #ffffff; }

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

@media (max-width: 968px) {
    .sch-grid { grid-template-columns: 1fr; gap: 40px; }
    .sch-form-column { order: 1; }
    .sch-content-column { order: 2; }
    .sch-capsule { padding: 35px 28px; }
    .sch-form-wrapper { padding: 30px 25px !important; }
}

@media (max-width: 640px) {
    .sch-hero { padding: 36px 14px; }
    .sch-capsule { padding: 26px 18px; border-radius: 18px; }
    .sch-form-wrapper { padding: 24px 18px !important; }
    .sch-form-title { font-size: 22px !important; }
    .sch-whatsapp-float { width: 58px; height: 58px; bottom: 18px; right: 18px; }
    .sch-whatsapp-icon { width: 30px; height: 30px; }
    /* Evitar zoom iOS en inputs */
    .sch-form-wrapper input[type="text"],
    .sch-form-wrapper input[type="email"],
    .sch-form-wrapper textarea { font-size: 16px !important; }
}

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

@keyframes sch-fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes sch-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sch-wa-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.65), 0 0 0 8px rgba(51,204,51,0.08); }
}

/* Stagger en beneficios */
.sch-benefit-item:nth-child(1) { animation: sch-slide-up 0.5s ease-out 0.1s both; }
.sch-benefit-item:nth-child(2) { animation: sch-slide-up 0.5s ease-out 0.2s both; }
.sch-benefit-item:nth-child(3) { animation: sch-slide-up 0.5s ease-out 0.3s both; }
.sch-benefit-item:nth-child(4) { animation: sch-slide-up 0.5s ease-out 0.4s both; }
.sch-benefit-item:nth-child(5) { animation: sch-slide-up 0.5s ease-out 0.5s both; }

html { scroll-behavior: smooth; }

/* =====================================================
   TARJETA UNIFICADA COLUMNA DERECHA
   ===================================================== */

.sch-content-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e8e8e0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.sch-content-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.11);
    border-color: var(--sch-primary);
}

/* Imagen dentro de la tarjeta: sin gap extra, bordes redondeados arriba */
.sch-content-card .sch-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    min-height: 200px;
}

.sch-content-card .sch-image {
    min-height: 200px;
}

/* Caption bajo la imagen */
.sch-image-caption {
    margin: 0;
    padding: 10px 14px 4px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    background: #fafaf8;
    border-top: 1px solid #f0ede5;
}

@media (max-width: 968px) {
    .sch-content-card { padding: 22px 20px; }
}

@media (max-width: 640px) {
    .sch-content-card { padding: 18px 16px; gap: 16px; }
}
