* {
    font-family: 'Montserrat', sans-serif !important;
}

/* Títulos con letter-spacing 0.75 */
h1,
h2,
h6,
.kreat-section-title,
.timeline-title h2,
.s-premium-card-front h3,
.s-premium-back-inner h3,
.piasa-title,
.survey-box h3 {
    letter-spacing: 0.75rem !important;
    font-weight: 600;
}

/* Subtítulos con letter-spacing más sutil */
.section-subtitle,
.kreat-subtitle,
.timeline-title p,
.s-premium-back-inner p {
    letter-spacing: 0.3px;
    font-weight: 400;
}

/* Ajustes específicos para títulos de servicios */
.s-premium-card-front h3 {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Títulos de la línea de tiempo */
.timeline-content h3 {
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Títulos del panel de valores */
.kreat-val-label-line {
    letter-spacing: 1px;
    font-weight: 600;
}

/* Texto de descripción en panel de valores */
#valor-descripcion-texto {
    letter-spacing: 0.2px;
    line-height: 1.8;
}

/* ============================================
   CORRECCIÓN PARA ELEMENTOS ESPECÍFICOS
============================================ */

/* Asegurar que los SVG no hereden la fuente */
svg {
    font-family: initial !important;
}

/* Botones con letter-spacing adecuado */
button,
.btn,
.s-premium-cta-btn,
.s-premium-secondary-btn {
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Números de paso en línea de tiempo */
.timeline-number {
    letter-spacing: normal;
    font-weight: 800;
}

/* Badges y etiquetas */
.piasa-badge,
.keyword-badge,
.pias-status {
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE - AJUSTES DE LETTER-SPACING
============================================ */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,

    .kreat-section-title {
        letter-spacing: 0.5px !important;
        /* Un poco menos en móvil */
    }

    .s-premium-card-front h3 {
        letter-spacing: 0.8px;
    }

    .kreat-val-label-line {
        letter-spacing: 0.8px;
    }
}

@media (max-width: 480px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .kreat-section-title {
        letter-spacing: 0.3px !important;
    }
}

.s-premium-section {
    padding: 30px 20px;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
}

.s-premium-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* GRID ESPECÍFICO */
.s-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 400px));
    /* Fijo 2 columnas */
    gap: 30px;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    max-width: 900px;
    /* Limita el ancho máximo */
}

/* CARD CON PREFIJO PARA EVITAR MEZCLAS */
.s-premium-card {
    perspective: 1200px;
    height: 400px;
    /* Altura fija en desktop */
    cursor: pointer;
}

.s-premium-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(.4, .2, .2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* ✅ HOVER SOLO EN DESKTOP */
@media (hover: hover) and (pointer: fine) {
    .s-premium-card:hover .s-premium-card-inner {
        transform: rotateY(180deg);
    }

    .s-premium-card:hover .s-premium-line {
        width: 100px;
    }

    .s-premium-card:hover .s-premium-back-inner {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ✅ CLICK (móvil + desktop) */
.s-premium-card-inner.rotate {
    transform: rotateY(180deg);
}

.s-premium-card-inner.rotate .s-premium-back-inner {
    transform: translateY(0);
    opacity: 1;
}

/* CARAS FRONT/BACK */
.s-premium-card-front,
.s-premium-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    /* Mantenemos hidden en desktop */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* FRONTAL */
.s-premium-card-front {
    background-size: cover;
    background-position: center;
    color: white;
}

.s-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 70, 63, 0.95) 0%, rgba(91, 103, 93, 0.2) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.s-premium-content-front {
    position: relative;
    z-index: 2;
}

.s-premium-number {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.2;
    display: block;
    line-height: 1;
}

.s-premium-card-front h3 {
    font-size: 1.6rem;
    margin: 10px 0;
    font-weight: 700;
}

.s-premium-line {
    width: 50px;
    height: 4px;
    background: #748478;
    transition: width 0.4s ease;
}

/* TRASERA */
.s-premium-card-back {
    background: #ffffff;
    color: #5B675D;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 20px;
    /* Reducido ligeramente para que quepa */
    overflow: hidden;
    position: relative;
    border: 1px solid #A2A9A0;
    box-shadow: 0 30px 55px rgba(116, 132, 120, 0.28), inset 0 -10px 22px rgba(0, 0, 0, 0.16);
}

/* Formas geométricas */
.s-premium-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #3D463F 0%, #3D463F 100%);
    clip-path: polygon(0 0, 100% 0, 40% 100%, 0% 100%);
    opacity: 0.15;
    z-index: 0;
}

.s-premium-card-back::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: #A2A9A0;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

/* CONTENIDO TRASERO */
.s-premium-back-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Icono y Texto */
.s-premium-back-icon {
    width: 45px;
    margin: 0 auto 10px;
    /* Reducido margen */
    color: #323833;
}

.s-premium-card-back p {
    font-size: 0.85rem;
    /* Reducido ligeramente */
    line-height: 1.4;
    /* Reducido para ahorrar espacio */
    margin-bottom: 15px;
    /* Reducido */
    color: #A2A9A0;
    font-weight: 400;
    max-width: 100%;
}

.s-premium-back-inner p {
    flex-grow: 0;
    /* Cambiado de 1 a 0 para que no empuje */
    margin-bottom: 15px;
}

/* Grupo de botones */
.s-premium-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
    width: 100%;
}

/* BOTÓN CTA WHATSAPP */
.s-premium-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido de 42px */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    background: linear-gradient(135deg, #748478, #5B675D);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    /* Reducido */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(116, 132, 120, 0.3);
    white-space: nowrap;
}

.s-premium-cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(116, 132, 120, 0.4);
}

/* Botón secundario */
.s-premium-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido de 42px */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    background: transparent;
    border: 2px solid #3D463F;
    color: #3D463F;
    font-weight: 600;
    font-size: 0.75rem;
    /* Reducido */
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.s-premium-secondary-btn:hover {
    background: #3D463F;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(61, 70, 63, 0.25);
}

.s-premium-btn-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    font-size: 0.75rem;
    /* Reducido */
    font-weight: 600;
    white-space: nowrap;
}

/* anti blur sin alterar el flip */
.s-premium-card-inner {
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.s-premium-card-front,
.s-premium-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* 🔥 FIX GLOBAL ANTI-BLUR */
.s-premium-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.s-premium-card-front,
.s-premium-card-back {
    transform-origin: center;
}