/* Fuentes personalizadas */
@font-face {
    font-family: 'ESPN Pro Loud';
    src: url('fonts/ESPNProLoud-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'ESPN Pro Loud Oblique';
    src: url('fonts/ESPNProLoud-MediumOblique-_1_.woff') format('woff');
    font-weight: 500;
    font-style: oblique;
}

@font-face {
    font-family: 'Burbank Big';
    src: url('fonts/BurbankBigRegular-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: url('images/FONDOGENERALWEB.jpg') center center / cover no-repeat fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    gap: 60px;
    box-sizing: border-box;
}

/* Barra de navegación con imagen */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Contenido principal */
.main-content {
    position: relative;
    z-index: 2;
}

/* Secciones de pasos */
.step-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.step-1 {
    background: url('images/ESPNRUN2025-BANNER.jpg') center center / contain no-repeat;
    background-size: contain;
    color: white;
    position: relative;
    width: 100%;
    height: 38.5vw;
    min-height: 38.5vw;
    max-height: 740px;
    display: flex;
    align-items: flex-end;
}

.step-1 .container {
    position: relative;
    z-index: 2;
    min-height: auto;
    height: 100%;
    align-items: flex-end;
    padding-bottom: 50px;
    width: 100%;
}

/* Ocultar placeholder en step-1 */
.step-1 .placeholder-image {
    opacity: 0;
    visibility: hidden;
}

/* Botones específicos para step-1 */
.step-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2vw;
    padding: 20px;
    position: absolute;
    bottom: 13%;
    left: 45%;
    width: auto;
    z-index: 10;
}

.step1-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.step1-button:hover {
    transform: scale(1.05);
}

.step1-button:active {
    transform: scale(0.95);
}

.button-img {
    max-width: 20vw;
    max-height: 12vw;
    min-width: 280px;
    min-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.step-2 {
    background: url('images/FONDOSEGUNDASECCION.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    color: white;
}

/* Contenido específico para step-2 */
.step2-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.step2-content-img {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.step-3 {
    background: url('images/FONDOTERCERASECCION.jpg') center center / cover no-repeat;
    
    color: white;
}

/* Override del container para step-3 */
.step-3 .container {
    max-width: none;
    width: 100vw;
    padding: 0;
    display: block;
    margin: 0;
    text-align: center;
}

/* Override del step-content para ocupar todo el ancho en step-3 */
.step-3 .step-content {
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100%;
}

/* Estilos específicos para step-3 */
.step3-content {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 40px 0;
    text-align: center;
}

.cuota-section {
    padding: 30px;
    margin: 20px 0;
    border-radius: 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

.cuota-title {
    font-family: 'ESPN Pro Loud', 'Arial', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.precio-regular, .precio-expo {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    margin: 10px 0;
    line-height: 1.4;
}

.comision {
    font-family: 'Arial', sans-serif;
    font-size: 1.3rem;
    font-style: italic;
    color: white;
    margin: 15px 0 25px 0;
    opacity: 0.9;
}

.inscribete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.inscribete-btn:hover {
    transform: scale(1.05);
}

.inscribete-btn:active {
    transform: scale(0.95);
}

.inscribete-img {
    max-width: 260px;
    height: auto;
    object-fit: contain;
}

.footer-info {
    margin-top: 30px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    padding: 20px;
    border-radius: 0;
}

.footer-info p {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    color: white;
    margin: 5px 0;
    line-height: 1.0;
}

.step-4 {
    background: #f5f5f5;
    color: white;
    position: relative;
    padding: 0;
    margin: 0;
}

/* Contenido específico para step-4 */
.step4-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.step4-button {
    flex: 1;
    width: 100vw;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step4-button:hover {
    transform: scale(1.02);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.step4-button:active {
    transform: scale(0.98);
}

.step4-button-black {
    background: #000000;
}

.step4-button-blue {
    background: #7698D7;
}

.step4-button-red {
    background: #FF2332;
}

.step4-button-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step4-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'ESPN Pro Loud Oblique', 'ESPN Pro Loud', 'Arial', sans-serif;
    font-size: 4.5rem;
    font-weight: 500;
    font-style: italic;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    pointer-events: none;
}

/* Container específico para step-4 */
.step-4 .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    gap: 0;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Contenido de cada paso */
.step-content {
    flex: 1;
    max-width: 500px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.3;
    margin-bottom: 20px;
    line-height: 1;
}

.step-title {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.step-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Visuales de cada paso */
.step-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px 0;
}

.placeholder-image {
    width: 350px;
    height: 250px;
    max-width: 100%;
    max-height: 40vh;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

/* Indicador de progreso */
.progress-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1001;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.5);
}

/* Animaciones de entrada */
.step-content,
.step-visual {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.step-visual {
    animation-delay: 0.3s;
}

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

/* Full-bleed para step-3: ocupar 100vw y centrar respecto al viewport */
.step-3 .cuota-section,
.step-3 .footer-info {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

/* Centrar el botón INSCRÍBETE dentro de cada sección */
.step-3 .cuota-section .inscribete-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Footer con imagen */
.footer {
    width: 100%;
    position: relative;
}

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

/* Responsive Design */
@media screen and (max-width: 1100px) {
    .button-img {
        max-width: 16vw;
        max-height: 10vw;
        min-width: 220px;
        min-height: 140px;
    }
}

@media screen and (max-width: 880px) {
    .button-img {
        max-width: 12vw;
        max-height: 8vw;
        min-width: 180px;
        min-height: 120px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-img {
        content: url('images/HEADERMOBILE.png');
    }

    .footer-img {
        content: url('images/FOOTERMOBILE.png');
    }

    .step-1 {
        background: url('images/banner_movil.jpg') center center / cover no-repeat;
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: flex-end;
    }

    .step-2 {
        background-attachment: scroll;
    }

    .step-3 {
        background-attachment: scroll;
    }

    .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 20px;
        min-height: 100vh;
        justify-content: center;
        overflow: hidden;
    }

    .step-1 .container {
        justify-content: flex-end;
        padding-bottom: 60px;
    }

    .step-content {
        max-width: 100%;
        padding: 10px 0;
    }

    .step-visual {
        padding: 10px 0;
    }

    .step-buttons {
        padding: 10px 0;
        gap: 20px;
        margin-top: 50px;
        margin-left: 0;
        position: static;
        bottom: auto;
        right: auto;
        transform: none;
        justify-content: center;
    }

    .button-img {
        max-width: 350px;
        max-height: 140px;
        min-width: auto;
        min-height: auto;
    }

    .step2-content-img {
        max-width: 95%;
        max-height: 70vh;
    }

    .step4-button {
        font-size: 1.8rem;
    }

    .step4-title {
        font-size: 3.6rem;
        letter-spacing: 1px;
    }

    .step4-button-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .step-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .step-number {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .step-description {
        margin-bottom: 20px;
    }

    .placeholder-image {
        width: 280px;
        height: 180px;
        max-height: 25vh;
    }

    .progress-indicator {
        right: 20px;
        gap: 15px;
    }

    .progress-dot {
        width: 10px;
        height: 10px;
    }

    /* Step 3 responsive */
    .step-3 .container {
        max-width: none;
        width: 100vw;
        padding: 0;
    }

    .step3-content {
        padding: 20px 0;
    }

    .cuota-section {
        padding: 20px;
        margin: 15px 0;
        border-radius: 0;
    }

    .cuota-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .precio-regular, .precio-expo {
        font-size: 1.1rem;
    }

    .comision {
        font-size: 1.0rem;
        margin: 10px 0 20px 0;
    }

    .inscribete-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .inscribete-img {
        max-width: 234px;
    }

    .footer-info p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar-img {
        content: url('images/HEADERMOBILE.png');
    }

    .footer-img {
        content: url('images/FOOTERMOBILE.png');
    }

    .step-1 {
        background: url('images/banner_movil.jpg') center center / cover no-repeat;
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: flex-end;
    }

    .step-2 {
        background-attachment: scroll;
    }

    .step-3 {
        background-attachment: scroll;
    }

    .container {
        padding: 15px;
        gap: 20px;
        min-height: 100vh;
        justify-content: center;
    }

    .step-1 .container {
        
        padding-bottom: 150px;
        padding-right: 15%;
    }

    .step-content {
        padding: 5px 0;
    }

    .step-visual {
        padding: 5px 0;
    }

    .step-buttons {
        padding: 5px 0;
        gap: 15px;
        flex-direction: column;
        margin-top: 50px;
        
        position: static;
        bottom: auto;
        right: auto;
        transform: none;
    }

    .button-img {
        max-width: 280px;
        max-height: 120px;
        min-width: auto;
        min-height: auto;
    }

    .step-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .placeholder-image {
        width: 240px;
        height: 150px;
        max-height: 20vh;
    }

    .step2-content-img {
        max-width: 100%;
        max-height: 60vh;
    }

    .step4-button {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .step4-title {
        font-size: 2.88rem;
        letter-spacing: 1px;
    }

    .step4-button-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Step 3 responsive mobile */
    .step-3 .container {
        max-width: none;
        width: 100vw;
        padding: 0;
    }

    .step3-content {
        padding: 15px 0;
    }

    .cuota-section {
        padding: 15px;
        margin: 10px 0;
        border-radius: 0;
    }

    .cuota-title {
        font-size: 2.1rem;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .precio-regular, .precio-expo {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .comision {
        font-size: 0.8rem;
        margin: 8px 0 15px 0;
    }

    .inscribete-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .inscribete-img {
        max-width: 208px;
    }

    .footer-info {
        margin-top: 20px;
    }

    .footer-info p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}
