.coverflow-card .coverflow-avatar,
.coverflow-card .coverflow-name,
.coverflow-card .coverflow-title {
    display: none !important;
}
/* Coverflow 3D Carousel */
.coverflow-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin: 0 auto;
    flex: 1 1 0%;
}
.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}
.coverflow-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    max-width: 340px;
    min-width: 220px;
    height: 100%;
    min-height: 180px;
    max-height: 340px;
    background: linear-gradient(180deg,#DC2626 0%, #991B1B 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 28px 0 rgba(220,38,38,0.10), 0 2px 10px 0 rgba(0,0,0,0.06);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0) scale(0.7);
    transition: transform 0.7s cubic-bezier(.4,2,.3,1), opacity 0.5s;
    z-index: 1;
}
.coverflow-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: translate(-50%, 0) scale(1.08) rotateY(0deg);
    box-shadow: 0 12px 32px 0 rgba(220,38,38,0.18), 0 4px 18px 0 rgba(0,0,0,0.10);
}
.coverflow-card.left {
    opacity: 0.7;
    z-index: 2;
    transform: translate(-120%, 0) scale(0.92) rotateY(35deg);
}
.coverflow-card.right {
    opacity: 0.7;
    z-index: 2;
    transform: translate(20%, 0) scale(0.92) rotateY(-35deg);
}
.coverflow-card.hide {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, 0) scale(0.7) rotateY(0deg);
}
.coverflow-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid #DC2626;
}
.coverflow-name {
    font-weight: 700;
    color: #DC2626;
    font-size: 1.08rem;
    margin-bottom: 0.1rem;
}
.coverflow-title {
    font-size: 0.98rem;
    color: #991B1B;
    margin-bottom: 0.5rem;
}
.coverflow-quote {
    font-size: 0.98rem;
    color: #fff;
    font-style: italic;
}

/* Asegurar que cualquier texto con utilidades que forcé a rojo en HTML se muestre blanco dentro de la card */
.coverflow-card .text-accent-dark {
    color: rgba(255,255,255,0.95) !important;
}
.perfil-frases-btn.coverflow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    color: #DC2626;
    border: none;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.perfil-frases-btn.coverflow-btn.left { left: -18px; }
.perfil-frases-btn.coverflow-btn.right { right: -18px; }
.perfil-frases-btn.coverflow-btn:hover {
    background: #FEE2E2;
    color: #991B1B;
    transform: scale(1.08);
}
.coverflow-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 12;
}
.coverflow-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FEE2E2;
    border: 2px solid #DC2626;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    padding: 0;
}
.coverflow-dots button.active {
    background: #DC2626;
    border-color: #991B1B;
}
/* Carrusel tipo stack de frases en sección Perfil */
.perfil-frases-carousel-container {
    min-height: 220px;
}
#perfil-frases-carousel {
    position: relative;
    width: 340px;
    height: 220px;
    perspective: 900px;
}
.frase-card3d {
    transition: transform 0.7s cubic-bezier(.4,2,.3,1), opacity 0.5s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 28px 0 rgba(220,38,38,0.10), 0 2px 10px 0 rgba(0,0,0,0.06);
    will-change: transform, opacity;
}
.frase-card3d.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: rotateY(0deg) scale(1.04) translateZ(0px);
}
.frase-card3d.prev {
    opacity: 0.7;
    z-index: 2;
    transform: rotateY(-60deg) scale(0.92) translateX(-60px) translateZ(-60px);
}
.frase-card3d.next {
    opacity: 0.7;
    z-index: 2;
    transform: rotateY(60deg) scale(0.92) translateX(60px) translateZ(-60px);
}
.frase-card3d.hide {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: rotateY(0deg) scale(0.9) translateZ(-120px);
}
.perfil-frases-btn {
    background: #fff;
    color: #DC2626;
    border: none;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 20;
}
.perfil-frases-btn:hover {
    background: #FEE2E2;
    color: #991B1B;
    transform: scale(1.08);
}
.perfil-frases-carousel-controls-stack {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
}
.perfil-frases-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.2rem;
    pointer-events: auto;
    z-index: 11;
}
.perfil-frases-carousel-controls button {
    background: #fff;
    color: #DC2626;
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.perfil-frases-carousel-controls button:hover {
    background: #FEE2E2;
    color: #991B1B;
    transform: scale(1.08);
}
.perfil-frases-carousel-indicator {
    margin-top: 0.1rem;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Ajustes específicos para el carrusel de frases en la sección Perfil */
/* Sitúa las tarjetas centradas verticalmente dentro del recuadro, centra el track y coloca flechas y puntos correctamente */
.perfil-frases-carousel-container {
    display: flex;
    align-items: center; /* centra verticalmente el carrusel dentro de la caja blanca */
    justify-content: center;
    width: 100%;
    padding-bottom: 16px; /* espacio para dots y sombra */
    min-height: 220px;
}
#perfil-frases-carousel {
    position: relative;
    width: 100%;
    max-width: 520px; /* ancho máximo cómodo */
    height: 220px; /* altura visual del area del carrusel */
    perspective: 900px;
    display: flex; /* usar flexbox para centrar y controlar contenido */
    align-items: center;
    justify-content: center;
}
.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.coverflow-card {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.88) !important;
    width: 78% !important;
    max-width: 420px !important;
    min-width: 220px !important;
    padding: 1.2rem 1.4rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    background: linear-gradient(180deg,#DC2626 0%, #991B1B 100%) !important;
    color: #fff !important;
}
.coverflow-card.active {
    transform: translate(-50%, -50%) scale(1.02) !important;
    z-index: 4 !important;
}
.coverflow-card.left {
    transform: translate(calc(-50% - 90px), -50%) rotateY(25deg) scale(0.9) !important;
    z-index: 3 !important;
}
.coverflow-card.right {
    transform: translate(calc(-50% + 90px), -50%) rotateY(-25deg) scale(0.9) !important;
    z-index: 3 !important;
}
.coverflow-card.hide {
    transform: translate(-50%, -50%) scale(0.8) translateZ(-80px) !important;
    opacity: 0 !important;
}
/* Flechas circulares blancas, centradas verticalmente */
#perfil-frases-carousel .perfil-frases-btn.coverflow-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #DC2626 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 6 !important;
}
#perfil-frases-carousel .perfil-frases-btn.coverflow-btn.left { left: 6px !important; }
#perfil-frases-carousel .perfil-frases-btn.coverflow-btn.right { right: 6px !important; }
.coverflow-dots {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -28px !important; /* posiciona los puntos debajo de las cards */
    display: flex !important;
    gap: 8px !important;
    z-index: 7 !important;
}
.coverflow-dots button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 2px solid #DC2626 !important;
}
.coverflow-dots button.active {
    background: #DC2626 !important;
    border-color: #991B1B !important;
}
/* Ajustes responsivos para pantallas pequeñas */
@media (max-width: 640px) {
    #perfil-frases-carousel { max-width: 380px; height: 200px; }
    .coverflow-card { width: 88% !important; }
    #perfil-frases-carousel .perfil-frases-btn.coverflow-btn { width: 36px !important; height: 36px !important; }
    .coverflow-dots { bottom: -22px !important; }
}

