/**
 * Creatibog - Beaver Builder CSS Overrides
 * Persiste cambios de estilo hechos en preview del navegador
 */

/* Evitar scroll horizontal en móvil - Safari iOS ignora overflow-x en body sin position:relative */
html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Safari 16+ respeta mejor overflow-x: clip */
@supports (overflow-x: clip) {
    html, body {
        overflow-x: clip;
    }
}

/* Contenedores de contenido (home y páginas) - Safari necesita overflow en un contenedor con position */
body .fl-page,
body .fl-builder,
body .fl-content,
main,
#page {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Filas y columnas Beaver Builder - no desbordar en móvil */
.fl-row,
.fl-col-group,
.fl-col {
    max-width: 100%;
    box-sizing: border-box;
}

.fl-row-content {
    max-width: 100%;
}

/* div.fl-module - text-align: center (override de left) */
div.fl-module {
    text-align: center;
}

/* Iconos en columnas BB: mismo aspecto que perfil creativo */
.fl-col-content .meta-row,
.fl-col-content .creativo-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fl-col-content .meta-icon-wrapper,
.fl-col-content .creativo-meta-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 95, 52, 0.1);
    color: var(--creatibog-color-primary, #FB5F34);
    border-radius: 8px;
}

.fl-col-content .meta-icon-wrapper svg,
.fl-col-content .creativo-meta-icon svg {
    width: 18px;
    height: 18px;
}

.fl-col-content .meta-row small,
.fl-col-content .creativo-meta-row small {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.fl-col-content .meta-row strong,
.fl-col-content .creativo-meta-row strong {
    font-weight: 600;
    color: #1f2937;
}

/* Iconos de redes en columnas BB: más separados y redondos */
.fl-col-content .creativo-social-list {
    gap: 20px;
}

.fl-col-content .creativo-social-list .creatibog-social-icon,
.fl-col-content .creatibog-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 50%;
    background-color: rgba(251, 95, 52, 0.12);
    color: var(--creatibog-color-primary, #FB5F34);
    transition: all 0.25s ease;
    text-decoration: none;
}

.fl-col-content .creativo-social-list .creatibog-social-icon:hover,
.fl-col-content .creatibog-social-icon:hover {
    background-color: var(--creatibog-color-primary, #FB5F34);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 95, 52, 0.3);
}

.fl-col-content .creatibog-social-icon svg {
    width: 22px;
    height: 22px;
}

/* Responsive: columnas BB */
@media (max-width: 768px) {
    .fl-col-content .meta-row,
    .fl-col-content .creativo-meta-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .fl-col-content .creativo-social-list {
        gap: 14px;
        justify-content: center;
    }
    .fl-col-content .creativo-social-list .creatibog-social-icon,
    .fl-col-content .creatibog-social-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    .fl-col-content .creatibog-social-icon svg {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 480px) {
    .fl-col-content .creativo-social-list .creatibog-social-icon,
    .fl-col-content .creatibog-social-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
}
