/* ==========================================================================
   ÍNDICE
   1. CONFIGURACIÓN GENERAL
   2. CURSOR PLAY
   3. HERO
   4. BENEFICIOS
   5. CITA
   6. PUESTOS ABIERTOS
   7. EFECTOS CREATIVOS Y RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   1. CONFIGURACIÓN GENERAL
   ========================================================================== */
body.tcn-page {
    background-color: #ffffff;
    color: #111111;
    -webkit-font-smoothing: antialiased;
}

body.tcn-page #webgl-canvas {
    opacity: 0.05;
}

body.tcn-page .nav a.lang-toggle-btn {
    color: #000000;
}

body.tcn-page .logo img {
    filter: invert(1);
}

/* ==========================================================================
   2. CURSOR PLAY
   ========================================================================== */
.tcn-play-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 200, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, left, top;
}

.tcn-play-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tcn-play-cursor-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    user-select: none;
}

.tcn-video-wrapper {
    cursor: none !important;
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
.tcn-hero {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 8vw 8vh;
    overflow: hidden;
    position: relative;
}

.tcn-hero-head {
    padding-top: 12vh;
    padding-bottom: 6vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tcn-hero-head h1 {
    color: #000000;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease 0.25s, transform 1.2s cubic-bezier(0.16,1,0.3,1) 0.25s;
}

.tcn-hero-head h1.anim {
    opacity: 1;
    transform: translateY(0);
}

.tcn-hero-sub {
    font-size: 0.9rem;
    font-weight: 200;
    color: #555;
    letter-spacing: 1px;
    max-width: 520px;
    line-height: 1.9;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-hero-sub.anim {
    opacity: 1;
    transform: translateY(0);
}

.tcn-hero-head .tcn-btn-espontanea {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                background 0.35s ease,
                color 0.35s ease;
}

.tcn-hero-head .tcn-btn-espontanea.anim {
    opacity: 1;
    transform: translateY(0);
}

.tcn-videos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2vw;
}

.tcn-video-item {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tcn-video-item.revealed {
    opacity: 1;
}

.tcn-video-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111;
}

.tcn-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 1px solid rgba(212, 200, 184, 0);
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.tcn-video-wrapper:hover::after {
    border-color: rgba(212, 200, 184, 0.35);
}

.tcn-video-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: opacity 0.65s ease;
}

.tcn-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s linear;
}

.tcn-video-wrapper:hover .tcn-video-poster img {
    transform: scale(1.04);
}

.tcn-video-item.playing .tcn-video-poster {
    opacity: 0;
    pointer-events: none;
}

.tcn-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tcn-video-item.playing .tcn-video {
    opacity: 1;
}

.tcn-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
    transition: opacity 0.4s ease;
}

.tcn-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 1.5rem 1.8rem 1.8rem;
}

.tcn-video-tag {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.tcn-video-caption {
    font-size: 0.9rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4c8b8;
    line-height: 1.4;
}

/* ── Barra de progreso del vídeo ── */
.tcn-video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tcn-video-item.playing .tcn-video-progress {
    opacity: 1;
}
.tcn-video-progress-bar {
    height: 100%;
    width: 0%;
    background: #c9a96e;
    transition: width 0.25s linear;
    border-radius: 0 2px 2px 0;
}


/* ==========================================================================
   5. BENEFICIOS
   ========================================================================== */
.tcn-benefits {
    background-color: #ffffff;
    padding: 12vh 5vw;
    border-top: 1px solid #eeeeee;
}

.tcn-benefits-top {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0vh;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 2em;
}

.tcn-benefits-top h2 {
    color: #111;
    margin: 0;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-benefits-top h2.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ── Desktop: cuadrícula de 5 columnas ── */
.tcn-benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2vw;
    padding: 2.5rem 0;
    align-items: stretch;
}

/* ── Tarjeta (desktop): toda .tcn-benefit-child es la carta ── */
.tcn-benefit-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 1.4rem;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #ffffff;
    /* Visible por defecto en desktop — el mazo oculta en media query */
    transition: transform 0.4s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tcn-benefit-child:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
    border-color: #d0c9c0;
}

/* .tcn-benefit-card solo es un wrapper → no visible */
.tcn-benefit-card {
    display: contents;
}

.tcn-benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f4f4f2;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.tcn-benefit-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.tcn-benefit-icon::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.tcn-benefit-child.revealed:hover .tcn-benefit-icon {
    border-color: #111;
}

