* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 40px 0px;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    background-color: #f5f7fa; /* fallback */
}

body.page-index {
    background-image:
        linear-gradient(180deg, rgba(255, 246, 219, 0.9), rgba(255, 246, 219, 0.3)),
        url("img/background_index.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.page-screening {
    background-image:
        linear-gradient(180deg, rgba(255, 246, 219, 0.8), rgba(255, 246, 219, 0.3)),
        url("img/background_screening.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.page-regenerate {
    background-image:
        linear-gradient(180deg, rgba(255, 246, 219, 0.9), rgba(255, 246, 219, 0.3)),
        url("img/background_regeneration.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* tout ce qui est ici (class) apparait fadeUp en chargeant le html*/
.home-buttons,
.compounds-grid,
.intro-video {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

/* pour contrôler le délai d'animation */
.home-buttons { animation-delay: 0.15s; }
.compounds-grid { animation-delay: 0.15s; }
.intro-video { animation-delay: 0.35s; }


@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    margin-top: 135px;
}

/* Logo pequeño arriba a la izquierda */
.logo-1 {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: 190px;
}

/* Botones de contacto y de la pagina EFFECTS */
.header-buttons-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* botón base */
.nav-header-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 10px;

    text-decoration: none;
    color: #2C2C2C;
    font-weight: 600;

    background: transparent;
    transition: all 0.25s ease;
}

/* texto home y website */
.btn-text {
    font-size: 0.95rem;
    text-align: right;
}

.nav-header-btn:hover {
    transform: translateY(-2px);
    color: #B92231;
    filter: drop-shadow(0 6px 10px rgba(185, 34, 49, 0.25));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.title-container {
    display: flex;
    align-items: center; /* vertically center the title and logo */
    gap: 10px;           /* space between logo and title */
}

.title-logo {
    height: 2.5em;       /* roughly same height as the title text */
    width: auto;          /* keep aspect ratio */
}

header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.6rem;
    color: #000000;
    margin-top: 3px;
    letter-spacing: 0.2px;
    font-weight: 400;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 70px;      /* espacio entre los dos botones */
    margin-top: 80px;
    margin-bottom: 80px;
}

.nav-btn {
    padding: 25px 40px;    /* ancho (primer numero) total de cada boton */
    width: 325px;       /* largo total de cada boton */
    text-align: center;
    color: #2A2A2A;
    text-decoration: none;
    font-weight: 600;
    border-radius: 16px; /* más moderno */
    
    /* 🔥 efecto “card” */
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    
    /* sombra base más elegante */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px; /* espacio entre titulo y subtitulo */
}

.nav-btn .title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-btn .subtitle {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 1px;
    line-height: 1.2;
}

.btn-screening {
    background: linear-gradient(135deg,
        rgba(255, 205, 98, 0.7),
        rgba(246, 178, 35, 0.7)
    );
}

.btn-regeneration {
    background: linear-gradient(135deg,
        rgba(252, 185, 113, 0.7),
        rgba(189, 122, 49, 0.7)
    );
}

.nav-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-screening:hover {
    background: linear-gradient(135deg,
        rgba(255, 215, 120, 1),
        rgba(246, 178, 35, 1)
    );

    transform: translateY(-5px) scale(1.03);

    box-shadow:
        0 18px 40px rgba(246, 178, 35, 0.25),
        0 0 25px rgba(185, 34, 49, 0.35); /* glow */
}

.btn-regeneration:hover {
    background: linear-gradient(135deg,
        rgba(255, 200, 140, 1),
        rgba(189, 122, 49, 1)
    );

    transform: translateY(-5px) scale(1.03);

    box-shadow:
        0 18px 40px rgba(246, 178, 35, 0.25),
        0 0 25px rgba(185, 34, 49, 0.35); /* glow */
}

.compounds-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.compound-btn {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
}

.compound-btn:hover {
    border-color: #4CB292;
    background: #f0faf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 178, 146, 0.2);
}

.compound-btn.active {
    background: #4CB292;
    border-color: #4CB292;
    color: #fff;
    box-shadow: 0 6px 16px rgba(76, 178, 146, 0.3);
}

.hint-box {
    text-align: center;
    font-style: italic;
    padding: 16px 22px;
    font-size: 1.05rem;
    color: #1a1a1a;
    letter-spacing: 0.2px;
    line-height: 1.5;
    font-weight: 400;

    /* 👇 más clean y moderno */
    background: rgba(255, 255, 255, 0.5); /* controla aquí opacidad */
    backdrop-filter: blur(8px);

    border-radius: 16px;

    /* 👇 borde sutil tecnológico */
    border: 1px solid rgba(0,0,0,0.06);

    box-shadow: 0 8px 24px rgba(0,0,0,0.06);

    margin: 0 auto 30px auto;
    max-width: 380px;

    position: relative;
    overflow: hidden;

    animation: hintFadeUp 0.8s ease-out;
}

.hint-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;          /* más corta */
    height: 2.5px;          /* más fina */
    border-radius: 2px;
    background: linear-gradient(90deg, #F5CD3B, #f6b223);
    opacity: 0.9;
    
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.results-part {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Test your compound button */
#test-compound-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 60px 0 80px 0; /* espacio arriba y abajo */
}

.special-btn {
    position: relative;
    background: linear-gradient(135deg, #B92231, #f6b223);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: 14px;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(185, 34, 49, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;

    max-width: 240px;
    width: 100%;
    letter-spacing: 0.3px;

    overflow: hidden;
    z-index: 1;
}

.special-btn:hover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 22px 55px rgba(185, 34, 49, 0.55);
    background: linear-gradient(135deg, #B92231, #f6b223);
}

.contact-section {
    margin-top: 40px;
    padding: 34px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #111;
    animation: contactFadeUp 1.1s ease-out both;
}

.contact-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    animation: contactFadeUp 1.1s ease-out 0.25s both;
}

.contact-benefits {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    animation: contactFadeUp 1.1s ease-out 0.45s both;
}

.contact-cta {
    margin-top: 10px;
    font-size: 1rem;
    color: #444;
    animation: contactFadeUp 1.1s ease-out 0.65s both;
}

.contact-button {
    margin-top: 20px;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #B92231, #f6b223);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(185, 34, 49, 0.25);
    transition: all 0.25s ease;
    animation: contactFadeUp 1.1s ease-out 0.85s both;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(185, 34, 49, 0.35);
}

.contact-email {
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    letter-spacing: 0.3px;

    animation: contactFadeUp 1.1s ease-out 0.85s both;
}

.contact-email a {
    color: #2a7de1;
    text-decoration: none;
    position: relative;
}

.contact-email a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #2a7de1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.contact-email a:hover::after {
    transform: scaleX(1);
}

@keyframes contactFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Part 1: Score Card */
.part-1 {
    display: flex;
    justify-content: center;
}

#score-cards-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.score-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 400px;
    border-left: 5px solid #4CB292;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-card.inactive {
    background: #e9ecef;
    opacity: 0.6;
    transform: scale(0.95);
}

.score-card.active {
    background: #f8f9fa;
    opacity: 1;
    transform: scale(1);
}

.compound-header {
    margin-bottom: 20px;
}

.compound-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.score-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.score-main {
    flex: 1 1 50%; /* fuerza que cada columna tome la mitad */
}

.score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#score-value-a {    /* longevity score compound A */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#score-value-b {    /* longevity score compound B */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#score-value-combo {    /* longevity score compound A + B */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.age-gain {
    display: flex;
    flex-direction: column;
}

.age-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

#age-value-a {
    font-size: 1.2rem;
    font-weight: 600;
}

