/* =========================
SECCIÓN PROCESO
========================= */
.proceso {
    padding: 80px 40px;
    text-align: center;
    background: #0a0a0a;
}
.proceso .label {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .35em;
    color: #c9a84c;
    text-transform: uppercase;
    margin: 0 0 .8rem 0;
}
.proceso h2 {
    font-family: 'Cinzel', serif;
    background: radial-gradient(ellipse 60% 40% at center,#382805 20%, transparent 80%);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 400;
    color: #f5f2ec;
    letter-spacing: .02em;
    margin: 0 0 .9rem 0;
}

/* Línea dorada bajo el título */
.title-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ecc65d, transparent);
    margin: 0 auto 3.5rem;
}
/* Contenedor de los 4 pasos */
.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
/* Línea conectora entre pasos */
.steps::before {
    content: '';
    position: absolute;
    top: 38px;
    left: calc(12.5% + 38px);
    right: calc(12.5% + 38px);
    height: 1px;
    background: linear-gradient(90deg, #c9a84c 0%, rgba(201,168,76,.3) 50%, #c9a84c 100%);
    z-index: 0;
}
/* Paso individual */
.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
/* Círculo del icono */
.step-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #111;
    border: 1.5px solid rgba(201, 168, 76, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
    position: relative;
}
/* Número del paso */
.step-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 38px - 11px); /* alineado arriba-derecha del círculo */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    color: #0a0a0a;
    z-index: 2;
}
/* Nombre del paso */
.step-name {
    font-family: 'Montserrat', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: #f5f2ec;
    text-transform: uppercase;
    margin: 0 0 .7rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(245, 242, 236, .3);
}
/* Descripción del paso */
.step-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    line-height: 1.7;
    color: rgba(245, 242, 236, .5);
    margin: 0;
    max-width: 150px;
}

/* =========================
SECCIÓN TARJETAS
========================= */
.Tarjetas {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    gap: 45px;   /* AUMENTADO para que la transición sea más suave */
}

/*TARJETA INDIVIDUAL*/
.tarjeta {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 520px;      /* REDUCIDO MÁS */
    background: #0a0a0a;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1),
                transform .9s cubic-bezier(.16,1,.3,1);
    border-radius: 25px;
}

/* Línea dorada separadora superior */
.tarjeta::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a6820, #c9a84c, #8a6820, transparent);
    opacity: .5;
    z-index: 1;
}

.tarjeta.invertida::after {
    right: auto; left: 2rem;
}

/* Animación al entrar en viewport */
.tarjeta.in-view {
    opacity: 1;
    transform: translateY(0);
}

.tarjeta:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Tarjeta invertida */
.tarjeta.invertida {
    flex-direction: row-reverse;
}

/* =========================
IMAGEN / VIDEO
========================= */
.imagideo {
    flex-shrink: 0;
    width: 28%;                 /* MÁS PEQUEÑO PARA DAR MÁS ESPACIO AL TEXTO */
    aspect-ratio: 9 / 16;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1.4rem;     /* MÁS COMPACTO */
    border-radius: 1.2rem;
}

/* Marco interior */
.imagideo > video,
.imagideo > .instagram-media {
    width: 100%;
    height: 100%;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(201,168,76,.25),
        0 40px 80px rgba(0,0,0,.7);
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1) .1s,
                transform .9s cubic-bezier(.16,1,.3,1) .1s;
}

.tarjeta.in-view .imagideo > video,
.tarjeta.in-view .imagideo > .instagram-media {
    opacity: 1;
    transform: translateY(0);
}

/* Acentos dorados */
.imagideo {
    position: relative;
}

.imagideo::before,
.imagideo::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border-color: #c9a84c;
    border-style: solid;
    z-index: 2;
    pointer-events: none;
    opacity: .7;
    border-radius: 1.2rem;
}

.imagideo::before {
    top: calc(1.8rem - 1px);
    left: calc(1.4rem - 1px);
    border-width: 2px 0 0 2px;
    border-radius: 1.2rem 0 0 0;
}

.imagideo::after {
    bottom: calc(1.8rem - 1px);
    right: calc(1.4rem - 1px);
    border-width: 0 2px 2px 0;
    border-radius: 0 0 1.2rem 0;
}

.imagideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagideo .instagram-media {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 1.2rem !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================
TEXTOS
========================= */
.Textos {
    flex: 1;
    padding: 2.8rem 2.6rem;   /* Ajustado para aprovechar más ancho */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1) .2s,
                transform .9s cubic-bezier(.16,1,.3,1) .2s;
}

