/* ===============================
   Fondo global del sitio
=============================== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://i.postimg.cc/6q59DYLs/index-final-2.png);
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: -1;
    /* detrás de todo el contenido */
    opacity: 1;
    transition: background-position 0.4s ease;
}

/* ===============================
   PANTALLA DE BIENVENIDA
=============================== */
.welcome-screen {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
    padding: 0 20px;
    text-align: center;
    gap: 20px;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-logo {
    width: 500px;
    margin-bottom: 2rem;
    animation: spinLogo 2s ease-in-out;
}

@keyframes spinLogo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(720deg);
    }
}

.welcome-logo:hover {
    transform: rotate(720deg);
}

.welcome-content #enterButton {
    background-color: #a5744c;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.welcome-content #enterButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #c1916b;
}

/* ===============================
   BANNER DE COOKIES
=============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #3b3c42;
    color: #fff;
    padding: 15px 20px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner p {
    margin: 0;
    max-width: 80%;
}

.cookie-banner a {
    color: #f2d28b;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    background-color: #d4a158;
    color: #2c2023;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-actions button:hover {
    background-color: #f2d28b;
}

/* ===============================
   MODAL DE COOKIES (versión estética)
=============================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 32, 35, 0.712); /* fondo oscuro con transparencia */
    backdrop-filter: blur(6px); /* efecto difuminado elegante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    padding: 20px;
    z-index: 9999;
}

.cookie-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Caja del contenido */
.cookie-modal-content {
    background:#3f3e3c; /* dorado suave con leve transparencia */
    color: #b4a6a6;
    font-weight: bold;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    animation: modalFadeIn 0.6s ease;
}

/* Animación sutil de entrada */
@keyframes modalFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Títulos, texto y enlaces */
.cookie-modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #b4a6a6;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.cookie-modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #b4a6a6;
}

.cookie-modal-content a {
    color: #8b5e3c;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-modal-content a:hover {
    color: #5e3a21;
}

/* Botones */
.cookie-modal-content .cookie-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===============================
   Botones del modal de cookies (estilo hero-btn)
=============================== */
.cookie-modal-content .cookie-actions button {
    background: #ce9442;
    color: #2c2023;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.cookie-modal-content .cookie-actions button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #e2b58f;
}
/* ===============================
   INDEX / SECCIONES PRINCIPALES
=============================== */

/* ===============================
   HERO PRINCIPAL
=============================== */

/* Contenedor del título y subtítulo */
.hero-title-block {
    display: inline-block;
    text-align: right;
    transition: transform 0.3s ease;
    transform-origin: center;
    cursor: pointer;
}

.hero-title-block:hover {
    transform: scale(1.05); /* mueve título + subtítulo */
}

/* Título principal */
.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin: 0;
    color: #fdd835;
    transition: text-shadow 0.3s ease;
}

/* Solo el título brilla */
.hero-title-block:hover .hero-title {
    text-shadow: 0 0 5px rgb(193, 145, 107),
                 0 0 10px rgb(193, 145, 107),
                 0 0 20px #fdd835;
}

/* Subtítulo más chico */
.hero-subtitle {
    font-size: 20px;
    margin: 8px 0 0;
    color: #fff;
    font-weight: 400;
}

/* ===============================
   SECOND SECTION
=============================== */
.second {
    position: relative;
    min-height: 70vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 4vh clamp(1rem, 4vw, 4rem);
}

/* Contenedor de 3 columnas */
.second-fest-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    /* ✅ tarjetas más anchas */
    gap: 15px;
    /* menos separación */
    width: 100%;
    max-width: 1400px;
    /* más espacio para crecer */
    margin: 0 auto;
    /* centrado */
}