#age-value-b {
    font-size: 1.2rem;
    font-weight: 600;
}

#age-value-combo {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Part 2: Heatmap */
.part-2 {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.part-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;

    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 0.85rem;      /* más pequeño que el título */
    color: #666;             /* gris claro para no competir */
    margin-top: 4px;         /* un poquito de espacio */
    margin-bottom: 24px;
    font-style: italic;      /* opcional, estilo académico */
}

.table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
}

.cell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;

    font-weight: 600;
    font-size: 0.9rem;

    border-radius: 10px;
    transition: all 0.2s ease;
}

.page-regenerate .multi-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 16px;
    align-items: start;
    margin-top: -30px;
}

#compartments-block .cell {
    justify-content: flex-start;    /* texto a la izquierda */
}

#mechanism-block .cell {
    justify-content: flex-start;    /* texto a la izquierda */
}

/* screening panel heatmap */
.page-screening .multi-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: -30px;
}

.score-cell {
    position: relative;
    overflow: hidden;
    border-radius: 8px;

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

.score-bar {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;

    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.score-text {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #111;
}

/* Part 3: Radar */
.part-3 {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 32px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

#radar-block {
    width: min(900px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;              /* 🔥 QUITA padding vertical */
    height: fit-content;     /* 🔥 evita espacio extra */
    line-height: 0;          /* 🔥 elimina gaps raros inline */
}

#radarCanvas {
    display: block;   /* 🔥 elimina espacio inline fantasma */
    width: 100%;
    height: auto;
}

/* Part 4: Optimal graph */
.part-4 {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 32px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.optimal-graph-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.optimal-graph-chart {
    width: 100%;
    max-width: 820px;
    overflow: visible;
    padding: 14px 14px 80px;
    border-radius: 20px;
}

.optimal-graph-svg {
    width: 100%;
    height: 500px;
    display: block;
    overflow: visible;
}

.optimal-graph-grid-line {
    stroke: #E7E7E7;
    stroke-width: 1;
}

.optimal-graph-axis-label {
    fill: #5F6C4D;
    font-size: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-anchor: end;
}

.optimal-graph-line {
    fill: none;
    stroke: #3A8F32;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.optimal-graph-point-label {
    fill: #333;
    font-size: 0.72rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-anchor: middle;
}

.optimal-graph-xlabels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 80px;
    font-size: 0.82rem;
    color: #333;
    text-align: left;
    margin-top: 100px;
}

.optimal-graph-xlabel {
    fill: #222222;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


@media (max-width: 768px) {
    .optimal-graph-xlabel {
        font-size: 0.80rem;
    }
}

.optimal-graph-empty {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #555;
    font-size: 1rem;
    text-align: center;
}

.optimal-graph-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#optimal-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.optimal-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    transition: all 0.25s ease;
}

.optimal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.45);
}