/* Gallery carousel styles for 'Momentos Clave' */
.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.gallery-viewport {
    overflow: hidden;
    width: 100%;
    /* Make sure absolutely-positioned slides and nav live inside this box */
    position: relative;
    height: 360px; /* explicit height so absolute-positioned slides are visible */
}
.gallery-track {
    position: relative;
    width: 100%;
    height: 360px;
    perspective: 1200px;
    will-change: transform;
}
.gallery-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) translateZ(-120px) scale(0.86);
    transition: transform 640ms cubic-bezier(.22,.9,.2,1), opacity 360ms ease;
    width: 78%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 10px;
    display: block;
    opacity: 0;
}
.gallery-slide .slide-content{
    display:flex;
    flex-direction:column;
    gap:8px;
    position: relative; /* needed so caption can be absolutely positioned inside the slide */
}
.gallery-slide img{
    border-radius: 0.75rem;
    display:block;
    width:100%;
    height:260px;
    object-fit:cover;
}
.gallery-slide figcaption{
    /* Stronger, more opaque overlay so white text reads clearly */
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    /* Use a dense semi-opaque dark backdrop and slight blur for contrast */
    background: rgba(0,0,0,0.64);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff; /* force white text */
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.98rem;
    line-height: 1.2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.36);
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.gallery-date{ display:block; margin-top:6px; color: rgba(255,255,255,0.92); font-size:0.86rem; }
.gallery-slide.active{ opacity:1; transform: translate(-50%,-50%) translateZ(0px) scale(1.04); z-index: 4; transform-origin: center center; }

/* Cilindrical perspective for side slides */
.gallery-slide.left,
.gallery-slide.right{
    opacity: 0.95;
    z-index: 3;
    transform-origin: center center;
}
.gallery-slide.left{
    /* rotate around right edge to mimic wrapping around a cylinder (slightly reduced offset for partial visibility) */
    transform-origin: calc(50% + 120px) center;
    transform: translate(calc(-50% - 200px), -50%) rotateY(40deg) translateZ(-60px) scaleX(0.94) scaleY(0.96);
}
.gallery-slide.right{
    /* rotate around left edge to mimic wrapping around a cylinder (slightly reduced offset for partial visibility) */
    transform-origin: calc(50% - 120px) center;
    transform: translate(calc(-50% + 200px), -50%) rotateY(-40deg) translateZ(-60px) scaleX(0.94) scaleY(0.96);
}
.gallery-slide.hide{ opacity:0; transform: translate(-50%,-50%) translateZ(-240px) scale(0.82); z-index:1; }