.tcn-benefit-child.revealed:hover .tcn-benefit-icon::before {
    bottom: 0;
    border-radius: 0;
}

.tcn-benefit-child.revealed:hover .tcn-benefit-icon svg {
    color: #ffffff;
}

.tcn-benefit-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #111;
    margin: 0;
}

.tcn-benefit-desc {
    font-size: 0.9rem;
    font-weight: 200;
    line-height: 1.65;
    color: #666;
    margin: 0;
}

/* ── Clases del mazo: sin efecto en desktop ── */
.tcn-benefit-child.card-pos-1,
.tcn-benefit-child.card-pos-2,
.tcn-benefit-child.card-pos-3,
.tcn-benefit-child.card-hidden,
.tcn-benefit-child.card-anim-out {
    /* Neutrales en desktop: gestionadas por media query */
}



/* ==========================================================================
   8. CITA
   ========================================================================== */
.tcn-quote {
    background-color: #0a0a0a;
    padding: 14vh 8vw;
    position: relative;
    z-index: 1;
}

.tcn-quote-line {
    width: 40px;
    height: 1px;
    background: #d4c8b8;
    margin-bottom: 3rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: width 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                opacity 0.4s ease,
                transform 0.6s ease;
}

.tcn-quote-line.revealed {
    width: 150px;
    opacity: 1;
    transform: scaleX(1) !important;
}

.tcn-quote-text {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.35;
    max-width: 1300px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-quote-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tcn-quote-author-role {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-quote-author-role.revealed {
    opacity: 1;
}
/* ==========================================================================
   9. PUESTOS ABIERTOS
   ========================================================================== */
.tcn-roles {
    background-color: #ffffff;
    padding: 12vh 8vw;
}

.tcn-roles-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 5vh;
}

.tcn-roles-top h2 {
    color: #111;
    margin: 0;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-roles-top h2.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tcn-roles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-roles-filter.revealed {
    opacity: 1;
}

.tcn-filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.55rem 1.3rem;
    border: 1px solid #cccccc;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tcn-filter-btn:hover {
    border-color: #111;
    color: #111;
}

.tcn-filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.tcn-roles-list {
    border-top: 1px solid #eeeeee;
}

.tcn-role-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eeeeee;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                background 0.25s ease;
    position: relative;
}

.tcn-role-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4c8b8;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.tcn-role-item:hover::before {
    transform: scaleY(1);
}

.tcn-role-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.tcn-role-item.hidden {
    display: none;
}

.tcn-role-item:hover, .tcn-role-item.is-expanded {
    background: #fafaf8;
}

.tcn-role-header {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 3vw;
    padding: 2.2rem 0;
    transition: padding-left 0.3s ease;
    cursor: pointer;
}

.tcn-role-item:hover .tcn-role-header, 
.tcn-role-item.is-expanded .tcn-role-header { 
    padding-left: 1rem; 
}

.tcn-role-tag {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4c8b8;
}

.tcn-role-title {
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    line-height: 1.2;
}

.tcn-role-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-end;
}

.tcn-role-meta {
    font-size: 0.65rem;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}

.tcn-role-apply {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding-bottom: 1px;
    opacity: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.25s ease, gap 0.25s ease;
}

.tcn-role-item:hover .tcn-role-apply,
.tcn-role-item.is-expanded .tcn-role-apply {
    opacity: 1;
}

.tcn-role-apply:hover {
    gap: 0.8rem;
}

.tcn-role-apply svg { 
    width: 14px; 
    height: 14px; 
    flex-shrink: 0; 
    transition: transform 0.4s ease;
}

.tcn-role-item.is-expanded .tcn-role-apply svg {
    transform: rotate(45deg);
}

