/* 
Estilos para Bloques Modernos - VERSIÓN OPTIMIZADA
Diseño moderno, responsivo y con animaciones controladas
*/

/* === VARIABLES CSS === */
:root {
    --moderno-primary: #667eea;
    --moderno-secondary: #764ba2;
    --moderno-accent: #4ecdc4;
    --moderno-warning: #ff6b6b;
    --moderno-success: #2ecc71;
    --moderno-dark: #2c3e50;
    --moderno-light: #f8f9fa;
    --moderno-white: #ffffff;
    --moderno-gray: #e9ecef;
    --moderno-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --moderno-shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --moderno-shadow-soft: 0 5px 20px rgba(0,0,0,0.08);
    --moderno-border-radius: 20px;
    --moderno-transition: all 0.3s ease;
    --moderno-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* === ANIMACIONES MODERNAS SIMPLIFICADAS === */

/* Estados iniciales para animaciones activadas por scroll */
.hero-moderno,
.caracteristica-item,
.faq-item,
.tarjeta-descripcion,
.tabla-comparativa {
        opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estado específico para filas de tabla comparativa */
.tabla-comparativa tbody tr {
        opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estados finales cuando se animan */
.hero-moderno.animated,
.caracteristica-item.animated,
.faq-item.animated,
.tarjeta-descripcion.animated,
.tabla-comparativa.animated {
        opacity: 1;
    transform: none;
}

/* Estado final para filas de tabla */
.tabla-comparativa tbody tr.animated {
        opacity: 1;
    transform: none;
}

/* Animaciones secuenciales para elementos internos */
.hero-titulo,
.hero-subtitulo,
.hero-boton {
        opacity: 0;
        transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-titulo.animated,
.hero-subtitulo.animated,
.hero-boton.animated {
        opacity: 1;
    transform: none;
}

/* === FORMATO DE TEXTO PARA TARJETAS === */

/* Estilos para texto formateado en tarjetas */
.tarjeta-descripcion .tarjeta-descripciones {
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Negritas en descripción */
.tarjeta-descripcion .tarjeta-descripciones strong,
.tarjeta-descripcion .tarjeta-descripciones b {
    font-weight: 700;
    color: var(--moderno-dark);
}

/* Cursivas en descripción */
.tarjeta-descripcion .tarjeta-descripciones em,
.tarjeta-descripcion .tarjeta-descripciones i {
    font-style: italic;
    color: var(--moderno-primary);
}

/* Enlaces en descripción */
.tarjeta-descripcion .tarjeta-descripciones a {
    color: var(--moderno-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.tarjeta-descripcion .tarjeta-descripciones a:hover {
    border-bottom-color: var(--moderno-primary);
}

/* Tachado en descripción */
.tarjeta-descripcion .tarjeta-descripciones del,
.tarjeta-descripcion .tarjeta-descripciones s {
    text-decoration: line-through;
    opacity: 0.7;
}

/* === HOVER ANIMATIONS (mantener existentes) === */
.hero-moderno .hero-content {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-moderno:hover .hero-content {
    transform: translateY(-5px);
}

.caracteristica-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.caracteristica-item:hover {
    transform: translateY(-5px);
}

.faq-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item:hover {
    transform: translateX(10px);
}

/* === 1. ESTILOS HERO MODERNO - OPTIMIZADO === */
.hero-moderno {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: var(--moderno-font-family);
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 500px;
    /* Permitir animaciones cuando están activas */
    transform: none;
    transition: none;
}

/* Alturas simplificadas */
.hero-pequeño { min-height: 400px; }
.hero-normal { min-height: 600px; }
.hero-grande { min-height: 800px; }
.hero-pantalla-completa { min-height: 100vh; }
.hero-personalizada { min-height: auto !important; }

/* Ancho contenedor */
.hero-ancho-contenedor {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* Ancho pantalla completa - SIMPLIFICADO */
.hero-ancho-pantalla-completa {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
}

/* Overlay simplificado */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Contenido del hero */
.hero-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
}

.hero-align-left .hero-contenido { text-align: left; }
.hero-align-right .hero-contenido { text-align: right; }

/* Texto del hero - FORZAR VISIBILIDAD */
.hero-titulo {
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Eliminar transiciones problemáticas */
    transform: none !important;
    transition: none !important;
}

.hero-subtitulo {
    margin-bottom: 30px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
    display: block !important;
    visibility: visible !important;
    /* Eliminar transiciones problemáticas */
    transform: none !important;
    transition: none !important;
}

.hero-boton {
    display: inline-block !important;
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    padding: 18px 40px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    margin-top: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Transición simplificada solo para hover */
    transition: box-shadow 0.3s ease !important;
    transform: none !important;
}

.hero-boton:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

/* === 2. ESTILOS TARJETA DESCRIPCIÓN - OPTIMIZADO === */
.tarjeta-descripcion {
    background: var(--moderno-white);
    border-radius: var(--moderno-border-radius);
    padding: 30px;
    margin: 30px 0;
    font-family: var(--moderno-font-family);
    position: relative;
    overflow: hidden;
    /* Transición simplificada */
    transition: box-shadow 0.3s ease;
}

.tarjeta-plana {
    box-shadow: none;
    border: 1px solid var(--moderno-gray);
}

.tarjeta-elevada {
    box-shadow: var(--moderno-shadow);
}

.tarjeta-bordeada {
    border: 2px solid var(--moderno-primary);
    box-shadow: var(--moderno-shadow-soft);
}

.tarjeta-con-imagen {
    display: grid;
    gap: 30px;
    align-items: center;
}

.tarjeta-con-imagen.imagen-izquierda,
.tarjeta-con-imagen.imagen-derecha {
    grid-template-columns: 1fr 1fr;
}

.tarjeta-con-imagen.imagen-arriba,
.tarjeta-con-imagen.imagen-abajo {
    grid-template-columns: 1fr;
}

.tarjeta-con-imagen.imagen-derecha .tarjeta-imagen { order: 2; }
.tarjeta-con-imagen.imagen-abajo .tarjeta-imagen { order: 2; }

.tarjeta-imagen {
    border-radius: 15px;
    overflow: hidden;
}

.tarjeta-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.tarjeta-titulo {
    font-weight: 700;
    color: var(--moderno-dark);
    margin-bottom: 18px;
    line-height: 1.3;
    text-align: center;
}

.tarjeta-subtitulo {
    margin-bottom: 22px;
    font-weight: 600;
    text-align: center;
}

.tarjeta-descripcion {
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
}

.tarjeta-boton {
    display: inline-block;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    color: var(--moderno-white);
    padding: 18px 45px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--moderno-shadow-soft);
}

.tarjeta-boton:hover {
    box-shadow: var(--moderno-shadow);
    text-decoration: none;
    color: var(--moderno-white);
}

/* === 3. ESTILOS TABLA COMPARATIVA - OPTIMIZADO === */
.tabla-comparativa {
    margin: 40px 0;
    font-family: var(--moderno-font-family);
}

.tabla-titulo {
    text-align: center;
    font-weight: 700;
    color: var(--moderno-dark);
    margin-bottom: 45px;
    position: relative;
}

.tabla-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    border-radius: 2px;
}

.tabla-wrapper {
    overflow-x: auto;
    border-radius: var(--moderno-border-radius);
    box-shadow: var(--moderno-shadow);
    background: var(--moderno-white);
}

.comparacion-table {
    width: 100%;
    border-collapse: collapse;
}

.comparacion-table th {
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    color: var(--moderno-white);
    padding: 22px 18px;
    text-align: center;
    font-weight: 700;
}

.comparacion-table th.columna-destacada {
    background: linear-gradient(45deg, var(--moderno-accent), var(--moderno-success));
    position: relative;
}

.comparacion-table th.columna-destacada::before {
    position: absolute;
    top: -5px;
    right: 10px;
    font-size: 1.2rem;
}

.comparacion-table td {
    padding: 22px 18px;
    border-bottom: 1px solid var(--moderno-gray);
    vertical-align: top;
}

.comparacion-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.celda-caracteristica {
    font-weight: 600;
    color: var(--moderno-dark);
    background: rgba(248, 249, 250, 0.8);
}

.celda-premium {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(46, 204, 113, 0.1));
}

.celda-contenido {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.celda-estandar {
    color: #666;
}

/* === 4. ESTILOS CARACTERÍSTICAS - OPTIMIZADO === */
.caracteristicas-container {
    margin: 40px 0;
    font-family: var(--moderno-font-family);
}

.caracteristicas-titulo {
    text-align: center;
    font-weight: 700;
    color: var(--moderno-dark);
    margin-bottom: 55px;
    position: relative;
}

.caracteristicas-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    border-radius: 2px;
}

.caracteristicas-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.caracteristica-item {
    background: var(--moderno-white);
    border-radius: var(--moderno-border-radius);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    /* Transición simplificada */
    transition: box-shadow 0.3s ease;
}

.caracteristica-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
}

.caracteristica-item:hover {
    box-shadow: var(--moderno-shadow-hover);
    border-color: var(--moderno-primary);
}

.caracteristica-icono {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.caracteristica-titulo {
    font-weight: 700;
    color: var(--moderno-dark);
    margin-bottom: 18px;
    line-height: 1.3;
}

.caracteristica-descripcion {
    color: #666;
    line-height: 1.6;
}

/* === 5. ESTILOS FAQ - OPTIMIZADO === */
.faq-moderno {
    margin: 40px 0;
    font-family: var(--moderno-font-family);
}

.faq-titulo {
    text-align: center;
    font-weight: 700;
    color: var(--moderno-dark);
    margin-bottom: 55px;
    position: relative;
}

.faq-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    border-radius: 2px;
}

.faq-lista {
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.faq-item {
    background: var(--moderno-white);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--moderno-shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--moderno-shadow);
}

.faq-pregunta {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transition: background 0.3s ease;
    position: relative;
}

.faq-pregunta:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.faq-texto {
    font-weight: 600;
    color: var(--moderno-dark);
    flex: 1;
    margin-right: 15px;
}

.faq-icono {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--moderno-primary), var(--moderno-secondary));
    color: var(--moderno-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-respuesta.abierta {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-contenido {
    color: #666;
    line-height: 1.7;
    padding-top: 18px;
    border-top: 1px solid var(--moderno-gray);
}

.faq-item.activa .faq-icono {
    transform: rotate(180deg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-contenido {
        padding: 20px;
    }
    
    .hero-boton {
        padding: 18px 35px;
    }
    
    .tarjeta-con-imagen.imagen-izquierda,
    .tarjeta-con-imagen.imagen-derecha {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tarjeta-con-imagen.imagen-derecha .tarjeta-imagen {
        order: 1;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .comparacion-table {
        font-size: 0.9rem;
    }
    
    .comparacion-table th,
    .comparacion-table td {
        padding: 15px 10px;
    }
    
    .faq-pregunta {
        padding: 20px;
    }
    
    .faq-texto {
        font-size: 1.4rem;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-zoom-in {
        animation-duration: 0.5s;
    }
}

@media (max-width: 480px) {
    .tarjeta-descripcion {
        padding: 20px;
        margin: 20px 0;
    }
    
    .hero-boton {
        padding: 18px 35px;
    }
    
    .tarjeta-boton {
        padding: 14px 35px;
    }
    
    .caracteristica-item {
        padding: 25px 20px;
    }
    
    .tabla-wrapper {
        margin: 0 -20px;
        border-radius: 0;
    }
}

/* === UTILIDADES SIMPLIFICADAS === */
/* Las animaciones ahora se manejan con CSS puro */

/* Mejora de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para accesibilidad */
.hero-boton:focus,
.tarjeta-boton:focus,
.faq-pregunta:focus {
    outline: 3px solid var(--moderno-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-moderno,
    .caracteristicas-container,
    .tabla-comparativa,
    .faq-moderno {
        break-inside: avoid;
    }
    
    .hero-boton,
    .tarjeta-boton {
        display: none;
    }
} 

/* === VIDEO MULTIPLATAFORMA === */

/* Contenedor principal del video */
.video-multiplataforma {
    margin: 30px 0;
    clear: both;
}

/* Título del video */
.video-multiplataforma-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: inherit;
}

/* Descripción del video */
.video-multiplataforma-descripcion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: inherit;
}

/* Contenedor del iframe/video con aspect ratio responsivo */
.video-multiplataforma-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.video-multiplataforma-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Iframe y video responsivos */
.video-multiplataforma-container iframe,
.video-multiplataforma-container video {
    border: none;
    width: 100%;
    height: 100%;
}

/* Estilos específicos por plataforma */
.video-youtube .video-multiplataforma-container {
    background: #000;
}

.video-vimeo .video-multiplataforma-container {
    background: #1ab7ea;
}

.video-facebook .video-multiplataforma-container {
    background: #4267b2;
}

.video-custom .video-multiplataforma-container {
    background: #333;
}

/* Alineaciones */
.video-multiplataforma.align-left {
    text-align: left;
}

.video-multiplataforma.align-center {
    text-align: center;
}

.video-multiplataforma.align-right {
    text-align: right;
}

/* Diferentes aspect ratios */
.video-multiplataforma.aspect-16-9 .video-multiplataforma-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}

.video-multiplataforma.aspect-4-3 .video-multiplataforma-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 */
}

.video-multiplataforma.aspect-21-9 .video-multiplataforma-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 42.86%; /* 21:9 */
}

.video-multiplataforma.aspect-1-1 .video-multiplataforma-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 */
}

/* Posicionamiento absoluto para aspect ratios automáticos */
.video-multiplataforma.aspect-16-9 iframe,
.video-multiplataforma.aspect-4-3 iframe,
.video-multiplataforma.aspect-21-9 iframe,
.video-multiplataforma.aspect-1-1 iframe,
.video-multiplataforma.aspect-16-9 video,
.video-multiplataforma.aspect-4-3 video,
.video-multiplataforma.aspect-21-9 video,
.video-multiplataforma.aspect-1-1 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estados de placeholder y error para todas las plataformas */
.video-youtube-placeholder,
.video-youtube-error,
.video-vimeo-placeholder,
.video-vimeo-error,
.video-facebook-placeholder,
.video-facebook-error,
.video-custom-placeholder,
.video-custom-error {
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.video-youtube-placeholder,
.video-vimeo-placeholder,
.video-facebook-placeholder,
.video-custom-placeholder {
    background: #e3f2fd;
    border: 2px dashed #2196f3;
    color: #1976d2;
}

.video-youtube-error,
.video-vimeo-error,
.video-facebook-error,
.video-custom-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #d32f2f;
}

/* Preview del editor */
.video-youtube-preview {
    max-width: 100%;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .video-youtube {
        margin: 20px 0;
    }
    
    .video-youtube-titulo {
        font-size: 1.5rem;
    }
    
    .video-youtube-descripcion {
        font-size: 1rem;
    }
    
    /* En móviles, forzar videos a ancho completo si son muy pequeños */
    .video-youtube[style*="width: 30%"],
    .video-youtube[style*="width: 35%"],
    .video-youtube[style*="width: 40%"],
    .video-youtube[style*="width: 45%"],
    .video-youtube[style*="width: 50%"] {
        width: 80% !important;
    }
}

@media (max-width: 480px) {
    .video-youtube-titulo {
        font-size: 1.3rem;
    }
    
    .video-youtube-descripcion {
        font-size: 0.9rem;
    }
    
    /* En móviles muy pequeños, forzar a 100% */
    .video-youtube {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* === IMAGEN + TEXTO === */

/* Contenedor principal del bloque */
.imagen-texto-bloque {
    display: flex;
    align-items: center;
    margin: 40px 0;
    padding: 0;
    box-sizing: border-box;
}

/* Imagen a la izquierda */
.imagen-texto-bloque.imagen-left {
    flex-direction: row;
}

/* Imagen a la derecha */
.imagen-texto-bloque.imagen-right {
    flex-direction: row-reverse;
}

/* Contenedor de la imagen */
.imagen-texto-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ancho controlado por estilos inline (PHP) */
}

/* Imagen del producto */
.imagen-texto-img {
    width: 100%;
    height: auto;
    /* max-height, object-fit controlados por estilos inline (PHP) */
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-texto-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Contenedor del texto */
.imagen-texto-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding: controlado por estilos inline (PHP) */
    /* Ancho controlado por estilos inline (PHP) */
    min-width: 0; /* Previene desbordamiento de texto largo */
}

/* Título del producto */
.imagen-texto-titulo {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Descripción del producto */
.imagen-texto-descripcion {
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Estados iniciales para animaciones - Los elementos animados por separado */
.imagen-texto-imagen,
.imagen-texto-contenido {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estados finales cuando se animan */
.imagen-texto-imagen.animated,
.imagen-texto-contenido.animated {
    opacity: 1;
    transform: none;
}

/* Animaciones específicas para imagen */
.imagen-texto-imagen[data-animacion="slideInLeft"] {
    transform: translateX(-50px);
}

.imagen-texto-imagen[data-animacion="slideInRight"] {
    transform: translateX(50px);
}

.imagen-texto-imagen[data-animacion="slideInUp"] {
    transform: translateY(50px);
}

.imagen-texto-imagen[data-animacion="zoomIn"] {
    transform: scale(0.8);
}

.imagen-texto-imagen[data-animacion="fadeIn"] {
    transform: none;
}

/* Animaciones específicas para texto */
.imagen-texto-contenido[data-animacion="slideInLeft"] {
    transform: translateX(-50px);
}

.imagen-texto-contenido[data-animacion="slideInRight"] {
    transform: translateX(50px);
}

.imagen-texto-contenido[data-animacion="slideInUp"] {
    transform: translateY(50px);
}

.imagen-texto-contenido[data-animacion="typeIn"] {
    transform: translateY(20px);
}

.imagen-texto-contenido[data-animacion="fadeIn"] {
    transform: none;
}

/* Variaciones de object-fit para mejor control */
.imagen-texto-img[style*="object-fit: contain"] {
    background: #f8f9fa;
}

.imagen-texto-img[style*="object-fit: fill"] {
    object-position: center;
}

.imagen-texto-img[style*="object-fit: scale-down"] {
    object-position: center;
}

.imagen-texto-img[style*="object-fit: none"] {
    object-position: center;
}

/* Clases de aspect ratio para contenedores especiales */
.imagen-texto-bloque.aspect-1-1 .imagen-texto-imagen {
    aspect-ratio: 1 / 1;
}

.imagen-texto-bloque.aspect-4-3 .imagen-texto-imagen {
    aspect-ratio: 4 / 3;
}

.imagen-texto-bloque.aspect-16-9 .imagen-texto-imagen {
    aspect-ratio: 16 / 9;
}

.imagen-texto-bloque.aspect-3-2 .imagen-texto-imagen {
    aspect-ratio: 3 / 2;
}

/* Preview del editor */
.imagen-texto-preview {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-texto-bloque {
        flex-direction: column !important;
        gap: 30px !important;
        margin: 30px 0;
    }
    
    .imagen-texto-bloque.imagen-right {
        flex-direction: column !important;
    }
    
    .imagen-texto-imagen,
    .imagen-texto-contenido {
        max-width: 100% !important;
        flex: none !important;
    }
    
    .imagen-texto-img {
        max-height: 300px;
    }
    
    .imagen-texto-titulo {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }
    
    .imagen-texto-descripcion {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .imagen-texto-bloque {
        margin: 20px 0;
        gap: 20px !important;
    }
    
    .imagen-texto-img {
        max-height: 250px;
    }
    
    .imagen-texto-titulo {
        font-size: 1.8rem !important;
        margin-bottom: 12px;
    }
    
    .imagen-texto-descripcion {
        font-size: 1rem !important;
    }
    
    .imagen-texto-contenido {
        padding: 10px 0;
    }
}

/* === TARJETAS DE CONTACTO MODERNAS === */
.tarjetas-contacto-contenedor {
    width: 100%;
    margin:0 auto;
    position: relative;
}

.tarjetas-contacto-contenedor[data-ancho="full"] {
    max-width: none;
}

.tarjetas-contacto-contenedor[data-ancho="limited"] {
    max-width: 1200px;
}

.tarjetas-contacto-grid {
    display: grid;
    width: 100%;
    transition: all 0.3s ease;
}

/* Grid responsive dinámico basado en data-columnas */
.tarjetas-contacto-grid[data-columnas="1"] {
    grid-template-columns: 1fr;
}

.tarjetas-contacto-grid[data-columnas="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.tarjetas-contacto-grid[data-columnas="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.tarjetas-contacto-grid[data-columnas="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.tarjetas-contacto-grid[data-columnas="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.tarjetas-contacto-grid[data-columnas="6"] {
    grid-template-columns: repeat(6, 1fr);
}

/* Tarjeta individual - Layout de producto */
.tarjeta-contacto {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    min-height: 350px;
}

/* Imagen superior de la tarjeta */
.tarjeta-contacto-imagen {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tarjeta-contacto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

/* Placeholder cuando no hay imagen */
.tarjeta-contacto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.tarjeta-contacto-placeholder.tarjeta-placeholder-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.tarjeta-contacto-placeholder.tarjeta-placeholder-telefono {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.tarjeta-contacto-placeholder.tarjeta-placeholder-email {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.tarjeta-contacto-placeholder.tarjeta-placeholder-web {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.tarjeta-contacto-emoji {
    font-size: 60px;
    line-height: 1;
    display: block;
    filter: none;
    color: white;
}

/* Contenido de la tarjeta */
.tarjeta-contacto-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.tarjeta-contacto-titulo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    margin-top: 0;
    line-height: 1.3;
}

.tarjeta-contacto-descripcion {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Footer de la tarjeta */
.tarjeta-contacto-footer {
    margin-top: auto;
    text-align: center;
}

.tarjeta-contacto-enlace {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid #3498db;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tarjeta-contacto-enlace::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #3498db;
    transition: all 0.4s ease;
    z-index: -1;
}

.tarjeta-contacto-enlace:hover::before {
    left: 0;
}

.tarjeta-contacto-enlace:hover {
    color: white !important;
    transform: scale(1.05);
    text-decoration: none;
}

/* Colores específicos por tipo de contacto */
.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-enlace {
    color: #e74c3c;
    border-color: #e74c3c;
}

.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-enlace::before {
    background: #e74c3c;
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-enlace {
    color: #25d366;
    border-color: #25d366;
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-enlace::before {
    background: #25d366;
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-enlace {
    color: #f39c12;
    border-color: #f39c12;
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-enlace::before {
    background: #f39c12;
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-enlace {
    color: #3498db;
    border-color: #3498db;
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-enlace::before {
    background: #3498db;
}

/* Efectos hover */
.tarjeta-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transition: all 0.6s;
}

.tarjeta-contacto:hover::before {
    left: 100%;
}

.tarjeta-contacto:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.tarjeta-contacto:hover .tarjeta-contacto-imagen img {
    transform: scale(1.1);
}

.tarjeta-contacto:hover .tarjeta-contacto-placeholder {
    transform: scale(1.05);
}

.tarjeta-contacto:hover .tarjeta-contacto-emoji {
    transform: rotate(15deg) scale(1.1);
}

/* Estados iniciales para animaciones */
.tarjetas-contacto-contenedor .tarjeta-contacto {
    opacity: 0;
    transform: translateY(30px);
}

.tarjetas-contacto-contenedor.animated .tarjeta-contacto {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Delays escalonados para animación */
.tarjeta-contacto[data-index="0"] { transition-delay: 0.1s; }
.tarjeta-contacto[data-index="1"] { transition-delay: 0.2s; }
.tarjeta-contacto[data-index="2"] { transition-delay: 0.3s; }
.tarjeta-contacto[data-index="3"] { transition-delay: 0.4s; }
.tarjeta-contacto[data-index="4"] { transition-delay: 0.5s; }
.tarjeta-contacto[data-index="5"] { transition-delay: 0.6s; }

/* Efecto shine animado */
.tarjeta-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transition: all 0.6s;
    z-index: 1;
}

.tarjeta-contacto:hover::before {
    left: 100%;
}

/* Hover effects */
.tarjeta-contacto:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Icono de la tarjeta */
.tarjeta-contacto-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.tarjeta-contacto:hover .tarjeta-contacto-icono {
    transform: rotate(360deg) scale(1.1);
}

.tarjeta-contacto-icono img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* === RESPONSIVE PARA TARJETAS DE CONTACTO === */
@media (max-width: 768px) {
    .tarjetas-contacto-contenedor {
        margin: 1rem auto;
    }

    .tarjetas-contacto-contenedor[data-ancho="full"] {
        margin-left: 10px;
        margin-right: 10px;
    }

    .tarjetas-contacto-grid[data-columnas="2"],
    .tarjetas-contacto-grid[data-columnas="3"],
    .tarjetas-contacto-grid[data-columnas="4"],
    .tarjetas-contacto-grid[data-columnas="5"],
    .tarjetas-contacto-grid[data-columnas="6"] {
        grid-template-columns: 1fr;
    }

    .tarjeta-contacto {
        min-height: 300px;
    }

    .tarjeta-contacto-imagen {
        height: 150px;
    }

    .tarjeta-contacto-emoji {
        font-size: 50px;
    }

    .tarjeta-contacto-titulo {
        font-size: 1.2rem !important;
    }

    .tarjeta-contacto-descripcion {
        font-size: 0.9rem !important;
    }

    .tarjeta-contacto-enlace {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .tarjetas-contacto-grid[data-columnas="3"],
    .tarjetas-contacto-grid[data-columnas="4"],
    .tarjetas-contacto-grid[data-columnas="5"],
    .tarjetas-contacto-grid[data-columnas="6"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarjeta-contacto {
        min-height: 320px;
    }

    .tarjeta-contacto-imagen {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .tarjetas-contacto-contenedor {
        margin: 0.5rem auto;
    }

    .tarjetas-contacto-contenedor[data-ancho="full"] {
        margin-left: 5px;
        margin-right: 5px;
    }

    .tarjeta-contacto {
        min-height: 280px;
    }

    .tarjeta-contacto-imagen {
        height: 120px;
    }

    .tarjeta-contacto-emoji {
        font-size: 40px;
    }

    .tarjeta-contacto-titulo {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem;
    }

    .tarjeta-contacto-descripcion {
        font-size: 0.85rem !important;
        margin-bottom: 1rem;
    }

    .tarjeta-contacto-enlace {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* === FIXES ESPECÍFICOS PARA HOVER Y ICONOS === */

/* Asegurar que el texto sea blanco en hover para todos los tipos */
.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-enlace:hover,
.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-enlace:hover,
.tarjeta-contacto.tarjeta-email .tarjeta-contacto-enlace:hover,
.tarjeta-contacto.tarjeta-web .tarjeta-contacto-enlace:hover {
    color: white !important;
}

/* Asegurar que los emoji sean visibles */
.tarjeta-contacto-emoji {
    font-size: 40px !important;
    line-height: 1 !important;
    display: block !important;
    filter: none !important;
    color: white !important;
}

/* Responsive para emoji */
@media (max-width: 768px) {
    .tarjeta-contacto-emoji {
        font-size: 30px !important;
    }
}

@media (max-width: 480px) {
    .tarjeta-contacto-emoji {
        font-size: 25px !important;
    }
}
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Contenido de la tarjeta */
.tarjeta-contacto-contenido {
    flex-grow: 1;
    z-index: 2;
    position: relative;
}

.tarjeta-contacto-titulo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tarjeta-contacto-descripcion {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer con enlace */
.tarjeta-contacto-footer {
    z-index: 2;
    position: relative;
}

.tarjeta-contacto-enlace {
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.tarjeta-contacto-enlace::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
}

.tarjeta-contacto-enlace:hover::before {
    left: 0;
}

.tarjeta-contacto-enlace:hover {
    color: white;
    transform: scale(1.05);
    text-decoration: none;
}

/* Colores específicos por tipo de contacto */
.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-enlace {
    color: #e74c3c;
    border-color: #e74c3c;
}

.tarjeta-contacto.tarjeta-telefono .tarjeta-contacto-enlace::before {
    background: #e74c3c;
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-enlace {
    color: #25d366;
    border-color: #25d366;
}

.tarjeta-contacto.tarjeta-whatsapp .tarjeta-contacto-enlace::before {
    background: #25d366;
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-enlace {
    color: #f39c12;
    border-color: #f39c12;
}

.tarjeta-contacto.tarjeta-email .tarjeta-contacto-enlace::before {
    background: #f39c12;
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-icono {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-enlace {
    color: #3498db;
    border-color: #3498db;
}

.tarjeta-contacto.tarjeta-web .tarjeta-contacto-enlace::before {
    background: #3498db;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .tarjetas-contacto-grid[data-columnas="6"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tarjetas-contacto-grid[data-columnas="5"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .tarjetas-contacto-grid[data-columnas="4"],
    .tarjetas-contacto-grid[data-columnas="5"],
    .tarjetas-contacto-grid[data-columnas="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tarjetas-contacto-grid[data-columnas="3"],
    .tarjetas-contacto-grid[data-columnas="4"],
    .tarjetas-contacto-grid[data-columnas="5"],
    .tarjetas-contacto-grid[data-columnas="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tarjeta-contacto {
        padding: 1rem;
    }
    
    .tarjeta-contacto-icono {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .tarjeta-contacto-icono img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .tarjetas-contacto-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tarjeta-contacto {
        margin-bottom: 1rem;
    }
}

 