.optimal-btn.optimal-active {
    transform: scale(0.97);
    background: #8a8a8a;
    box-shadow: 0 6px 16px rgba(46, 53, 47, 0.3);
    transition: all 0.25s ease;
}

.optimal-btn.optimal-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(46, 53, 47, 0.3);
}

/* Part 6: Biological signals */
.part-6 {
    margin-top: 20px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.bio-videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.bio-video-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.bio-video-title {
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: #f6b223;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-block;
    align-self: center;
    text-decoration: none; /* 👈 quita subrayado */
    box-shadow: 0 4px 10px rgba(246, 178, 35, 0.25);
    transition: all 0.25s ease;
}

.bio-video-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(246, 178, 35, 0.35);
    background: #fc7a00;
}

.bio-video {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Part 5: References */
.part-5 {
    margin-top: 24px;
    background: transparent;
    padding: 28px 34px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.references-section {
    background-image: url("./img/pipettes2.png");
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;

    margin-top: 60px;
    padding: 60px 0 70px 0;
    border-top: 1px solid #e5e7eb;
    width: 100vw;
    margin-left: calc(50% - 50vw);

    position: relative;
    overflow: hidden;
}

.references-section::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.7) 0%,       /* change opacity of background pipettes image */
        rgba(255,255,255,0.7) 40%,
        rgba(255,255,255,0.7) 100%
    );

    pointer-events: none;
}

/* contenido centrado */
.references-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    background: transparent;
    z-index: 1;
}

/* línea superior elegante */
.references-inner::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 32px;
    width: 80px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #F5CD3B, #f6b223 );
}

/* título */
.references-section .part-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

/* texto */
#references-block {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 1100px;
    text-align: justify;
    text-justify: inter-word;
}

/* párrafos */
#references-block p {
    margin: 12px 0;
}

/* subtítulos */
#references-block strong {
    color: #111827;
    font-weight: 600;
}

/* separador suave */
#references-block hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 20px 0;
}

/* =========================
   REFERENCES LIST (Zotero style)
========================= */

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

/* cada paper */
.ref-item {
    border-radius: 14px;
    padding: 10px 12px;
    transition: all 0.25s ease;
}


/* header: authors + year */
.ref-header {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 2px;
}

.ref-authors {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.ref-year {
    color: #6b7280;
    font-size: 0.8rem;
}

/* journal */
.ref-journal {
    font-size: 0.8rem;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 4px;
}

/* insight */
.ref-insight {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.3;
}

/* pequeño highlight opcional */
.ref-item::before {
    content: "";
    display: block;
    height: 2px;
    width: 28px;
    border-radius: 2px;
    background: linear-gradient(90deg, #F5CD3B , #E8C523  );
    margin-bottom: 6px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.4rem;
    }

    .compounds-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .score-card {
        max-width: 100%;
    }

    .part-2, .part-3 {
        padding: 24px;
    }

    .results-section {
        gap: 60px;
    }
}

.intro-video {
    margin-top:8px;
    width: 100%;
    border-radius: 16px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.intro-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.testing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CB292; /* green highlight */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* animacion de imagenes al cargar */

.testing-images {
    display: flex;
    gap: 10px;        /* separación entre imágenes */
    margin-top: 10px;
}

.testing-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;  /* circular */
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* footer */
.site-footer {
    margin-top: 60px;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 12px 20px;
    padding-top: 80px;                          /* margen texto con curvatura */
    padding-bottom: 40px;                         /* margen texto con final */
    clip-path: ellipse(70% 100% at 50% 100%);   /* curvatura %ancho %altura % % */
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.footer-logo {
    height: 40px;
    display: block;
    object-fit: contain;
}

.footer-links {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 22px;
    
}

.footer-links a {
    text-decoration: none;
    color: #BD7A31 ;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0 14px;
}

.footer-links a:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -5px; 
    top: 18%;
    height: 70%;
    width: 1px;
    background: rgb(0, 0, 0);
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -17px; /* 👈 distancia del subrayado */
    width: 100%;
    height: 2px;
    background: #F5CD3B;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: #F5CD3B ;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-icon {
    height: 22px;
    width: 22px;
    opacity: 0.85;
    transition: 0.2s ease;
    object-fit: contain;
}

.linkedin-icon {
    width: 22px;
    height: 22px;
    background: url("img/linkedin.png") center/contain no-repeat;
    transition: 0.25s ease;
}

.footer-links a:hover .linkedin-icon {
    background: url("img/linkedin_hover.png") center/contain no-repeat;
    transform: scale(1.15);
}

.youtube-icon {
    width: 22px;
    height: 22px;
    background: url("img/youtube.png") center/contain no-repeat;
    transition: 0.25s ease;
}

.footer-links a:hover .youtube-icon {
    background: url("img/youtube_hover.png") center/contain no-repeat;
    transform: scale(1.15);
}

.footer-copy {
    font-size: 0.8rem;
    color: #777;
    margin-top: 8px;
}