/* Sus Finanzas Dynamic Pages - Frontend Styles */

/* ============================================
   Vendor Header Bar Styles
   ============================================ */
.sf-vendor-header-bar {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: #ffffff;
    padding: 15px 0;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sf-vendor-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sf-vendor-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sf-vendor-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sf-vendor-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.sf-vendor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sf-vendor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-vendor-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-vendor-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.sf-vendor-id {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.sf-vendor-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-vendor-contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.sf-vendor-contact-item a:hover {
    opacity: 0.8;
}

.sf-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.sf-icon-phone::before {
    content: "📞";
    font-size: 16px;
}

.sf-icon-email::before {
    content: "✉️";
    font-size: 16px;
}

/* ============================================
   Vendor Footer Info Styles
   ============================================ */
.sf-vendor-footer-info {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 2px solid #003d82;
}

.sf-vendor-footer-info h3 {
    color: #003d82;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.sf-vendor-footer-details {
    display: flex;
    align-items: center;
    gap: 25px;
}

.sf-vendor-footer-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #003d82;
    flex-shrink: 0;
}

.sf-vendor-footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-vendor-footer-contact {
    flex: 1;
}

.sf-vendor-footer-name {
    font-size: 20px;
    color: #003d82;
    margin: 0 0 8px;
}

.sf-vendor-footer-id {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
}

.sf-vendor-footer-phone,
.sf-vendor-footer-email {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-vendor-footer-phone a,
.sf-vendor-footer-email a {
    color: #003d82;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.sf-vendor-footer-phone a:hover,
.sf-vendor-footer-email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ============================================
   Contact Form Styles
   ============================================ */
.sf-contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sf-contact-form-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.sf-form-group {
    margin-bottom: 20px;
}

.sf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.sf-form-group .required {
    color: #e74c3c;
}

.sf-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sf-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.sf-submit-btn {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sf-submit-btn:hover {
    background: #005a87;
}

.sf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sf-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.sf-form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.sf-form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Vendor Info Widget Styles */
.sf-vendor-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

/* ── Vertical layout ───────────────────────────────────────────────────── */
.sf-vendor-info-vertical {
    flex-direction: column;
    align-items: stretch;
}

/* Fila 1: foto a la izquierda, nombre+ID a la derecha */
.sf-vendor-info-vertical .sf-vendor-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.sf-vendor-info-vertical .sf-vendor-top .sf-vendor-col-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

/* Fila 2: teléfono y email en la misma fila */
.sf-vendor-info-vertical .sf-vendor-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
}

.sf-vendor-photo-svg {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sf-vendor-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    flex: 1;
    min-width: 0;
}

.sf-vendor-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.sf-vendor-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.sf-vendor-contact-item a,
.sf-vendor-contact-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-vendor-name {
    margin: 0;
    white-space: nowrap;
}

.sf-vendor-icon {
    flex-shrink: 0;
    display: inline-block;
    color: #FDC400;
    fill: #FDC400;
}

.sf-vendor-email a,
.sf-vendor-phone a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Vendor Header Responsive */
    .sf-vendor-header-bar {
        padding: 10px 0;
    }
    
    .sf-vendor-header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .sf-vendor-header-left {
        width: 100%;
        justify-content: center;
    }
    
    .sf-vendor-header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sf-vendor-photo {
        width: 50px;
        height: 50px;
    }
    
    .sf-vendor-name {
        font-size: 16px;
    }
    
    .sf-vendor-contact-item {
        font-size: 13px;
    }
    
    /* Vendor Footer Responsive */
    .sf-vendor-footer-info {
        padding: 20px;
    }
    
    .sf-vendor-footer-details {
        flex-direction: column;
        text-align: center;
    }
    
    .sf-vendor-footer-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Contact Form Responsive */
    .sf-contact-form-wrapper {
        padding: 20px;
    }
    
    .sf-vendor-info-horizontal {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sf-vendor-header-right {
        flex-direction: column;
        gap: 8px;
    }

    .sf-vendor-contact-item a {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Widget: Formulario de Contacto Vendedor (Nombre + WhatsApp)
   ═══════════════════════════════════════════════════════════════════════════ */

.sf-vcf-wrapper {
    width: 100%;
}

/* Fila de campos */
.sf-vcf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Dos columnas */
.sf-vcf-fields.sf-vcf-cols-2 .sf-vcf-field {
    flex: 1 1 0;
    min-width: 0;
}

/* Una columna */
.sf-vcf-fields.sf-vcf-cols-1 .sf-vcf-field {
    flex: 0 0 100%;
    width: 100%;
}

/* Campo individual */
.sf-vcf-field {
    display: flex;
    flex-direction: column;
}

.sf-vcf-field input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    outline: none;
    border: none;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    transition: background-color 0.2s;
}

.sf-vcf-field input::placeholder {
    color: #999;
}

.sf-vcf-field input:focus {
    background-color: #e8e8e8;
}

/* Etiqueta */
.sf-vcf-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

/* Botón */
.sf-vcf-submit {
    margin-top: 12px;
}

.sf-vcf-align-left   { text-align: left;   }
.sf-vcf-align-center { text-align: center; }
.sf-vcf-align-right  { text-align: right;  }

.sf-vcf-btn {
    display: inline-block;
    cursor: pointer;
    border: none;
    background-color: #1e3a8a;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.sf-vcf-btn:hover {
    opacity: 0.9;
}

.sf-vcf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sf-vcf-btn-fullwidth {
    width: 100%;
    display: block;
    text-align: center;
}

/* Mensajes de éxito/error */
.sf-vcf-messages {
    display: none;
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.sf-vcf-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sf-vcf-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive: apilar a una columna en móvil */
@media (max-width: 600px) {
    .sf-vcf-fields.sf-vcf-cols-2 .sf-vcf-field {
        flex: 0 0 100%;
    }
}

/* ============================================
   Social Icons Widget
   ============================================ */
.sf-social-icons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.sf-social-icon:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

.sf-social-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   WhatsApp Button Widget
   ============================================ */
.sf-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.sf-wa-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.sf-wa-btn svg {
    flex-shrink: 0;
}

/* ============================================
   WhatsApp Card Widget
   ============================================ */
.sf-wa-card {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background-color: #003d82;
    border-radius: 16px;
    padding: 20px 28px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    width: 100%;
    box-sizing: border-box;
}

.sf-wa-card:hover {
    background-color: #002f68;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.sf-wa-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sf-wa-card__icon svg {
    width: 52px;
    height: 52px;
    fill: #f5a623;
    display: block;
}

.sf-wa-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sf-wa-card__title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.sf-wa-card__phone {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #aec6e8;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ============================================
   CTA + Popup Vendedor Widget
   ============================================ */
.sf-cta-box {
    position: relative;
    overflow: visible; /* el recorte lo maneja la imagen y el skin-cover */
    box-sizing: border-box;
}

/* Layout clásico: imagen arriba, contenido abajo */
.sf-cta-skin-classic {
    display: flex;
    flex-direction: column;
}
.sf-cta-skin-classic.sf-cta-img-pos-left  { flex-direction: row; }
.sf-cta-skin-classic.sf-cta-img-pos-right { flex-direction: row-reverse; }
.sf-cta-skin-classic.sf-cta-img-pos-bottom { flex-direction: column-reverse; }

/* Layout cubierta: imagen de fondo */
.sf-cta-skin-cover {
    overflow: hidden; /* cover necesita recorte para que la imagen no sobresalga */
}
.sf-cta-skin-cover .sf-cta-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.sf-cta-skin-cover .sf-cta-content-wrap {
    position: relative;
    z-index: 1;
}

/* Imagen: hereda el radio solo en las esquinas superiores (parte de la tarjeta) */
.sf-cta-image {
    position: relative;
    width: 100%;
    height: 350px; /* default; Elementor image_height slider lo sobrescribe */
    overflow: hidden;
    flex-shrink: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.sf-cta-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important; /* anula img { height: auto } del tema */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Contenedor del contenido */
.sf-cta-content-wrap {
    width: 100%;
    display: flex;
}
.sf-cta-valign-top    { align-items: flex-start; }
.sf-cta-valign-middle { align-items: center; }
.sf-cta-valign-bottom { align-items: flex-end; }

.sf-cta-content {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Elemento gráfico */
.sf-cta-graphic {
    margin-bottom: 25px;
}
.sf-cta-graphic i,
.sf-cta-graphic svg {
    font-size: 45px;
    width: 45px;
    height: 45px;
    color: #003d82;
    fill: #003d82;
}
.sf-cta-graphic img {
    width: 45px;
    display: inline-block;
}
/* Vistas del icono */
.sf-cta-graphic-view-stacked i,
.sf-cta-graphic-view-stacked svg {
    background: currentColor;
    padding: 10px;
    border-radius: 50%;
}
.sf-cta-graphic-view-framed i,
.sf-cta-graphic-view-framed svg {
    border: 2px solid currentColor;
    padding: 10px;
    border-radius: 4px;
}

/* Título */
.sf-cta-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

/* Descripción */
.sf-cta-desc {
    margin: 0 0 20px;
    color: #555555;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Botón */
.sf-cta-btn {
    display: inline-block;
    background-color: #003d82;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.sf-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Cinta (ribbon) */
.sf-cta-ribbon {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    background-color: #e41f25;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}
.sf-cta-ribbon-top-right  { top: 12px; right: 12px; border-radius: 4px; }
.sf-cta-ribbon-top-left   { top: 12px; left: 12px;  border-radius: 4px; }

/* Efectos hover en la caja */
.sf-cta-hover-grow:hover   { transform: scale(1.04); }
.sf-cta-hover-shrink:hover { transform: scale(0.97); }
.sf-cta-hover-float:hover  { transform: translateY(-6px); }
.sf-cta-hover-pulse:hover  { animation: sf-pulse 0.4s ease; }
.sf-cta-hover-shadow:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.22); }
@keyframes sf-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Trigger button */
.sf-popup-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.sf-popup-trigger-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Overlay */
.sf-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
}

.sf-popup-overlay.sf-popup-open {
    display: flex;
}

/* Container */
.sf-popup-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    max-width: 780px;
    width: 100%;
    position: relative;
    padding: 20px;
    margin: auto;
    animation: sfPopupIn 0.22s ease;
}

@keyframes sfPopupIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Close button — dark circle */
.sf-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    transition: background 0.15s ease;
    box-sizing: border-box !important;
    flex-shrink: 0;
    text-indent: 0;
    letter-spacing: 0;
}

.sf-popup-close:hover {
    background: #2d2d4a !important;
}

/* Title — full width, above the inner row */
.sf-popup-title {
    padding: 20px 52px 0 4px;
    margin: 0 0 24px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
}

/* Inner layout */
.sf-popup-inner {
    display: flex;
    min-height: 200px;
}

.sf-popup-inner.sf-popup-has-image .sf-popup-image {
    width: 43%;
    flex-shrink: 0;
    overflow: hidden;
    min-height: 320px;
    border-radius: 10px;
}

.sf-popup-inner.sf-popup-has-image .sf-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-popup-form-wrap {
    flex: 1;
    padding: 28px 40px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Fields */
.sf-popup-field {
    margin-bottom: 16px;
}

.sf-popup-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333333;
}

.sf-popup-field input[type="text"],
.sf-popup-field input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: #f0f2f5;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #111111;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sf-popup-field input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.2);
}

/* Required asterisk */
.sf-req {
    color: #e53935;
    margin-left: 2px;
}

/* Radio group (affiliates) */
.sf-popup-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.sf-popup-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333333;
}

.sf-popup-radio-label input[type="radio"] {
    accent-color: #003d82;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit button */
.sf-popup-submit {
    margin-top: 8px;
    padding: 14px 36px;
    background: #003d82;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sf-popup-submit:hover:not(:disabled) {
    background: #002a5a;
    transform: translateY(-1px);
}

.sf-popup-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.sf-popup-msg {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.sf-popup-msg--success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sf-popup-msg--error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 640px) {
    /* Overlay: pequeño margen para que el popup no toque los bordes */
    .sf-popup-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .sf-popup-container {
        border-radius: 16px;
        min-height: unset;
        padding: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
        margin: auto;
        max-width: 100%;
        width: 100%;
    }

    .sf-popup-title {
        font-size: 1.25rem;
        padding: 10px 44px 0 0;
        margin-bottom: 14px;
        text-align: center;
    }

    /* Columna: imagen arriba, form abajo, sin gap vertical extra */
    .sf-popup-inner {
        flex-direction: column;
        min-height: unset;
        gap: 0;
    }

    /* Imagen: ancho completo del contenedor, altura fija */
    .sf-popup-inner.sf-popup-has-image .sf-popup-image {
        width: 100% !important;
        flex: none !important;
        align-self: stretch;
        min-height: unset;
        height: 220px;
        max-height: 220px;
        border-radius: 10px;
        overflow: hidden;
        display: block;
    }

    /* La img ocupa todo el bloque de imagen */
    .sf-popup-inner.sf-popup-has-image .sf-popup-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center top;
    }

    /* Formulario: compacto, alineado con la imagen */
    .sf-popup-form-wrap {
        padding: 14px 0 4px 0 !important;
        flex: unset;
        width: 100%;
        box-sizing: border-box;
    }

    .sf-popup-field {
        margin-bottom: 12px;
    }

    .sf-popup-field input[type="text"],
    .sf-popup-field input[type="tel"] {
        font-size: 1rem;
    }

    .sf-popup-submit {
        width: 100%;
        margin-top: 4px;
    }

    .sf-popup-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .sf-popup-close {
        top: 12px !important;
        right: 12px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Vendor Icon Box Widget (.sf-icon-box-*)
   Dos filas al estilo "Caja de Icono" nativa de Elementor con datos del vendedor
───────────────────────────────────────────────────────────────────────────── */
.sf-icon-box-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}
.sf-icon-box-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    box-sizing: border-box;
    width: 100%;
}
.sf-icon-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: #e8f0fb;
    border-radius: 50%;
}
.sf-icon-box-icon svg {
    width: 28px;
    height: 28px;
    fill: #1a3c6e;
    display: block;
    flex-shrink: 0;
}
.sf-icon-box-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.sf-icon-box-label {
    display: block;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.sf-icon-box-value {
    display: block;
    line-height: 1.3;
    word-break: break-all;
    text-decoration: none;
    color: inherit;
}
.sf-icon-box-value:hover {
    text-decoration: underline;
}