/* ===============================
   SECOND SECTION - Tarjetas
=============================== */
.second-fest {
    position: relative;
    /*background: url("https://i.postimg.cc/6q59DYLs/index-final-2.png") center center / cover no-repeat fixed;*/
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Overlay oscuro + blur SOLO en las tarjetas */
.second-fest::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.second-content {
    position: relative;
    padding: 20px;
    text-align: center;       /* centra títulos, párrafos y botón */
    display: flex;            /* permite alinear en columna */
    flex-direction: column;
    align-items: center;      /* centra los elementos en el eje horizontal */
    justify-content: center;  /* opcional: centra verticalmente dentro del bloque */
    gap: 0.8rem;              /* separa los elementos de forma uniforme */
    z-index: 1;
}
.second-btn {
    margin: 0 auto;           /* asegura que el botón se centre si queda algún conflicto */
}
/* ===============================
   FEATURE SECTION
=============================== */
.feature-section {
    position: relative;
    min-height: 60vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 8vh clamp(1rem, 4vw, 4rem);
    /* ✅ ya sin overlay */
}

.feature {
    border-top: 2px solid rgba(255, 255, 255, .4);
    padding: 2rem 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.feature:hover {
    transform: translateY(-6px);
    background-color: rgba(0, 0, 0, 0.75);
}

.feature h3,
.feature p {
    color: #fff;
    line-height: 1.35;
}

.feature h3 {
    font-size: clamp(1.8rem, 3vw+1rem, 3rem);
    margin-bottom: 1rem;
}

.feature p {
    font-size: clamp(.9rem, 1vw+.4rem, 1.25rem);
    max-width: 38ch;
}

/* ===============================
   RESPONSIVE
=============================== */


/* ==============================
   Desktop grandes (>1440px)
============================== */
@media (min-width: 1441px) {
    .navbar-custom {
        padding: clamp(15px, 2vw, 20px);
    }

    .hero-title {
        font-size: clamp(36px, 5vw, 44px);
    }

    .second-title {
        font-size: clamp(2.8rem, 5vw, 3.8rem);
    }

    .workouts-container {
        gap: clamp(20px, 3.5vw, 30px);
        max-width: clamp(1000px, 90vw, 1200px);
    }

    .workout-card {
        max-width: clamp(200px, 20vw, 220px);
    }

    body,
    .feature-section {
        grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 25vw, 320px), 1fr));
        padding: clamp(5vh, 6vw, 7vh) clamp(2rem, 3.5vw, 3rem);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 25vw, 300px), 1fr));
    }
}

/* ==============================
   Notebooks medianos (1025px - 1440px)
============================== */
@media (min-width: 1025px) and (max-width: 1440px) {
    .navbar-custom {
        padding: clamp(10px, 2vw, 15px);
    }

    .navbar-brand img {
        height: clamp(30px, 4vw, 35px);
    }

    .hero-title {
        font-size: clamp(32px, 4.5vw, 40px);
    }

    .second-title {
        font-size: clamp(2.2rem, 4.5vw, 3.2rem);
        letter-spacing: clamp(2.5px, 0.5vw, 3.5px);
    }

    .workouts-container {
        gap: clamp(15px, 3vw, 25px);
        max-width: clamp(800px, 90vw, 1000px);
    }

    .workout-card {
        max-width: clamp(180px, 22vw, 210px);
    }

    body,
    .feature-section {
        grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 25vw, 300px), 1fr));
        padding: clamp(4vh, 5vw, 6vh) clamp(1.5rem, 3vw, 2.5rem);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25vw, 280px), 1fr));
    }
}

/* Ajuste notebooks 1366px */
@media (max-width: 1366px) {
    .workouts-container {
        gap: clamp(10px, 2vw, 15px);
        max-width: clamp(700px, 85vw, 900px);
    }

    .workout-card {
        max-width: clamp(150px, 20vw, 180px);
    }

    .hero-title {
        font-size: clamp(28px, 4vw, 36px);
    }
    body,
    .feature-section {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25vw, 280px), 1fr));
        padding: clamp(3vh, 4vw, 5vh) clamp(1rem, 2vw, 2rem);
    }
}

/* ==============================
   Tablets (600px - 1024px)
============================== */
@media (min-width: 600px) and (max-width: 1024px) {
    .navbar-custom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: clamp(10px, 2vw, 15px);
    }

    .navbar-brand img {
        height: clamp(28px, 5vw, 32px);
    }

    .navbar-nav {
        flex-direction: row;
        gap: clamp(8px, 2vw, 12px);
    }

    .navbar-custom .nav-link {
        padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px);
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    }

    .hero-title {
        font-size: clamp(26px, 4.5vw, 38px);
    }

    .second-title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        letter-spacing: clamp(2px, 0.5vw, 3px);
    }

    .second-subtitle {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
    }

    .workouts-container {
        gap: clamp(12px, 2.5vw, 20px);
        max-width: clamp(700px, 90vw, 900px);
    }

    .workout-card {
        max-width: clamp(160px, 23vw, 200px);
    }
    body,
    .feature-section {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25vw, 280px), 1fr));
        padding: clamp(3vh, 5vw, 5vh) clamp(1rem, 2.5vw, 2rem);

    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 25vw, 250px), 1fr));
    }
}

