/* ===================================================
   DALE FORMA — style.css
   Paleta: Rojo #D7263D | Amarillo #F4A62A | Verde #4CAF50 | Turquesa #67C9C4 | Crema #F4EFE6
=================================================== */


/* =====================================================
   RESET & VARIABLES
===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rojo:    #D12839;
    --amarillo:#F6A02D;
    --verde:   #4CAF50;
    --turquesa:#87CEE9;
    --crema:   #F4EFE6;
    --oscuro:  #1A1A2E;
    --gris:    #6B6B7B;
    --radio:   16px;
    --sombra:  0 20px 60px rgba(0,0,0,.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--crema);
    font-family: 'Inter', sans-serif;
    color: var(--oscuro);
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}


/* =====================================================
   UTILIDADES BASE
===================================================== */
.noise {
    position: fixed;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
    opacity: .12;
    pointer-events: none;
    z-index: 0;
}

.seccion {
    position: relative;
    padding: 100px 20px;
    z-index: 1;
}

.seccion-header {
    text-align: center;
    margin-bottom: 70px;
}

.seccion-header.light h2,
.seccion-header.light .eyebrow,
.seccion-header.light .seccion-desc {
    color: white;
}

.eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 12px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}

.seccion-desc {
    font-size: 1.1rem;
    color: var(--gris);
    max-width: 520px;
    margin: 0 auto;
}


/* =====================================================
   REVEAL ON SCROLL
===================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   HERO
===================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    background: var(--crema);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-wrap {
    display: inline-block;
}

.logo {
    width: 560px;
    max-width: 88vw;
    height: auto;
    transition: transform .15s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
}

.hero-sub {
    margin-top: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(.95rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--gris);
    letter-spacing: .02em;
}

/* Botones de navegación con formas */
.menu-formas {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-end;
    margin-top: 44px;
    flex-wrap: wrap;
}

.shape-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease;
    cursor: pointer;
}

.shape-btn span {
    position: absolute;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-align: center;
    pointer-events: none;
    line-height: 1.3;
}

.triangle-btn {
    width: 140px;
    height: 120px;
    background: var(--rojo);
    clip-path: path('M 73.02 5.18 Q 70.00 0.00 66.98 5.18 L 3.02 114.82 Q 0.00 120.00 6.00 120.00 L 134.00 120.00 Q 140.00 120.00 136.98 114.82 Z');
    filter: drop-shadow(0 12px 20px rgba(215,38,61,.4));
}
.triangle-btn span { top: 72px; }

