/* founders-edition.css */

.founders-block { 
    background-color: #050505; 
    color: #ffffff; 
    width: 100%; 
    margin-top: 0 !important; 
    margin-bottom: 0 !important;
    padding: 4rem 2rem 6rem 2rem; 
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.founders-block.alignfull { 
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
}

/* --- FONDO ANIMADO --- */
.founders__animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: cinematicZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes cinematicZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.founders__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0.85) 100%);
    z-index: 1; 
}

.founders__divider, 
.founders__container {
    position: relative;
    z-index: 2; 
}

/* ========================================= */
/* --- DIVISOR ANIMADO (Rayo y Líneas) --- */
/* ========================================= */
.founders__divider { 
    display: flex; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto 5rem auto; 
    gap: 15px; 
}

/* 1. Barrido de luz en las líneas */
.founders__divider .divider-line { 
    flex-grow: 1; 
    height: 1px; 
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(212, 175, 55, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmerLine 3s infinite linear;
}

/* 2. Latido y resplandor en el contenedor del rayo */
.founders__divider .divider-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: boltPulse 2s infinite alternate;
    will-change: transform, filter;
}

/* 3. Destello de color dentro del SVG del rayo */
.founders__divider .divider-icon svg { 
    width: 18px; 
    height: 38px; 
    animation: boltColor 2s infinite alternate;
}

/* --- KEYFRAMES DEL DIVISOR --- */
@keyframes shimmerLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes boltPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
        transform: scale(0.95);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 223, 0, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
        transform: scale(1.1);
    }
}