/* ==============================
   Breakpoints menores (mobile first)
============================== */

/* ==============================
   <= 1024px (Ajuste progresivo del logo)
============================== */
@media (max-width: 1024px) {
    .welcome-logo {
        width: clamp(280px, 40vw, 400px);
    }
}
/* ==============================
   <= 992px (Tablets grandes / Desktop mediano)
============================== */
@media (max-width: 992px) {
    .second-fest {
        background-position: right center;
        /* todavía en desktop grande */
    }

    .second-title {
        font-size: 2.5rem;
        letter-spacing: 2.5px;
    }

    .second-subtitle {
        font-size: 1rem;
    }

    .second-btn {
        padding: 0.7rem 1.2rem;
    }

    .second-fest-container {
        grid-template-columns: 1fr;
    }

    .navbar-brand img {
        height: 28px;
        margin-bottom: 10px;
    }

    .navbar-custom .nav-link {
        padding: 8px 0;
        display: block;
        text-align: center;
        width: 100%;
    }

    /*.feature-section {
        background-position: right center;
    }*/
}


/* ==============================
   <= 820px (Hero-title ajuste)
============================== */
@media (max-width: 820px) {
    .hero-title {
        font-size: 2.2rem;
    }
}
/* ==============================
   <= 768px (Welcome content apilado)
============================== */
@media (max-width: 768px) {
    .welcome-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .welcome-logo {
        width: clamp(200px, 45vw, 320px);
    }

    .welcome-content #enterButton {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        margin: 0 auto;
    }
    body,
    .feature-section,
    .second-fest {
        background-position: left center;
        /* centramos la persona en tablets y móviles medianos */
        background-attachment: fixed !important;

    }

    .second-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

/* ==============================
   <= 576px (Móviles pequeños)
============================== */
@media (max-width: 576px) {
    body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://i.postimg.cc/2yYdhWbn/index-final-2-cell.png);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1;
    transition: background-position 0.4s ease;
    }
    .hero-title {
        font-size: 2rem;
    }

    .second-fest-container {
        grid-template-columns: 1fr;
    }

    .navbar-brand img {
        height: 24px;
    }

    .navbar-custom .nav-link {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .second-title {
        font-size: 2rem;
    }

    .second-subtitle {
        font-size: 0.9rem;
    }

    .second-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-panel h1 {
        font-size: 2.4rem;
    }
}

/* ==============================
   <= 500px (Hero-title y second-title ajuste intermedio)
============================== */
@media (max-width: 500px) and (min-width: 441px) {

    /* Hero-title dentro de feature-section */
    .feature-section .hero-title {
        font-size: 1.8rem;
    }
    .welcome-logo {
        width: clamp(150px, 55vw, 250px);
    }
    /* second-title */
    .second-title {
        font-size: 1.65rem;
        letter-spacing: 1.5px;
        padding: 0 5px;
    }

    .second-subtitle {
        font-size: 0.85rem;
    }

    .second-btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==============================
   440px - 400px
============================== */
@media (max-width: 440px) and (min-width: 401px) {
    .feature-section .hero-title {
        font-size: 1.65rem;
    }

    .second-title {
        font-size: 1.5rem;
        letter-spacing: 1.2px;
        padding: 0 5px;
    }

    .second-subtitle {
        font-size: 0.8rem;
    }

    .second-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ==============================
   400px - 361px
============================== */
@media (max-width: 400px) and (min-width: 361px) {
    .feature-section .hero-title {
        font-size: 1.5rem;
    }

    .second-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
        padding: 0 5px;
    }

    .second-subtitle {
        font-size: 0.75rem;
    }

    .second-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ==============================
   <= 360px (Extremos como Samsung S9)
============================== */
@media (max-width: 360px) {
    .feature-section .hero-title {
        font-size: 1.4rem;
    }

    .welcome-logo {
        width: clamp(120px, 60vw, 180px);
    }

    .welcome-content #enterButton {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }

    .container {
        padding: 10px;
    }

    .workouts-container {
        gap: 20px;
    }

    .workout-card {
        max-width: 100%;
    }

    .second-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
        padding: 0 5px;
    }

    .second-subtitle {
        font-size: 0.75rem;
    }

    .second-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
}



/* En móviles medianos y chicos */
@media (max-width: 768px) {
    .feature-section {
        background-position: center top;
        background-size: cover;
        background-attachment: scroll;
        /* evita bugs en iOS */
    }
}

/* AJUSTE: Alta densidad de píxeles (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}