/* Shading overlay to simulate cylindrical curvature */
.gallery-slide::after{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 420ms ease;
}
.gallery-slide.left::after{
    background: linear-gradient(90deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.06) 40%, rgba(0,0,0,0) 60%);
    opacity: 1;
}
.gallery-slide.right::after{
    background: linear-gradient(270deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.06) 40%, rgba(0,0,0,0) 60%);
    opacity: 1;
}
.gallery-btn {
    background: #fff;
    color: #DC2626;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    position: absolute; /* position inside the viewport */
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
}
.gallery-btn:hover{ background:#FEE2E2; color:#991B1B; transform:scale(1.04); }
.gallery-btn:focus{ outline: 3px solid rgba(220,38,38,0.14); }
.gallery-btn.prev{ left: 12px; }
.gallery-btn.next{ right: 12px; }
.gallery-dots{ display:flex; gap:8px; justify-content:center; margin-top:12px; }
.gallery-dots button{ width:10px; height:10px; border-radius:999px; background:#fff; border:2px solid #F3F4F6; cursor:pointer;}
.gallery-dots button.active{ background:#DC2626; border-color:#991B1B; }

/* Responsive adjustments for the 3D coverflow */
@media (max-width: 640px){
    .gallery-track{ height: 300px; }
    .gallery-slide{ width: 86%; }
    .gallery-slide.left{ transform: translate(calc(-50% - 120px), -50%) rotateY(18deg) translateZ(-60px) scale(0.9); }
    .gallery-slide.right{ transform: translate(calc(-50% + 120px), -50%) rotateY(-18deg) translateZ(-60px) scale(0.9); }
    .gallery-slide img{ height: 200px; }
}
@media (min-width: 768px){
    .gallery-slide{ width: 68%; }
    .gallery-slide.left{ transform: translate(calc(-50% - 260px), -50%) rotateY(38deg) translateZ(-80px) scale(0.92); }
    .gallery-slide.right{ transform: translate(calc(-50% + 260px), -50%) rotateY(-38deg) translateZ(-80px) scale(0.92); }
    .gallery-slide img{ height: 280px; }
}
@media (min-width: 1200px){
    .gallery-slide{ width: 58%; max-width:740px; }
    .gallery-slide.left{ transform: translate(calc(-50% - 340px), -50%) rotateY(42deg) translateZ(-92px) scale(0.9); }
    .gallery-slide.right{ transform: translate(calc(-50% + 340px), -50%) rotateY(-42deg) translateZ(-92px) scale(0.9); }
    .gallery-slide img{ height: 320px; }
}

/* Active glow and hover roll */
.gallery-slide.active{ box-shadow: 0 30px 60px rgba(17,24,39,0.18), 0 8px 28px rgba(220,38,38,0.12); }
.gallery-slide.active:hover{ transform: translate(-50%,-50%) translateZ(8px) scale(1.06) rotateX(4deg); }

/* Place gallery-dots and buttons below the image+date */
.gallery-carousel{ flex-direction:column; gap:8px; }
.gallery-controls-row{ display:flex; align-items:center; justify-content:center; gap:12px; width:100%; }
.gallery-btn{ order:0; }
.gallery-dots{ order:1; margin-top:6px; }
/* --- Hero: forzar proporción 16:9 cuando la anchura <= 1150px --- */
@media (max-width: 1150px) {
    /* Anular h-screen y hacer que el hero use una caja con padding-top 56.25% (16:9) */
    #inicio {
        height: auto !important;
        position: relative !important;
        display: block !important;
        padding: 0 !important;
    }
    /* Pseudo-elemento crea la altura necesaria para 16:9 */
    #inicio::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 16:9 */
    }
    /* Coloca el contenido principal (texto y botones) encima y centrado */
    #inicio > .max-w-6xl {
        position: absolute !important;
        inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        padding: 0 1rem !important;
    }
    /* Asegurar que el fondo absoluto del hero cubra la zona creada por ::before */
    #inicio .absolute {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}
/* Ocultar barra de desplazamiento horizontal en la sección "Nuestros Logros en Cifras" */
.hitos-grid {
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none; /* Firefox */
}
.hitos-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}
/* Cards con forma de hélice para la sección de las 5 hélices */
.helice-card {
    position: relative;
    /* Un radio uniforme y contenido recortado para evitar elementos sobresaliendo */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 28px 0 rgba(220,38,38,0.10), 0 2px 10px 0 rgba(0,0,0,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Permitir que las tarjetas sean responsivas dentro del contenedor flex */
    flex: 1 1 300px;
    max-width: 340px;
    background: #fff;
}

/* Mejorar la cabecera de la card para centrar el icono y el título */
.flip-card-front {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 0 24px; /* Solo padding horizontal */
    background: linear-gradient(180deg, #fff 80%, #f8fafc 100%);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    
}

/* Eliminar círculo y sombra del icono en las cards de 5 hélices */
.flip-card-front .text-primary-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 18px;
    border: none;
}

/* Asegurar que el icono no tenga fondo ni borde */
.flip-card-front i[data-lucide] {
    background: none;
    border: none;
    box-shadow: none;
}

/* Quitar cualquier círculo o fondo en el texto debajo del icono */
.flip-card-front h3 {
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

/* Hacer que la parte trasera de la carta ocupe todo el alto y ancho */
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 2;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.7s cubic-bezier(.4,2,.3,1);
    transform-style: preserve-3d;
}

/* Forzar igual altura en todas las cards de hélice dentro del grid */
.helices-grid {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
}
.helice-card:hover {
    /* Suavizar hover: ligero escalado sin rotación para mantener consistencia visual */
    transform: scale(1.04);
    box-shadow: 0 14px 40px 0 rgba(220,38,38,0.16), 0 4px 18px 0 rgba(0,0,0,0.08);
}


.helice-card .helice-content {
    position: absolute;
    z-index: 1;
}
/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Estilo base para el scroll suave */
html {
    scroll-behavior: smooth;
}

/* Clase para ocultar elementos inicialmente y luego animarlos */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase aplicada cuando el elemento está visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto Parallax sutil en el texto del héroe */
#hero-text {
    transition: transform 0.1s ease-out;
}