.tcn-role-details {
    height: 0;
    overflow: hidden;
    transition: height 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ─── Panel interior del acordeón ─── */
.tcn-panel-section {
    padding: 2.5rem 2rem 3rem 2rem;
    background: #f9f8f6;
    border-left: 2px solid #d4c8b8;
    margin: 0 0 1px 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Intro / descripción del puesto */
.tcn-panel-intro {
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.85;
    color: #555;
    max-width: 780px;
}

/* Contenedor de las dos columnas (responsabilidades + requisitos) */
.tcn-details-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

/* Cada bloque (responsabilidades / requisitos) */
.tcn-panel-section-title {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4c8b8;
    margin: 0 0 1.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tcn-panel-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e4dc;
}

/* Lista de items */
.tcn-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tcn-panel-list li {
    font-size: 0.88rem;
    font-weight: 200;
    line-height: 1.65;
    color: #555;
    padding-left: 1.2rem;
    position: relative;
}

.tcn-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4c8b8;
    flex-shrink: 0;
}

/* CTA del panel */
.tcn-details-cta {
    padding-top: 0.5rem;
    border-top: 1px solid #e8e4dc;
}

.tcn-details-cta p a {
    background-color: transparent;
    color: black;
    padding: 2px 6px; 
    border-radius: 4px;
    
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.tcn-details-cta p a:hover {
    background-color: rgba(0, 0, 0, 0.356);
    color: white;
}

/* Candidatura espontánea */
.tcn-spontaneous {
    margin-top: 5vh;
    padding: 3.5rem; /* Espaciado interno para efecto carta */
    border: 1px solid #eeeeee; /* Borde completo */
    border-radius: 16px; /* Bordes redondeados */
    background-color: #fcfcfc; /* Fondo ligeramente diferenciado */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                box-shadow 0.4s ease, background-color 0.4s ease;
}

.tcn-spontaneous.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tcn-spontaneous.revealed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    background-color: #ffffff;
}

.tcn-spontaneous-left h3 {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tcn-spontaneous-left p {
    font-size: 0.9rem;
    font-weight: 200;
    color: #888;
    max-width: 480px;
    line-height: 1.85;
}

.tcn-btn-espontanea {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 1.1rem 2.8rem;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    text-decoration: none;
    transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.tcn-btn-espontanea:hover {
    background: #111;
    color: #fff;
}

.tcn-btn-espontanea::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tcn-btn-espontanea:hover::after {
    opacity: 1;
}


/* ==========================================================================
   10. CONTACTO
   ========================================================================== */
.tcn-contact {
    background-color: #ffffff;
    padding: 10vh 8vw;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.tcn-contact-left h2 {
    color: #111;
    margin: 0 0 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.tcn-contact-left h2.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tcn-contact-desc {
    font-size: 0.85rem;
    font-weight: 200;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.9s ease 0.15s;
}

.tcn-contact-desc.revealed {
    opacity: 1;
}

.tcn-contact-email-link {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 4px;
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s, color 0.3s ease;
}

.tcn-contact-email-link.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tcn-contact-email-link:hover {
    opacity: 0.5;
}

/* ==========================================================================
   11. EFECTOS CREATIVOS Y RESPONSIVE
   ========================================================================== */

/* ── 1. GRANO / NOISE en secciones oscuras ──────── */
.tcn-hero::before,
.tcn-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: grainShift 0.8s steps(2) infinite;
}

@keyframes grainShift {
    0%   { background-position: 0 0; }
    25%  { background-position: 30px -15px; }
    50%  { background-position: -10px 25px; }
    75%  { background-position: 20px 10px; }
    100% { background-position: 0 0; }
}

.tcn-hero > *,
.tcn-quote > * {
    position: relative;
    z-index: 1;
}

/* ── 2. CHARS SPLIT — hero h1 (cada .tcn-char) ─────── */
.tcn-hero-head h1 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.tcn-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(1.5deg);
    transition: opacity 0.45s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.45s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.tcn-char.anim {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* RESPONSIVE & MOBILE SLIDER ELEMENTS */
.tcn-slider-arrow {
    display: none;
}
.tcn-slider-container {
    width: 100%;
}

/* Video Play Button Overlay - hidden on desktop, only shown on mobile */
.tcn-video-play-btn {
    display: none;
}

/* Slider pagination dots - hidden by default on desktop */
.tcn-slider-dots {
    display: none;
}
/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* ─── TABLET GRANDE (≤ 1200px) ─── */
@media (max-width: 1200px) {
    .tcn-benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 4vw; }
}

/* ─── TABLET (768px – 1024px) ──────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .tcn-hero {
        padding: 0 6vw 6vh;
    }

    .tcn-hero-head {
        padding-top: 10vh;
    }

    .tcn-videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5vw;
    }

    /* ── Mazo de cartas apiladas en tablet ── */
    .tcn-benefits-grid {
        position: relative;
        display: block;
        height: 150px;
        width: 100%;
        max-width: 500px;
        margin: 2rem auto 4.5rem;
        padding: 0;
    }

   /* .tcn-benefits-grid::after {
        content: 'Pulsa para descubrirlo';
        position: absolute;
        bottom: -3.5rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #888;
        pointer-events: none;
        white-space: nowrap;
    }*/

    .tcn-benefit-child {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: #ffffff;
        border: 1px solid #e5e5e5;
        border-radius: 16px;
        padding: 1.8rem 1.6rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.05);
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 0 1.2rem;
        align-items: center;
        transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
        transform-origin: center top;
        opacity: 0;
        z-index: 0;
        pointer-events: none;
        user-select: none;
    }

    .tcn-benefit-card { display: contents; }

    .tcn-benefit-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 56px;
        height: 56px;
        align-self: center;
    }

    .tcn-benefit-title {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        font-size: 0.95rem;
    }

    .tcn-benefit-desc {
        grid-column: 2;
        grid-row: 2;
        margin: 5px 0 0 0;
        align-self: start;
        font-size: 0.88rem;
    }

    /* Posiciones del mazo: sin transparencia, fondo sólido siempre */
    .tcn-benefit-child.card-pos-1 {
        transform: translateY(0) scale(1);
        opacity: 1;
        z-index: 3;
        pointer-events: auto;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }
    .tcn-benefit-child.card-pos-1:hover {
        transform: translateY(-3px) scale(1);
        box-shadow: 0 16px 36px rgba(0,0,0,0.11);
    }
    .tcn-benefit-child.card-pos-2 {
        transform: translateY(20px) scale(0.94);
        opacity: 1;  /* Sólido, sin transparencia */
        z-index: 2;
        box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    }
    .tcn-benefit-child.card-pos-3 {
        transform: translateY(40px) scale(0.88);
        opacity: 1;  /* Sólido, sin transparencia */
        z-index: 1;
        box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    }
    .tcn-benefit-child.card-hidden {
        opacity: 0;  /* Oculta totalmente — no visible */
        z-index: 0;
        transform: translateY(40px) scale(0.88);
        pointer-events: none;
    }
    .tcn-benefit-child.card-anim-out {
        transform: translateX(110%) scale(0.9) rotate(8deg);
        opacity: 0;
        z-index: 4;
        transition: transform 0.42s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.35s ease;
    }
}




/* ─── MENOR 900px ─── */
@media (max-width: 900px) {
    .tcn-role-item { grid-template-columns: 1fr; gap: 0.8rem; }
    .tcn-role-meta-wrap { align-items: flex-start; }
    .tcn-benefits-top { flex-direction: column; align-items: flex-start; }
}

/* ─── MOBILE (≤ 767px) ─────────────────────────────────────── */
@media (max-width: 767px) {
    .tcn-benefits {
        padding: 4vh 4vw; /* Elimina márgenes excesivos */
        margin: 0;
    }
    .tcn-benefits-top {
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }
    /* ── Mazo apilado en móvil: mismo que tablet ── */
    .tcn-benefits-grid {
        position: relative !important;
        display: block !important;
        height: 260px;
        max-width: 100%;
        margin: 1.5rem auto 4.5rem;
        padding: 0;
    }

    /*
    .tcn-benefits-grid::after {
        content: 'Pulsa para descubrirlo';
        bottom: -3.5rem;
        font-size: 0.7rem;
        color: #888;
        letter-spacing: 3px;
    }*/

    .tcn-benefit-child {
        position: absolute !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        display: grid !important;
        grid-template-columns: 48px 1fr;
        gap: 0 1rem;
        padding: 1.4rem 1.2rem;
        border: 1px solid #e5e5e5;
        border-radius: 14px;
        background: #ffffff;
        opacity: 0;
        z-index: 0;
        pointer-events: none;
        user-select: none;
        transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
    }

    .tcn-benefit-card { display: contents; }

    .tcn-benefit-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 48px; height: 48px;
        align-self: center;
    }

    .tcn-benefit-title {
        grid-column: 2; grid-row: 1;
        align-self: end;
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .tcn-benefit-desc {
        grid-column: 2; grid-row: 2;
        margin: 4px 0 0 0;
        align-self: start;
        font-size: 0.82rem;
    }

    /* Posiciones del mazo en móvil */
    .tcn-benefit-child.card-pos-1 {
        transform: translateY(0) scale(1);
        opacity: 1; z-index: 3;
        pointer-events: auto; cursor: pointer;
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    }
    .tcn-benefit-child.card-pos-1:active {
        transform: translateY(-2px) scale(1);
    }
    .tcn-benefit-child.card-pos-2 {
        transform: translateY(16px) scale(0.94);
        opacity: 1; z-index: 2;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .tcn-benefit-child.card-pos-3 {
        transform: translateY(32px) scale(0.88);
        opacity: 1; z-index: 1;
    }
    .tcn-benefit-child.card-hidden {
        opacity: 0; z-index: 0;
        transform: translateY(32px) scale(0.88);
        pointer-events: none;
    }
    .tcn-benefit-child.card-anim-out {
        transform: translateX(110%) scale(0.9) rotate(8deg);
        opacity: 0; z-index: 4;
        transition: transform 0.38s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.3s ease;
    }

    /* Hereda el diseño compacto de la media query 1024px */

    .tcn-hero { padding: 0 6vw 6vh; }
    
    .tcn-hero-head {
        padding-top: 110px !important;
        padding-bottom: 3vh !important;
    }

    /* Slider styling */
    .tcn-slider-container {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        margin-top: 2rem;
    }

    .tcn-videos-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
        gap: 0 !important;
        max-width: none !important;
    }

    .tcn-videos-grid::-webkit-scrollbar {
        display: none !important;
    }

    .tcn-video-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
        padding: 0 16% !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
    }

    .tcn-video-wrapper {
        width: 100% !important;
        max-width: 300px !important;
        aspect-ratio: 2 / 3 !important;
    }

    .tcn-slider-arrow {
        display: none !important;
    }

    /* Video Play Button Overlay - top-left corner on mobile */
    .tcn-video-play-btn {
        display: flex !important;
        position: absolute;
        top: 15px;
        left: 15px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 4;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .tcn-video-play-btn svg {
        width: 14px;
        height: 14px;
        color: #ffffff;
        margin-left: 2px;
    }

    /* Hide when video is playing on mobile */
    .tcn-video-item.playing .tcn-video-play-btn {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }

    /* Slider pagination dots styling on mobile */
    .tcn-slider-dots {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        margin-top: 1.2rem;
        margin-bottom: 1.5rem;
        width: 100%;
        z-index: 5;
    }

    .tcn-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s, transform 0.3s;
        cursor: pointer;
        display: inline-block;
    }

    .tcn-dot.active {
        background: #000000;
        transform: scale(1.3);
    }

    /* Hide custom play cursor on mobile */
    .tcn-play-cursor {
        display: none !important;
    }

    .tcn-roles-top { flex-direction: column; }
    .tcn-spontaneous { flex-direction: column; margin-bottom: 7%;}

    /* Role header: de grid 3 cols a columna apilada */
    .tcn-role-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .tcn-role-meta-wrap {
        align-items: flex-start;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .tcn-role-apply {
        opacity: 1;
    }

    /* Secciones con padding generoso → ajustado */
    .tcn-benefits { padding: 8vh 9vw; }
    .tcn-quote { padding: 10vh 9vw; }
    .tcn-roles { padding: 8vh 9vw; }
    .tcn-contact { padding: 8vh 9vw; flex-direction: column; }

    /* Deshabilitar efectos pesados en móvil */
    .tcn-char {
        display: inline;
        opacity: 1;
        transform: none;
    }
}

/* ─── MOBILE S (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {

    .tcn-hero {
        padding: 0 9vw 5vh;
    }

    .tcn-hero-head {
        padding-top: 100px !important;
        gap: 1rem;
    }

    .tcn-video-item {
        padding: 0 16% !important;
    }

    .tcn-video-wrapper {
        max-width: 250px !important;
    }

    .tcn-video-play-btn {
        width: 50px;
        height: 50px;
    }

    .tcn-video-play-btn svg {
        width: 18px;
        height: 18px;
    }

    .tcn-hero-sub {
        font-size: 0.8rem;
    }

    .tcn-benefits {
        padding: 4vh 9vw; /* Alineado con los márgenes aumentados */
    }

    .tcn-benefit-icon {
        width: 50px;
        height: 50px;
    }

    .tcn-quote {
        padding: 8vh 9vw;
    }

    .tcn-quote-text {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .tcn-roles {
        padding: 6vh 9vw 0 9vw;
    }

    .tcn-role-header {
        padding: 1.2rem 0;
    }

    .tcn-contact {
        padding: 6vh 9vw;
    }

    .tcn-spontaneous-left h3 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .tcn-btn-espontanea {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
}

/* ─── MOBILE LANDSCAPE (Horizontal) ────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .tcn-hero {
        min-height: 400px !important;
        padding-top: 100px !important;
    }
}
