/* ===============================
   FUENTES Y BODY
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    font-display: swap;
    margin: 0;
    padding: 0;
    background-color: #000000;
    overflow-x: hidden;
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===============================
   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
=============================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c2023cd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
    padding: 0 20px;
    z-index: 9999;
}

.cookie-modal-content {
    background: #f0cb7d;
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
    width: 90%;
}

.cookie-modal.hidden {
    opacity: 0;
    display: none;
}

/* ===============================
   NAVBAR
=============================== */
.navbar-custom {
    background-color: #000000;
    min-height: 70px;
    display: flex;
}

.navbar-custom .nav-link {
    color: #ffffff;
    transition: 0.3s;
}

.navbar-custom .nav-link:hover {
    background-color: #a5744c;
    color: #ffffff;
}

.navbar-brand img {
    height: 20px;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    position: relative;
}

/* ===============================
   INDEX / SECCIONES PRINCIPALES
=============================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container-fluid {
    padding: 0 15px;
    background-color: #000000;
}

.hero-title {
    display: inline-block;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fdd835;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
}

.hero-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 5px rgb(193, 145, 107), 0 0 10px rgb(193, 145, 107), 0 0 20px #fdd835;
}

/* ===============================
   SECOND SECTION
=============================== */

.second {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
    min-height: 75vh;
    /* ✅ antes height fija */
    height: auto;
    text-align: center;
    padding: 20px 10px;
}

/* Contenedor de 3 columnas */
.second-fest-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* ===============================
   SECOND SECTION - Tarjetas
=============================== */
.second-fest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.241), rgba(255, 255, 255, 0.19)),
        url("https://i.postimg.cc/6q59DYLs/index-final-2.png") right center / cover no-repeat fixed;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
}

/* Contenido */
.second-content {
    padding: 20px;
}

/* ✅ Tus estilos originales para títulos, subtítulos y botón */
.second-title {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    /* ajustado para 3 columnas */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 auto 20px;
    color: rgb(253, 216, 53);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.second-title span {
    color: #d4a158;
}

.second-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 5px #c1916b, 0 0 10px #c1916b, 0 0 20px #fdd835;
}

.second-subtitle {
    font-size: 1rem;
    margin: 1rem 0 2rem;
    color: #f2d28b;
}

.second-btn {
    background: #d4a158;
    color: #2c2023;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.second-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #e2b58f;
}

/* ===============================
   FEATURE SECTION
=============================== */
.feature-section {
    background: url("https://i.postimg.cc/6q59DYLs/index-final-2.png") right center / cover no-repeat fixed;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 8vh clamp(1rem, 4vw, 4rem);
}


.feature {
    border-top: 2px solid rgba(255, 255, 255, .4);
    padding: 2rem 2.5rem;
    padding-top: 2rem;
    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;
}

/* ===============================
   H2 GENERAL
=============================== */
h2 {
    color: whitesmoke;
    text-align: center;
    width: 100%;
}

/* ===============================
   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);
    }

    .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);
    }

    .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);
    }

    .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);
    }

    .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)
============================== */

/* ==============================
   <= 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: 180px;
    }

    .welcome-content #enterButton {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        margin: 0 auto;
    }

    .second-fest {
        background-position: center center;
        /* centramos la persona en tablets y móviles medianos */
    }

    .second-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .feature-section {
        background-position: center center;
    }
}

/* ==============================
   <= 576px (Móviles pequeños)
============================== */
@media (max-width: 576px) {
    .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;
    }

    /* 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, 40vw, 140px);
    }

    .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;
    }
}
/* AJUSTE: Alta densidad de píxeles (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}