.rectangle-btn {
    width: 160px;
    height: 68px;
    background: var(--turquesa);
    border-radius: 18px;
    filter: drop-shadow(0 12px 20px rgba(103,201,196,.4));
}
.rectangle-btn span {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.semicircle-btn {
    width: 160px;
    height: 80px;
    background: var(--amarillo);
    border-radius: 160px 160px 0 0;
    filter: drop-shadow(0 12px 20px rgba(244,166,42,.4));
}
.semicircle-btn span {
    color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.shape-btn:hover {
    transform: translateY(-14px) scale(1.1) rotate(4deg);
    filter: brightness(1.1) drop-shadow(0 20px 30px rgba(0,0,0,.25));
}

/* Formas flotantes parallax */
.floating {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}

.tri-rojo {
    width: 72px; height: 72px;
    background: var(--rojo);
    clip-path: path('M 38.68 5.37 Q 36.00 0.00 33.32 5.37 L 2.68 66.63 Q 0.00 72.00 6.00 72.00 L 66.00 72.00 Q 72.00 72.00 69.32 66.63 Z');
    opacity: .85;
}
.tri-rect-rojo {
    width: 72px; height: 60px;
    background: var(--rojo);
    clip-path: path('M 6.00 60.00 Q 0.00 60.00 0.00 54.00 L 0.00 6.00 Q 0.00 0.00 4.61 3.84 L 67.39 56.16 Q 72.00 60.00 66.00 60.00 Z');
    opacity: .85;
}
.circle-amarillo {
    width: 65px; height: 65px;
    background: var(--amarillo);
    border-radius: 50%;
    opacity: .85;
}
.rect-largo-verde {
    width: 100px; height: 32px;
    background: var(--verde);
    border-radius: 6px;
    opacity: .85;
}
.cuad-turquesa {
    width: 52px; height: 52px;
    background: var(--turquesa);
    border-radius: 8px;
    opacity: .85;
}
.semi-amarillo {
    width: 76px; height: 38px;
    background: var(--amarillo);
    border-radius: 76px 76px 0 0;
    opacity: .85;
}

.floating.small { transform: scale(.6); }

.layer1  { top: 10%; left: 7%; }
.layer2  { top: 20%; right: 12%; }
.layer3  { top: 6%;  left: 38%; }
.layer4  { top: 28%; right: 28%; }
.layer5  { bottom: 15%; left: 9%; }
.layer6  { bottom: 8%;  right: 12%; }
.layer7  { bottom: 14%; right: 32%; }
.layer8  { bottom: 28%; left: 22%; }
.layer9  { top: 55%;   left: 3%; }
.layer10 { bottom: 35%; right: 5%; }

@keyframes floatShape {
    0%,100% { translate: 0 0; }
    50%      { translate: 0 -22px; }
}
.layer1  { animation: floatShape 6s  ease-in-out infinite; }
.layer2  { animation: floatShape 8s  ease-in-out infinite; }
.layer3  { animation: floatShape 7s  ease-in-out infinite .5s; }
.layer4  { animation: floatShape 9s  ease-in-out infinite .3s; }
.layer5  { animation: floatShape 5s  ease-in-out infinite .8s; }
.layer6  { animation: floatShape 8s  ease-in-out infinite .2s; }
.layer7  { animation: floatShape 6s  ease-in-out infinite 1s; }
.layer8  { animation: floatShape 10s ease-in-out infinite .4s; }
.layer9  { animation: floatShape 7s  ease-in-out infinite .7s; }
.layer10 { animation: floatShape 9s  ease-in-out infinite 1.2s; }

/* Flecha scroll */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.scroll-arrow {
    width: 28px; height: 28px;
    border-right: 3px solid var(--rojo);
    border-bottom: 3px solid var(--rojo);
    border-bottom-right-radius: 4px;
    transform: rotate(45deg);
    animation: arrowBounce 1.6s ease-in-out infinite;
}
@keyframes arrowBounce {
    0%,100% { transform: rotate(45deg) translateY(0); opacity: .5; }
    50%      { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* =====================================================
   QUÉ ES DALE FORMA (about-section)
===================================================== */
.about-section {
    padding: 120px 20px;
    background-color: #F4EFE6;
    background-image: url('assets/patron.svg');
    background-repeat: repeat;
    background-size: 500px 290px;
    position: relative;
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 239, 230, 0.62);
    pointer-events: none;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-section .eyebrow { color: var(--amarillo); font-size: 1.1rem; }

.about-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #5B4343;
    margin-bottom: 28px;
}

.about-em {
    font-style: normal;
    color: #5B4343;
    background: none;
    -webkit-text-fill-color: #5B4343;
}

.about-texto p {
    color: #6B6B7B;
    font-size: 1.2rem;
    line-height: 1.85;
    margin-bottom: 36px;
}

.about-texto strong { color: #5B4343; }

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .03em;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    cursor: default;
}
.chip:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.chip-rojo     { background: var(--rojo);     color: white; }
.chip-amarillo { background: var(--amarillo); color: #ffffff; }
.chip-verde    { background: var(--verde);    color: #ffffff; }
.chip-turquesa { background: var(--turquesa); color: #ffffff; }

/* Sandbox arrastrable */
.about-build {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about-sandbox {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 380px;
    background: rgba(237, 230, 219, 0.85);
    border: 1.5px solid #C9BEB0;
    border-radius: 24px;
    overflow: hidden;
    user-select: none;
    cursor: default;
}

.sandbox-hint {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #A89888;
    pointer-events: none;
}

.ab-piece {
    position: absolute;
    cursor: grab;
    transition: filter .15s;
}
.ab-piece:active  { cursor: grabbing; }
.ab-piece.is-drag {
    z-index: 100;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
    cursor: grabbing;
}

.ab-tri    { width: 80px;  height: 70px;  background: var(--rojo);     clip-path: path('M 42.98 5.21 Q 40.00 0.00 37.02 5.21 L 2.98 64.79 Q 0.00 70.00 6.00 70.00 L 74.00 70.00 Q 80.00 70.00 77.02 64.79 Z'); }
.ab-circle { width: 68px;  height: 68px;  background: var(--amarillo); border-radius: 50%; }
.ab-rect   { width: 120px; height: 32px;  background: var(--verde);    border-radius: 5px; }
.ab-semi   { width: 82px;  height: 41px;  background: var(--amarillo); border-radius: 82px 82px 0 0; }
.ab-cuad   { width: 58px;  height: 58px;  background: var(--turquesa); border-radius: 7px; }
.ab-tri-r  { width: 70px;  height: 60px;  background: var(--rojo);     clip-path: path('M 4.56 3.90 Q 0.00 0.00 0.00 6.00 L 0.00 54.00 Q 0.00 60.00 6.00 60.00 L 64.00 60.00 Q 70.00 60.00 65.44 56.10 Z'); }

.build-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #A89888;
    text-transform: uppercase;
    letter-spacing: .12em;
}

@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-sandbox { max-width: 100%; height: 300px; }
}

/* =====================================================
   EXPLORAR (¿Cómo se juega?)
===================================================== */
.explorar-section {
    background-color: #F4EEE3;
    background-image: url('assets/patron.svg');
    background-repeat: repeat;
    background-size: 500px 290px;
    padding: 80px 40px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
}
.explorar-section:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 238, 227, 0.62);
    pointer-events: none;
    z-index: 0;
}
.explorar-header,
.step-card {
    position: relative;
    z-index: 1;
}

.explorar-header {
    text-align: left;
    margin-bottom: 20px;
    max-width: 1280px;
    width: 100%;
}

.explorar-header .eyebrow { color: #F5A02D; font-size: 1.1rem; }

.explorar-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #5B4343;
}

.eh-accent {
    background: linear-gradient(90deg, var(--rojo), var(--amarillo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tarjeta base */
.step-card {
    position: relative;
    background: white;
    border-radius: 28px;
    padding: 56px 60px;
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1280px;
    min-height: 360px;
    box-shadow: 0 8px 40px rgba(91,67,67,.10);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(91,67,67,.15);
}

.sc-num {
    position: absolute;
    top: -15px;
    right: 420px;
    font-family: 'Poppins', sans-serif;
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    opacity: .05;
    color: #5B4343;
    pointer-events: none;
    z-index: 0;
}

/* Franja de color: único elemento responsable del borde lateral,
   con el mismo radio que la tarjeta para que el recorte sea limpio
   y no se dupliquen bordes (causa del corte irregular). */
.sc-stripe {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    border-radius: 28px 0 0 28px;
}

.step-content {
    position: relative;
    z-index: 1;
    padding-left: 28px;
}

.sc-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}

.step-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
}
.step-card p      { font-size: 1.2rem; line-height: 1.75; color: #7a6060; }
.step-card strong { color: #5B4343; }

.step-img-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: visible;
}
.step-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.45);
}

/* Variantes de color por paso */
.sc-celeste .step-img-wrap { background: #E4F4FB; border-radius: 20px; }
.sc-verde   .step-img-wrap { background: #E6F4E7; border-radius: 20px; }
.sc-rojo    .step-img-wrap { background: #FCECED; border-radius: 20px; }

.sc-celeste h3         { color: #2a7a9e; }
.sc-celeste .sc-stripe { background: #87CEE9; }
.badge-celeste         { background: #E4F4FB; color: #2a7a9e; }

.sc-verde h3           { color: #2e7d32; }
.sc-verde .sc-stripe   { background: #73BC76; }
.badge-verde           { background: #E6F4E7; color: #2e7d32; }

.sc-rojo h3            { color: #D12839; }
.sc-rojo .sc-stripe    { background: #D12839; }
.badge-rojo            { background: #FCECED; color: #A8001A; }

/* Contador fichas (paso 3) */
.fichas-counter {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.fc-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}
.fc-ganador { background: #D12839; color: white; }
.fc-vocero  { background: #F5A02D; color: white; }

@media (max-width: 600px) {
    .explorar-section { padding: 60px 20px 80px; }
    .step-card {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        gap: 28px;
        text-align: center;
    }
    .step-content { padding-left: 0; }
    .sc-num { right: 10px; font-size: 6rem; }
    .step-img-wrap { width: 100%; height: 280px; margin: 0 auto; }
    .step-img { transform: scale(1); }
    .fichas-counter { justify-content: center; }
}
/* =====================================================
   MECÁNICAS DEL JUEGO
===================================================== */
.mecanicas-section {
    background-color: #F4EFE6;
    background-image: url('assets/patron.svg');
    background-repeat: repeat;
    background-size: 500px 290px;
    padding: 120px 60px 140px;
    position: relative;
    overflow: hidden;
}
.mecanicas-section:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 239, 230, 0.62);
    pointer-events: none;
    z-index: 1;
}
/* Header */
.mec-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}
.mecanicas-section .eyebrow { color: var(--amarillo); font-size: 1.1rem; }
.mec-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #5B4343;
    line-height: 1.1;
}
.mec-accent {
    color: #5B4343;
}
/* Layout bloques */
.mec-bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto 120px;
    padding: 0 80px;
    position: relative;
    z-index: 2;
}
.mec-bloque:last-child { margin-bottom: 0; }
.mec-reverse { direction: rtl; }
.mec-reverse > * { direction: ltr; }

/* Tags */
.mec-tag {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.tag-rojo     { background: #D12839; color: #FFFFFF; }
.tag-amarillo { background: #C47F00; color: #FFFFFF; }
.tag-verde    { background: #2F8C4A; color: #FFFFFF; }
.tag-turquesa { background: #00838F; color: #FFFFFF; }

/* Texto */
.mec-texto h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #5B4343;
    line-height: 1.1;
    margin-bottom: 22px;
}
.mec-texto h3 em {
    font-style: normal;
    color: #5B4343;
}
.mec-texto p {
    color: rgba(103, 83, 83, 0.832);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 32px;
}
.mec-texto strong { color: #705959; }

/* ----- CONECTORES ----- */
.mv-conectores {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Imagen conectores */
.mec-img-wrap {
    width: 100%;
    max-width: 420px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}
.mec-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.con-estructura {
    position: relative;
    width: 340px; height: 280px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding: 24px;
}
.ce-pieza, .ce-conector {
    position: relative;
    z-index: 2;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.cp-rect-l { width: 150px; height: 26px; background: var(--verde);    border-radius: 5px;                           animation: cePieceWobble 4s ease-in-out infinite 0s; }
.cp-tri    { width: 58px;  height: 50px; background: var(--rojo);     clip-path: path('M 31.01 3.46 Q 29.00 0.00 26.99 3.46 L 2.01 46.54 Q 0.00 50.00 4.00 50.00 L 54.00 50.00 Q 58.00 50.00 55.99 46.54 Z'); animation: cePieceWobble 4s ease-in-out infinite .5s; }
.cp-circle { width: 52px;  height: 52px; background: var(--amarillo); border-radius: 50%;                           animation: cePieceWobble 4s ease-in-out infinite 1s; }
.cp-semi   { width: 74px;  height: 37px; background: var(--turquesa); border-radius: 74px 74px 0 0;                 animation: cePieceWobble 4s ease-in-out infinite 1.5s; }

@keyframes cePieceWobble {
    0%,100% { transform: translateX(0) rotate(0deg); }
    25%      { transform: translateX(4px) rotate(2deg); }
    75%      { transform: translateX(-4px) rotate(-2deg); }
}

.ce-conector { width: 10px; height: 28px; border-radius: 5px; z-index: 3; }
.cc1 { background: var(--rojo);     animation: connectorPulse 2s ease-in-out infinite 0s; }
.cc2 { background: var(--amarillo); animation: connectorPulse 2s ease-in-out infinite .4s; }
.cc3 { background: var(--turquesa); animation: connectorPulse 2s ease-in-out infinite .8s; }
@keyframes connectorPulse {
    0%,100% { transform: scaleY(1); opacity: .7; }
    50%      { transform: scaleY(1.2); opacity: 1; }
}

.ce-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(103,201,196,.1) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { opacity: .5; }
    50%      { opacity: 1; }
}

.ce-label {
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(0,0,0,.4);
}
.con-estructura:hover .ce-pieza { transform: scale(1.06) !important; }

.con-beneficios {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}
.con-b {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    color: rgba(0,0,0,.55);
    font-weight: 500;
    transition: color .25s, transform .25s;
    cursor: default;
}
.con-b:hover { color: #1a1a1a; transform: translateX(6px); }
.cb-dot       { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-amarillo { background: var(--amarillo); }
.dot-verde    { background: var(--verde); }
.dot-turquesa { background: var(--turquesa); }

/* ----- FICHAS ----- */
.mv-fichas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Imagen fichas */
.fichas-img-wrap {
    width: 100%;
    max-width: 420px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}
.fichas-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fichas-pile {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.fp-ficha {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.15);
}
.f1 { background: var(--amarillo); bottom: 0;   box-shadow: 0 8px 20px rgba(0,0,0,.5); z-index: 5; }
.f2 { background: #e09a25; bottom: 9px;  z-index: 4; filter: brightness(.85); }
.f3 { background: #c8881f; bottom: 18px; z-index: 3; filter: brightness(.7); }
.f4 { background: #b07519; bottom: 27px; z-index: 2; filter: brightness(.55); }
.f5 { background: #986312; bottom: 36px; z-index: 1; filter: brightness(.4); }
.fp-shine {
    position: absolute;
    top: 5px; left: 18px;
    width: 32px; height: 14px;
    background: rgba(255,255,255,.35);
    border-radius: 50%;
    z-index: 10;
    animation: shineSpin 3s ease-in-out infinite;
}
@keyframes shineSpin { 0%,100%{opacity:.35} 50%{opacity:.7} }

.f1 { animation: stackFloat 2.5s ease-in-out infinite; }
.f2 { animation: stackFloat 2.5s ease-in-out infinite .1s; }
.f3 { animation: stackFloat 2.5s ease-in-out infinite .2s; }
.f4 { animation: stackFloat 2.5s ease-in-out infinite .3s; }
.f5 { animation: stackFloat 2.5s ease-in-out infinite .4s; }
@keyframes stackFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.fichas-uses {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
}
.fu-item {
    padding: 11px 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    cursor: default;
}
.fu-item:hover { transform: translateX(6px) scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.fu-carta   { background: rgba(255,255,255,.4); color: #00838F; border-left: 3px solid #00838F; }
.fu-ventaja { background: rgba(255,255,255,.4); color: #D12839; border-left: 3px solid #D12839; }
.fu-letra   { background: rgba(255,255,255,.4); color: #C47F00; border-left: 3px solid #C47F00; }

.fichas-tip {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,.3);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 16px;
    padding: 20px 24px;
}
.ft-icon { font-size: 1.6rem; flex-shrink: 0; }
.fichas-tip p { font-size: 1rem; color: rgba(0,0,0,.6); margin: 0; line-height: 1.6; }
.fichas-tip strong { color: #C47F00; }

/* ----- CARTAS FORMA ----- */
.mv-cartas {
    position: relative;
    height: 380px;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
    justify-content: center;
}

.fcard {
    position: absolute;
    width: 150px; height: 225px;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    cursor: pointer;
    transition: transform .35s ease-out;
    --rot: 0deg;
    --tx: 0px;
    --ty: 0px;
    transform: rotate(var(--rot)) translateX(var(--tx)) translateY(var(--ty));
}

.fcard img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.fc-f { --rot: -24deg; --tx: -200px; --ty: 25px; }
.fc-o { --rot: -12deg; --tx: -105px; --ty: 10px; }
.fc-r { --rot: 0deg;   --tx: 0px;    --ty: 0px;  z-index: 5; }
.fc-m { --rot: 12deg;  --tx: 105px;  --ty: 10px; }
.fc-a { --rot: 24deg;  --tx: 200px;  --ty: 25px; }

.fcard:hover {
    transform: rotate(var(--rot)) translateX(var(--tx)) translateY(calc(var(--ty) - 30px)) scale(1.12);
    z-index: 10;
}

.fcard-glow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
    background: radial-gradient(ellipse, rgba(244,166,42,.35) 0%, transparent 75%);
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

/* Texto de cartas FORMA */
.mec-cartas .mec-texto p,
.mec-cartas .mec-texto {
    color: rgba(103, 83, 83, 0.832);
}

/* Barra de progreso FORMA */
.mec-letras-prog {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.mlp-letra {
    width: 54px; height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    border: 2px solid rgba(0,0,0,.15);
    color: rgba(0,0,0,.2);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    cursor: default;
}
.mlp-letra:hover { transform: scale(1.2) rotate(-5deg); }

.mlp-f { animation: lightUp 5s ease-in-out infinite 0s; }
.mlp-o { animation: lightUp 5s ease-in-out infinite .8s; }
.mlp-r { animation: lightUp 5s ease-in-out infinite 1.6s; }
.mlp-m { animation: lightUp 5s ease-in-out infinite 2.4s; }
.mlp-a { animation: lightUp 5s ease-in-out infinite 3.2s; }

@keyframes lightUp {
    0%,30%,100% { border-color: rgba(0,0,0,.15); color: rgba(0,0,0,.2); background: transparent; }
    15%          { border-color: var(--amarillo); color: #705959; background: rgba(244,166,42,.3); box-shadow: 0 0 20px rgba(244,166,42,.4); }
}

.mlp-win {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #ffa602;
    white-space: nowrap;
    animation: winPulse 5s ease-in-out infinite 4s;
}
@keyframes winPulse {
    0%,60%,100% { opacity: .35; transform: scale(1); }
    80%         { opacity: 1;   transform: scale(1.08); }
}

/* Responsive mecánicas */
@media (max-width: 860px) {
    .mecanicas-section {
        margin: 20px 16px;
    }
    .mec-bloque {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 80px;
    }
    .mec-reverse { direction: ltr; }
    .mv-cartas { height: 240px; }
    .fc-f { transform: rotate(-24deg) translateX(-110px) translateY(15px); }
    .fc-o { transform: rotate(-12deg) translateX(-58px)  translateY(6px); }
    .fc-m { transform: rotate(12deg)  translateX(58px)   translateY(6px); }
    .fc-a { transform: rotate(24deg)  translateX(110px)  translateY(15px); }
    .fcard { width: 96px; height: 144px; }
    .fcard span { font-size: 2.4rem; }
    .con-estructura { width: 260px; height: 230px; }
    .mec-img-wrap,
    .fichas-img-wrap { height: 240px; }
}
/* =====================================================
   CTA FINAL
===================================================== */
.cta-seccion {
    background: var(--rojo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    text-align: center;
    padding: 160px 20px;
    position: relative;
    overflow: hidden;
}

.cta-formas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-f { position: absolute; opacity: .15; }
.cta-f.tri    { width: 180px; height: 156px; background: white; clip-path: path('M 63.00 5.20 Q 60.00 0.00 57.00 5.20 L 3.00 98.80 Q 0.00 104.00 6.00 104.00 L 114.00 104.00 Q 120.00 104.00 117.00 98.80 Z'); top: 10%; left: 8%; }
.cta-f.circle { width: 140px; height: 140px; background: white; border-radius: 50%; bottom: 15%; right: 10%; }
.cta-f.rect-l { width: 200px; height: 60px;  background: white; border-radius: 12px; bottom: 25%; left: 6%; }
.cta-f.semi   { width: 150px; height: 75px;  background: white; border-radius: 150px 150px 0 0; top: 15%; right: 12%; }
.cta-f.cuad   { width: 90px;  height: 90px;  background: white; border-radius: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(30deg); }

.cta-contenido { position: relative; z-index: 2; }
.cta-contenido h2 { color: white; font-size: clamp(3.2rem, 9vw, 7rem); margin-bottom: 32px; line-height: 1.1; }
.cta-contenido h2 em { font-style: normal; color: #98daf4; }
.cta-contenido p { color: rgba(255,255,255,.8); font-size: 1.4rem; margin-bottom: 50px; max-width: 600px; }

.cta-btn {
    display: inline-block;
    padding: 24px 68px;
    background: white;
    color: var(--rojo);
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 60px;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
    box-shadow: 0 14px 50px rgba(0,0,0,.22);
}
.cta-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 26px 70px rgba(0,0,0,.3);
}

/* =====================================================
   FUNDAMENTO
===================================================== */
.fundamento-seccion {
    background: var(--rojo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    text-align: left;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.fundamento-contenido {
    position: relative;
    z-index: 2;
    max-width: 850px;
    width: 100%;
}

.fundamento-contenido h3 {
    font-family: 'Poppins', sans-serif;
    color: #98daf4;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
}

.fundamento-contenido .fundamento-lead {
    color: #98daf4;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 28px;
    border-left: 4px solid #98daf4;
    padding-left: 22px;
}

.fundamento-contenido p {
    color: rgba(255,255,255,.92);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 22px;
}

.fundamento-contenido p:last-child {
    margin-bottom: 0;
}
/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--oscuro);
    padding: 64px 40px 28px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 32px;
}

.footer-col--academic {
    border-left: 1px solid rgba(255,255,255,.12);
    padding-left: 28px;
}

/* tachuelas de color: una forma por columna, antes del título */
.ff {
    display: block;
    margin-bottom: 14px;
}

.ff.tri {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 19px solid var(--rojo);
}

.ff.circle { width: 18px; height: 18px; background: var(--amarillo); border-radius: 50%; }
.ff.rect   { width: 36px; height: 11px; background: var(--verde);    border-radius: 4px; }

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-col p {
    color: rgba(255,255,255,.55);
    font-size: .85rem;
    line-height: 1.5;
}

.footer-academic-line {
    margin-bottom: 4px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.footer-logos img {
    height: 56px;
    width: auto;
    filter: grayscale(1) brightness(1.6);
    opacity: .85;
}

.footer-logos img:last-child {
    height: 88px;
}

/* franja inferior: forma fija a la izquierda, copyright centrado real */
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-bottom .ff.semi {
    grid-column: 1;
    margin: 0;
}

.footer-copy {
    grid-column: 2;
    color: rgba(255,255,255,.4);
    font-size: .8rem;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-col--academic {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,.12);
        padding-top: 20px;
    }
    .footer-bottom {
        grid-template-columns: auto 1fr;
        justify-content: start;
        gap: 12px;
    }
    .footer-copy {
        grid-column: 2;
        text-align: left;
    }
}
/* =====================================================
barra de carga
===================================================== */
@media (max-width: 700px) {
    .forma-deco { display: none; }
    .cartas-showcase { gap: 8px; }
    .carta-mockup { width: 90px; min-height: 140px; }
    .ficha-card { max-width: 100%; }
    .explorar-section { padding: 16px 16px 70px; gap: 20px; }
    .about-section { padding: 60px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating, .letra, .shape-btn, .carta-mockup, .scroll-arrow {
        animation: none !important;
        transition: none !important;
    }
}
#loader-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #F4EEE3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}
#loader-wrap.hidden { opacity: 0; pointer-events: none; }
.shapes-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 32px;
}

.shape {
    position: absolute;
    animation: orbit 2.4s ease-in-out infinite;
}

.sh-tri {
    width: 56px;
    height: 48px;
    background: #D12839;
    clip-path: path('M 30.02 3.46 Q 28.00 0.00 25.98 3.46 L 2.02 44.54 Q 0.00 48.00 4.00 48.00 L 52.00 48.00 Q 56.00 48.00 53.98 44.54 Z');
    top: 10px;
    left: 50%;
    animation-delay: 0s;
}

.sh-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F4A62A;
    top: 50%;
    right: 4px;
    animation-delay: 0.3s;
}

.sh-rect {
    width: 60px;
    height: 22px;
    border-radius: 6px;
    background: #4CAF50;
    bottom: 16px;
    left: 20px;
    animation-delay: 0.6s;
}

.sh-semi {
    width: 48px;
    height: 24px;
    border-radius: 48px 48px 0 0;
    background: #67C9C4;
    top: 50%;
    left: 4px;
    animation-delay: 0.9s;
}

.sh-cuad {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #D12839;
    bottom: 10px;
    right: 20px;
    animation-delay: 1.2s;
}

@keyframes orbit {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50%       { transform: translateY(-10px) rotate(15deg); opacity: 1; }
}
.progress-bar-wrap {
    width: 200px;
    height: 7px;
    background: rgba(0,0,0,.12);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: #87CEE9;
    width: 0%;
    animation: fillBar 2.4s ease forwards;
}

@keyframes fillBar {
    0%   { width: 0%; }
    100% { width: 100%; }
}
/* =====================================================
   GALERÍA
===================================================== */
.galeria-section {
    background-color: #F4EFE6;
    background-image: url('assets/patron.svg');
    background-repeat: repeat;
    background-size: 500px 290px;
    padding: 120px 60px 140px;
    position: relative;
    overflow: hidden;
}
.galeria-section:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 239, 230, 0.62);
    pointer-events: none;
    z-index: 1;
}

.galeria-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}
.galeria-section .eyebrow { color: var(--amarillo); font-size: 1.1rem; }
.galeria-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #5B4343;
    line-height: 1.1;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    height: 620px;
}

.galeria-card {
    position: relative;
    background: white;
    border-radius: 28px;
    padding: 16px 16px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(91,67,67,.10);
}
.galeria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(91,67,67,.18);
}

/* Primera tarjeta: grande, ocupa las 2 filas a la izquierda */
.galeria-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}
/* Las otras 3: apiladas a la derecha */
.galeria-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.galeria-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.galeria-card:nth-child(4) { grid-column: 1; grid-row: 3; }

/* Franja lateral, mismo criterio que tus step-card */
.galeria-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    border-radius: 28px 0 0 28px;
    z-index: 2;
}
.gc-rojo::before     { background: var(--rojo); }
.gc-amarillo::before { background: var(--amarillo); }
.gc-verde::before    { background: var(--verde); }
.gc-turquesa::before { background: var(--turquesa); }

.galeria-photo {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
}

.gc-rojo .galeria-photo     { background: #FBE2E2; }
.gc-amarillo .galeria-photo { background: #FCEAD2; }
.gc-verde .galeria-photo    { background: #E2F0DF; }
.gc-turquesa .galeria-photo { background: #E2F1F4; }

.galeria-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.galeria-card figcaption {
    margin-top: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #5B4343;
    text-align: center;
}

/* Responsive */
@media (max-width: 760px) {
    .galeria-section { padding: 70px 20px 90px; }
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        max-width: 340px;
        height: auto;
        gap: 24px;
    }
    .galeria-card:nth-child(1),
    .galeria-card:nth-child(2),
    .galeria-card:nth-child(3),
    .galeria-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    .galeria-photo { aspect-ratio: 4 / 5; flex: none; }
}