.tarjeta.invertida .Textos {
    padding: 2.8rem 2.6rem;
    transform: translateX(-40px);
}

.tarjeta.in-view .Textos {
    opacity: 1;
    transform: translateX(0) !important;
}

/* Línea dorada decorativa */
.Textos::before {
    content: '';
    display: block;
    width: 48px; height: 1px;
    background: linear-gradient(90deg, #c9a84c, transparent);
    margin-bottom: 1.4rem;
}

/*TÍTULO*/
.Textos h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    font-weight: 700;
    color: #f5f2ec;
    line-height: 1.15;
    letter-spacing: .02em;
    margin: 0 0 1.4rem 0;
}

/*PÁRRAFO*/
.Textos p {
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    line-height: 1.7;
    color: rgba(245, 242, 236, .55);
    margin: 0 0 1.6rem 0;
    max-width: 52ch;  /* EXPANDIDO */
}

/*LISTA*/
.Textos ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.Textos ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 400;
    color: rgba(245, 242, 236, .5);
    padding-left: 1.2rem;
    position: relative;
    letter-spacing: .04em;
    line-height: 1.7;
}

.Textos ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px; height: 1px;
    background: #c9a84c;
}

/* =========================
RESPONSIVE < 1200px
========================= */
@media (max-width: 1200px) {

    /* CONTENEDOR GENERAL */
    .Tarjetas {
        max-width: 1000px;
        padding: 0 1rem;
        gap: 42px;              /* separación suave entre tarjetas */
    }

    /* TARJETAS */
    .tarjeta {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1.8rem 1.4rem;
        gap: 1.6rem;
        min-height: auto;       /* ya NO depende de altura del viewport */
        border-radius: 22px;
    }

    .tarjeta.invertida {
        flex-direction: row-reverse;
    }

    /* =========================
    IMAGEN / VIDEO
    ========================== */
    .imagideo {
        width: 40%;             /* controla el tamaño real del video */
        aspect-ratio: 9 / 16;   /* RELACIÓN OBLIGADA */
        height: auto;           /* Se calcula automáticamente por aspect-ratio */
        
        display: flex;
        align-items: center;
        justify-content: center;

        padding: 1.6rem 1.3rem;
        border-radius: 1.1rem;
        flex-shrink: 0;         /* evita que el contenedor se colapse */
        overflow: hidden;
    }

    /* Esquinas doradas */
    .imagideo::before {
        top: calc(1.6rem - 1px);
        left: calc(1.3rem - 1px);
    }

    .imagideo::after {
        bottom: calc(1.6rem - 1px);
        right: calc(1.3rem - 1px);
    }

    /* VIDEO: mantiene proporción vertical */
    .imagideo > video,
    .imagideo > .instagram-media {
        width: 100%;
        height: 100%;           /* = 100% del aspecto 9:16 */
        aspect-ratio: 9 / 16;   /* asegura que nunca se deforme */
        object-fit: cover;
        border-radius: 1.1rem;

        box-shadow:
            0 0 0 1px rgba(201,168,76,.22),
            0 30px 60px rgba(0,0,0,.55);
    }

    /* =========================
    TEXTOS
    ========================== */
    .Textos {
        flex: 1;
        padding: 2.4rem 1.8rem;
        transform: translateX(30px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .tarjeta.invertida .Textos {
        transform: translateX(-30px);
    }

    .tarjeta.in-view .Textos {
        transform: translateX(0) !important;
    }

    .Textos h2 {
        font-size: clamp(1.35rem, 2vw, 2rem);
        margin-bottom: 1rem;
    }

    .Textos p {
        font-size: .9rem;
        line-height: 1.65;
        max-width: 48ch;
    }

    .Textos ul li {
        font-size: .8rem;
        line-height: 1.55;
    }
}


@media (max-width: 800px) {

    /* APLICA A AMBAS TARJETAS */
    .tarjeta,
    .tarjeta.invertida {
        display: flex;
        flex-direction: column !important;  /* Fuerza video arriba */
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 20px 0;
    }

    /* ---- VIDEO ---- */
    .imagideo {
        width: 60%;                 /* Máx 60% del ancho total */
        max-width: 380px;
        margin: 0 auto;

        aspect-ratio: 9 / 16;       /* Mantiene proporción siempre */
        overflow: hidden;
        border-radius: 20px;

        display: flex;
        justify-content: center;
        align-items: center;

        box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
    }

    .imagideo video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ---- TEXTOS ---- */
    .Textos {
        width: 85%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .Textos h2 {
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .Textos p,
    .Textos li {
        font-size: 1rem;
        line-height: 1.45;
    }

    .Textos ul {
        padding-left: 0;
        list-style: none;
    }
}


/* =========================
TESTIMONIOS
========================= */

.Testimonios {
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 250px; /* mantiene altura fija */
}

/* Cada testimonio ocupa el mismo espacio */
.testimonio {
    min-width: 100%;
    padding: 40px 60px;
    background: #1a1a1a;
    border-radius: 20px;
    box-sizing: border-box;
    position: absolute;        /* todos apilados */
    max-height: 100%;
    top: 0;
    left: 0;
}

/* Línea dorada */
.testimonio::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.testimonio .estrellas {
    color: #d4af37;
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.testimonio h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 400;
    color: white;
    margin: 0 0 12px 0;
}

.testimonio p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0 auto 16px auto;
}

.testimonio span {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4af37;
    text-transform: uppercase;
}
/* ===============================
   TABLET — ≤ 992px
   =============================== */
@media (max-width: 1200px) {

    .Testimonios {
        padding: 50px 20px;
        min-height: 260px; /* un poco más alto para textos */
        margin-bottom: 7.5%;
    }

    .testimonio {
        padding: 35px 40px;
    }

    .testimonio h2 {
        font-size: 20px;
    }

    .testimonio p {
        font-size: 14px;
        max-width: 550px;
    }
}

/* ===============================
   TELÉFONO — ≤ 600px
   =============================== */
@media (max-width: 600px) {

    .Testimonios {
        padding: 40px 15px;
        min-height: 300px; /* evita que el footer choque */
        max-width: 100%;
    }

    .testimonio {
        padding: 25px 22px;
        border-radius: 16px;
    }

    .testimonio::before {
        height: 2px;
    }

    .testimonio .estrellas {
        font-size: 18px;
        margin-bottom: 14px;
        letter-spacing: 3px;
    }

    .testimonio h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .testimonio p {
        font-size: 13px;
        line-height: 1.65;
        max-width: 100%;
        margin-bottom: 14px;
    }

    .testimonio span {
        font-size: 11px;
        letter-spacing: 1.6px;
    }
}

.titulo {
    text-align: center;
}

.titulo h3{
    font-size: 42px;
    font-family: 'Cinzel', serif;
    background: radial-gradient(ellipse at center, #3a2a00, #000000 65%);
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.presentacion {
    width: 100%;
    height: 500px; /* Ajusta según necesites */
    background-image: url("../IMG/club.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Capa oscura opcional para dar contraste */
.presentacion::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* Ajusta la opacidad */
}

.informacion {
    position: relative; /* Para estar encima de la capa oscura */
}

.informacion h2 {
    font-size: 48px;
    color: #c8a45a; /* Dorado */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 2px solid #c8a45a; /* Línea dorada */
    display: inline-block;
    position: relative;
    top: -125px;
}

/* Hover negro sobre dorado */
.informacion h2:hover {
    background-color: #c8a45a;
    color: #000000;
}

/* ============================
   CROSSFADE
   ============================ */

/* oculta por defecto */
.fade-item {
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    pointer-events: none;
}

/* solo el activo es visible */
.fade-item.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================
   TABLET — ≤ 992px
   ============================ */
@media (max-width: 992px) {

    .titulo h3 {
        font-size: 32px;
        letter-spacing: 1.5px;
    }

    .presentacion {
        height: 380px;
    }

    .informacion h2 {
        font-size: 36px;
        padding: 8px 20px;
        top: -95px; /* reduce desplazamiento */
    }
}

/* ============================
   TELÉFONO — ≤ 600px
   ============================ */
@media (max-width: 600px) {

    .titulo h3 {
        font-size: 26px;
        letter-spacing: 1px;
        padding: 0 10px;
        line-height: 1.25;
    }

    .presentacion {
        height: 300px;      /* más compacto para móvil */
        background-position: center;
    }

    .informacion h2 {
        font-size: 24px;
        padding: 6px 16px;
        top: -60px;         /* ajuste fino */
        letter-spacing: 1.4px;
        border-width: 1.5px;
    }

    .informacion h2:hover {
        background-color: #c8a45a;
        color: #000;
    }
}