/* Estilo para el botón de navegación móvil (Mejora: Animación) */

/* Estilo para el texto en la sección Hero */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Botón primario: fondo rojo y texto blanco (usado en formularios) */
.btn-primary {
    background-color: #DC2626; /* rojo principal */
    color: #ffffff !important; /* forzar texto blanco si hay otra regla */
    border: none;
    cursor: pointer;
    transition: background-color 200ms ease, transform 160ms ease, box-shadow 200ms ease;
}
.btn-primary:hover {
    background-color: #b91c1c; /* rojo más oscuro en hover */
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:focus {
    outline: 3px solid rgba(220,38,38,0.18);
    outline-offset: 3px;
}

/* Barra flotante de redes sociales (derecha) */
#social-float {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    z-index: 60;
    align-items: center;
    /* Por defecto: fondo rojo semitransparente cuando no está sobre un bloque rojo */
    background: rgba(220,38,38,0.12);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(220,38,38,0.12);
    transition: background 220ms ease, border-color 220ms ease, color 200ms ease;
}

.sf-item{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.03);
    color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.sf-item i{ stroke: currentColor; }

.sf-item:hover{
    transform: translateX(-6px) scale(1.05);
    background: rgba(220,38,38,0.98);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(220,38,38,0.18);
}

/* Variante: cuando la barra está sobre un área roja, usar fondo blanco semitransparente */
#social-float.over-red {
    background: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.6);
}
#social-float.over-red .sf-item{
    background: rgba(255,255,255,0.9);
    color: #DC2626;
    border: 1px solid rgba(220,38,38,0.08);
}
#social-float.over-red .sf-item:hover{
    background: rgba(220,38,38,0.98);
    color: #fff;
}

/* Si prefieres ocultarla en pantallas pequeñas */
@media (max-width: 767px){
    #social-float{ display:none !important; }
}

/* Versión compacta cuando la pantalla es muy alta y estrecha */
@media (min-height: 700px) and (max-width: 1100px){
    #social-float{ right: 12px; }
    .sf-item{ width:40px;height:40px; }
}

/* Tooltips para los iconos sociales usando data-label */
.sf-item{ position: relative; }
.sf-item::after{
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.sf-item:focus::after, .sf-item:hover::after{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Asegurar accesibilidad: mostrar tooltip también cuando el enlace está enfocado por teclado */
.sf-item:focus{ outline: none; }
.sf-item:focus-visible{ box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
/* Box-sizing para todos los elementos de la sección 5 hélices */
#propuestas *, #propuestas *::before, #propuestas *::after {
    box-sizing: border-box;
}

/* --- FLIP CARD: Solo mostrar la cara trasera al hacer click o tocar, no solo hover --- */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
}
.flip-card-inner {
    transition: transform 0.7s cubic-bezier(.4,2,.3,1);
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
}
.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}
.flip-card-front {
    z-index: 2;
}
.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}