@keyframes boltColor {
    0%, 100% { fill: #d4af37; }
    50% { fill: #fff4b3; } /* Se vuelve casi blanco brillante en el pico del latido */
}
/* ========================================= */


.founders__container { 
    max-width: 1300px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 0.5fr 1fr 1.3fr; 
    gap: 4rem; 
    align-items: center; 
}

.founders__col-spacer { width: 100%; height: 100%; }
.founders__col-text { padding-right: 1rem; display: flex; flex-direction: column; }
.founders__title, .founders__description { margin-block-start: 0 !important; margin-top: 0 !important; }

.founders__title { 
    font-family: 'Comprehension', serif; 
    font-weight: 700; 
    font-size: 36px; 
    line-height: 1; 
    letter-spacing: 0; 
    margin-bottom: 1.5rem !important; 
    color: #ffffff; 
    text-transform: uppercase;
}

.founders__title span { color: rgba(195, 157, 92, 1); }

.founders__mobile-image { display: none; }

.founders__description { 
    font-family: 'DM Sans', sans-serif; 
    font-size: 18px; 
    line-height: 1.6; 
    color: #e0e0e0; 
    margin-bottom: 2rem !important; 
}

.founders__link { 
    font-family: 'Manrope', sans-serif; 
    color: #d4af37; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 700; 
    text-transform: uppercase;
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: opacity 0.3s ease; 
}
.founders__link:hover { opacity: 0.8; }

.founders__col-cards { display: flex; flex-direction: column; width: 100%; }
.founders__carousel-track { display: flex; flex-direction: column; gap: 1.2rem; width:80%}
.founders__carousel-controls { display: none; }

.founder-card { 
    display: flex; 
    background: linear-gradient(90deg, #181818 0%, #0a0a0a 100%);
    border: 1px solid rgba(212, 175, 55, 0.4); 
    border-radius: 12px; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    position: relative;
    min-height: 125px; 
    padding-left: 130px; 
}

.founder-card:hover { 
    background: linear-gradient(90deg, #1e1b12 0%, #0a0a0a 100%);
    border-color: #d4af37; 
    transform: translateX(-5px); 
}

.founder-card__avatar {
    position: absolute;
    bottom: 0;
    left: 15px; 
    width: 110px;
    height: 120%; 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none; 
}

.founder-card__avatar img { 
    width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    object-position: bottom center; 
    filter: drop-shadow(5px 0px 10px rgba(0,0,0,0.5));
}

.founder-card__content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    padding: 1.2rem 1.5rem 1.2rem 0;
}

.founder-card__info { display: flex; flex-direction: column; gap: 2px; }

.founder-card__name {
    margin-block-start: 0 !important; margin-top: 0 !important;
    font-family: 'Comprehension', serif; 
    color: #d4af37; 
    font-size: 25px; 
    font-weight: 700;
    margin-bottom: 4px !important; 
    text-transform: uppercase; 
}
.founder-card__role { font-family: 'DM Sans', sans-serif; color: #ffffff; font-size: 16px; font-weight: 400; margin: 0; }
.founder-card__country { font-family: 'DM Sans', sans-serif; color: #a0a0a0; font-size: 16px; font-style: italic; margin: 4px 0 0 0; }
.founder-card__icon { display: flex; align-items: center; justify-content: center; opacity: 0.6; transition: all 0.3s ease; }
.founder-card:hover .founder-card__icon { opacity: 1; transform: translateX(3px); }

@media (max-width: 1024px) { 
    .founders__container { grid-template-columns: 1fr 1fr; gap: 3rem; } 
    .founders__col-spacer { display: none; } 
    .founders__col-text { padding-right: 0; }
    .founders__overlay { background: rgba(0,0,0,0.75); } 
}

/* ========================================= */
/* --- MÓVIL --- */
/* ========================================= */
@media (max-width: 768px) {
    .founders-block {
        padding: 1rem 1.5rem 1rem 1.5rem;
        box-sizing: border-box;
    }
    .founders__animated-bg { display: none; } 
    .founders__overlay { display: none; }
    
    .founders__divider { margin-bottom: 3rem; }
    .founders__container { grid-template-columns: 1fr; gap: 2rem; }
    .founders__carousel-track { width:100%}
    .founders__col-text { text-align: center; max-width: 500px; margin: 0 auto; align-items: center; }
    .founders__title { font-size: 28px; border-bottom: 1px solid rgba(212,175,55,0.4); padding-bottom: 10px; display: inline-block; }
    
    .founders__mobile-image { 
        display: block; 
        width: 100vw; 
        margin-left: -1.5rem; 
        margin-right: -1.5rem;
        position: relative;
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
    .founders__mobile-image img { width: 100%; height: auto; object-fit: cover; }
    .mobile-image-fade {
        position: absolute; bottom: 0; left: 0; width: 100%; height: 60px;
        background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, rgba(5,5,5,1) 100%);
    }

    .founders__description { font-size: 15px; margin-bottom: 2.5rem !important; padding: 0 1rem; }
    
    .founders__col-cards { 
        width: 80vw;
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }
    
    .founders__carousel-track {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
        gap: 1.5rem;
        padding-bottom: 1rem;
        padding-right: 1.5rem;
    }
    .founders__carousel-track::-webkit-scrollbar { display: none; }
    
    .founder-card { 
        flex: 0 0 280px; 
        scroll-snap-align: center;
        flex-direction: column; 
        padding: 0; 
        min-height: auto; 
        background: #111111;
        border: 1px solid rgba(212,175,55,0.5);
        border-radius: 12px;
        overflow: hidden;
    }
    .founder-card:hover { transform: none; }
    
    .founder-card__avatar { 
        position: relative; 
        width: 100%; 
        height: 250px; 
        bottom: auto; 
        left: auto;
        background: transparent;
        overflow: hidden;
    }
    .founder-card__avatar img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        object-position: top center;
    }
    .founder-card__avatar::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0; height: 50px;
        background: linear-gradient(to bottom, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 100%);
    }
    
    .founder-card__content { 
        display: block;
        text-align: center;
        padding: 1.5rem; 
        position: relative; 
        border-top: 1px solid rgba(212, 175, 55, 0.2); 
        width: 100%;
        box-sizing: border-box;
    }
    
    .founder-card__info { 
        display: block; 
        width: 100%; 
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .founder-card__name,
    .founder-card__role,
    .founder-card__country {
        display: block;
        width: 100%;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .founder-card__name { 
        font-size: 20px; 
        padding-bottom: 0; 
        margin-bottom: 8px !important;
    }
    
    .founder-card__country { 
        margin-top: 6px; 
    }
    
    .founder-card__icon { 
        position: absolute;
        bottom: 1.2rem;
        right: 1.2rem;
        width: 32px; 
        height: 32px;
        border: 1px solid #d4af37;
        border-radius: 50%;
        margin: 0;
    }

    .founders__carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
        padding-right: 1.5rem;
    }
    .ctrl-btn {
        background: transparent;
        border: none;
        color: #d4af37;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 2px;
        cursor: pointer;
    }
    .ctrl-dots { display: flex; gap: 8px; }
    .ctrl-dots .dot {
        width: 8px; height: 8px;
        background-color: rgba(212,175,55,0.3);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .ctrl-dots .dot.active { 
        background-color: #d4af37; 
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    }
}

/* =========================================================
   Founders Edition — fuego lateral v3
   REEMPLAZA por completo el bloque de fuego anterior.

   Desktop: resplandor sobre .founders__animated-bg
   Móvil:   resplandor sobre .founders__mobile-image
            (que es la imagen que realmente se ve ahí)
   ========================================================= */

.founders__animated-bg {

	/* ---- Calibración desktop -------------------------------- */
	--fuego-fuerza: 1;     /* 0.5 discreto · 1.5 intenso */
	--fuego-vel: 5s;       /* más alto = llamas más calmadas */
	--fuego-blur: 22px;

	animation: mmp-founders-zoom 22s ease-in-out infinite alternate;
	will-change: transform;
	backface-visibility: hidden;
}

@keyframes mmp-founders-zoom {
	0%   { transform: scale(1)    translate3d(0, 0, 0); }
	100% { transform: scale(1.09) translate3d(-1.5%, -1%, 0); }
}

.founders__animated-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: screen;
	filter: blur(var(--fuego-blur));
	transform-origin: bottom left;
	will-change: transform, opacity;

	background:
		radial-gradient(52% 62% at 1% 78%,
			rgba(255, 82, 24, 0.62) 0%,
			rgba(196, 34, 12, 0.30) 38%,
			transparent 72%),
		radial-gradient(34% 46% at 0% 42%,
			rgba(255, 150, 48, 0.34) 0%,
			transparent 68%);

	animation: mmp-llama-izq var(--fuego-vel) ease-in-out infinite;
}

.founders__animated-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: screen;
	filter: blur(var(--fuego-blur));
	transform-origin: bottom right;
	will-change: transform, opacity;

	background:
		radial-gradient(48% 58% at 99% 72%,
			rgba(255, 68, 20, 0.55) 0%,
			rgba(176, 26, 10, 0.26) 40%,
			transparent 74%),
		radial-gradient(30% 40% at 100% 36%,
			rgba(255, 132, 40, 0.28) 0%,
			transparent 66%);

	animation: mmp-llama-der calc(var(--fuego-vel) * 1.618) ease-in-out infinite;
	animation-delay: -1.7s;
}

/* ---- Keyframes compartidos (desktop y móvil) ---- */

@keyframes mmp-llama-izq {
	0%, 100% {
		transform: translate3d(0, 0, 0) scale(1, 1);
		opacity: calc(0.55 * var(--fuego-fuerza));
	}
	27% {
		transform: translate3d(-5px, -18px, 0) scale(1.05, 1.12);
		opacity: calc(1 * var(--fuego-fuerza));
	}
	54% {
		transform: translate3d(4px, -6px, 0) scale(0.98, 1.03);
		opacity: calc(0.66 * var(--fuego-fuerza));
	}
	79% {
		transform: translate3d(-3px, -13px, 0) scale(1.04, 1.08);
		opacity: calc(0.88 * var(--fuego-fuerza));
	}
}

@keyframes mmp-llama-der {
	0%, 100% {
		transform: translate3d(0, 0, 0) scale(1, 1);
		opacity: calc(0.42 * var(--fuego-fuerza));
	}
	38% {
		transform: translate3d(6px, -15px, 0) scale(1.06, 1.1);
		opacity: calc(0.85 * var(--fuego-fuerza));
	}
	66% {
		transform: translate3d(-4px, -5px, 0) scale(0.97, 1.02);
		opacity: calc(0.5 * var(--fuego-fuerza));
	}
}

/* Latido de brillo sobre el overlay (solo desktop). */
.founders__overlay {
	animation: mmp-brasa calc(var(--fuego-vel, 5s) * 0.83) ease-in-out infinite;
	will-change: filter;
}

@keyframes mmp-brasa {
	0%, 100% { filter: brightness(1);    }
	21%      { filter: brightness(1.05); }
	44%      { filter: brightness(0.98); }
	67%      { filter: brightness(1.08); }
	86%      { filter: brightness(1.02); }
}

/* =========================================================
   MÓVIL
   Aquí NO se ve el fondo: se ve .founders__mobile-image.
   El fuego va encima de esa imagen.
   ========================================================= */
@media (max-width: 768px) {

	/* El fondo sigue oculto, como estaba. */
	.founders__animated-bg { display: none; }
	.founders__overlay { animation: none; }

	.founders__mobile-image {
		/* ---- Calibración móvil ---- */
		--fuego-fuerza: 1.2;
		--fuego-vel: 4.4s;
		--fuego-blur: 26px;

		overflow: hidden;
		isolation: isolate;   /* el blend se queda dentro de la imagen */
	}

	/* La foto, por debajo del fuego. */
	.founders__mobile-image img {
		position: relative;
		z-index: 1;
	}

	/* El degradado de fundido, por encima de todo. */
	.founders__mobile-image .mobile-image-fade {
		z-index: 3;
	}

	.founders__mobile-image::before,
	.founders__mobile-image::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 2;
		pointer-events: none;
		mix-blend-mode: screen;
		filter: blur(var(--fuego-blur));
		will-change: transform, opacity;
		backface-visibility: hidden;
	}

	/* Llama izquierda, naciendo del borde inferior. */
	.founders__mobile-image::before {
		background:
			radial-gradient(58% 64% at 0% 88%,
				rgba(255, 82, 24, 0.75) 0%,
				rgba(196, 34, 12, 0.36) 40%,
				transparent 74%),
			radial-gradient(30% 40% at 4% 52%,
				rgba(255, 150, 48, 0.32) 0%,
				transparent 68%);
		transform-origin: bottom left;
		animation: mmp-llama-izq var(--fuego-vel) ease-in-out infinite;
	}

	/* Llama derecha, más lenta y desfasada. */
	.founders__mobile-image::after {
		background:
			radial-gradient(54% 60% at 100% 84%,
				rgba(255, 68, 20, 0.68) 0%,
				rgba(176, 26, 10, 0.32) 42%,
				transparent 76%),
			radial-gradient(28% 36% at 97% 46%,
				rgba(255, 132, 40, 0.26) 0%,
				transparent 66%);
		transform-origin: bottom right;
		animation: mmp-llama-der calc(var(--fuego-vel) * 1.618) ease-in-out infinite;
		animation-delay: -1.5s;
	}
}

/* =========================================================
   Accesibilidad
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	.founders__animated-bg,
	.founders__animated-bg::before,
	.founders__animated-bg::after,
	.founders__mobile-image::before,
	.founders__mobile-image::after,
	.founders__overlay {
		animation: none;
	}
	.founders__animated-bg::before,
	.founders__mobile-image::before { opacity: 0.6; }
	.founders__animated-bg::after,
	.founders__mobile-image::after  { opacity: 0.45; }
}