* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #7A1737 0%, #91435b 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="2.5" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.2;0.1" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat; */
    background-image: url('../img/bici.svg');
    background-size: cover;
    animation: float 20s linear infinite;
    /* top: -50%; */
    left: 30%;
    opacity: 0.2;

}

/* Parallax Elements */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

.bike-parallax {
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    color: white;
    animation: parallaxFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.bike-parallax:nth-child(1) {
    top: 10%;
    left: 40%;
    animation-delay: 0s;
    opacity: 1;
}

.bike-parallax:nth-child(2) {
    bottom: -6%;
    right: 15%;
    animation-delay: 5s;
    font-size: 6rem;
    opacity: 0.9;
    z-index: 1;
}

.bike-parallax:nth-child(3) {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
    font-size: 6rem;
}

.bike-parallax:nth-child(4) {
    top: 30%;
    left: 10%;
    animation-delay: 0s;
    font-size: 6rem;
    opacity: 0.3;
}

.imagen-fondo-parallax {
    position: absolute;
    opacity: 0.4;
    height: 100%;
    z-index: -1;
}

@keyframes parallaxFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-30px) rotate(8deg);
    }
}

/* Cycling Path SVG */
.cycling-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><pattern id="road" patternUnits="userSpaceOnUse" width="40" height="10"><rect width="40" height="10" fill="rgba(0,0,0,0.7)"/><rect width="20" height="2" y="4" fill="rgba(255,255,255,0.5)"/></pattern></defs><path d="M0,150 Q300,100 600,130 T1200,120" stroke="url(%23road)" stroke-width="20" fill="none"/></svg>'); */

    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><pattern id="road" patternUnits="userSpaceOnUse" width="40" height="10"><rect width="40" height="10" fill="rgba(255,255,255,0.1)"/><rect width="20" height="2" y="4" fill="rgba(255,255,255,0.5)"/></pattern></defs><path d="M0,150 Q300,100 600,130 T1200,120" stroke="url(%23road)" stroke-width="20" fill="none"/><path d="M0,150 Q300,100 600,130 T1200,120" stroke="rgba(255,255,255,0.2)" stroke-width="2" fill="none"/></svg>'); */
    animation: roadMove 20s linear infinite;
}

@keyframes roadMove {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 100px;
    }
}

/* City Silhouette */
.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 150"><rect x="0" y="80" width="80" height="70" fill="rgba(0,0,0,0.2)"/><rect x="100" y="60" width="60" height="90" fill="rgba(0,0,0,0.15)"/><rect x="180" y="90" width="40" height="60" fill="rgba(0,0,0,0.1)"/><rect x="240" y="40" width="70" height="110" fill="rgba(0,0,0,0.2)"/><rect x="330" y="70" width="50" height="80" fill="rgba(0,0,0,0.15)"/><rect x="400" y="50" width="80" height="100" fill="rgba(0,0,0,0.1)"/><rect x="500" y="85" width="45" height="65" fill="rgba(0,0,0,0.2)"/><rect x="570" y="35" width="75" height="115" fill="rgba(0,0,0,0.15)"/><rect x="670" y="75" width="55" height="75" fill="rgba(0,0,0,0.1)"/><rect x="750" y="55" width="65" height="95" fill="rgba(0,0,0,0.2)"/><rect x="840" y="90" width="40" height="60" fill="rgba(0,0,0,0.15)"/><rect x="900" y="30" width="90" height="120" fill="rgba(0,0,0,0.1)"/><rect x="1020" y="65" width="60" height="85" fill="rgba(0,0,0,0.2)"/><rect x="1100" y="80" width="100" height="70" fill="rgba(0,0,0,0.15)"/></svg>') repeat-x; */
    background-image: url('../img/fondo_ciudad2.png');
    background-size: contain;
    background-repeat: repeat-x;
    /* opacity: 0.3; */
    animation: cityMove 20s linear infinite;

}

@media (max-width: 768px) {
    .city-silhouette {
        background-size: cover;
    }
}

/* @keyframes cityMove {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(100px);
            }
        } */

@keyframes cityMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 150px 0;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-bike {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    animation: floatAcross 25s linear infinite;
    animation-fill-mode: forwards;
}

.floating-bike:nth-child(1) {
    top: 10%;
    animation-delay: 0s;
}

.floating-bike:nth-child(2) {
    top: 30%;
    animation-delay: 10s;
}

.floating-bike:nth-child(3) {
    top: 50%;
    animation-delay: 5s;
}

@keyframes floatAcross {
    0% {
        left: 105%;
        transform: translateY(0px);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(5px);
    }

    75% {
        transform: translateY(-5px);
    }

    100% {
        left: -5%;
        transform: translateY(0px);
        opacity: 0;
    }
}



/* Parallax Sections */
.parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}



.parallax-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50px) translateY(-50px);
    }
}

.bike-icon {
    font-size: 4rem;
    margin-top: 20px;
    animation: bounce 2s ease-in-out infinite;
    max-height: 100px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.date-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* Event Details Section */
.event-details {
    background: white;
    padding: 60px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;

}

.detail-card {
    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
    background-image: url('../img/Texturas03.png');
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.detail-card h3 {
    color: #7a0000;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card .icon {
    font-size: 1.8rem;
}

.detail-item {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    min-width: 140px;
}

.detail-value {
    display: flex;
    flex-direction: column;
    color: #B98648;
    font-weight: 500;
    text-align: right;

}

.detail-value-description {
    font-weight: 300;
    font-size: 0.9rem;
}

/* Prizes Section */
.prizes {
    background: url('../img/Textura-02.png');
    color: white;
    padding: 30px 0;
    text-align: center;
}

.prizes h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.prize-card {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Requirements Section */
.requirements {
    position: relative;
    z-index: 2;
    /* backdrop-filter: blur(10px);
    background: url('../img/Textura-04.png'); */
    padding: 60px 0;
}

.requirements h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #282828;
    margin-bottom: 50px;
}

.req-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.req-item {
    /* background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); */
    background-image: url('../img/Texturas03.png');

    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #B98648;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.req-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.req-number {
    background: #7a0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.req-title {
    font-weight: 700;
    color: #7a0000;
    font-size: 1.1rem;
}

.req-desc {
    color: #374151;
    margin-top: 8px;
}

/* Registration CTA */
.registration-cta {
    /* background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); */
    background-image: url('../img/Textura-01.png');
    background-size: cover;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    background: white;
    color: #7a0000;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #dad9d9;
    color: rgb(0, 0, 0);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.hashtags {
    font-size: 1.2rem;
    color: #B98648;
    margin-top: 20px;
    font-weight: bold;
}

.note {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

/* Transiciones en textos */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.rotate-in.animated {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Glitch effect para títulos */
.glitch {
    position: relative;
    color: #40de0c;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px var(--veracruz-red);
    }

    20% {
        text-shadow: -2px -2px var(--veracruz-blue);
    }

    40% {
        text-shadow: 2px -2px var(--veracruz-green);
    }

    60% {
        text-shadow: -2px 2px var(--veracruz-gold);
    }

    80% {
        text-shadow: 2px 2px var(--veracruz-red);
    }

    100% {
        text-shadow: -2px -2px var(--veracruz-blue);
    }
}

.logos-footer img {
    width: 60%;
}

.formulario-container {
    width: 100%;
    max-width: 700px;
    /* O el tamaño máximo que quieras */
    margin: 0 auto;
    /* Centrar el formulario */
}

.formulario-container iframe {
    width: 100%;
    height: 800px;
    /* Ajusta según la altura de tu formulario */
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .date-highlight {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-card {
        padding: 20px;
    }

    .prizes h2,
    .requirements h2 {
        font-size: 2rem;
    }

    .prizes {
        font-size: 0.9rem;
    }

    .requirements {
        padding: 30px 0;
    }

    .requirements h2 {
        margin-bottom: 30px;
    }

    .event-details {
        padding: 30px 0;
    }

    .req-item {
        font-size: 0.8rem;
    }

    .registration-cta {
        padding: 30px 0;
        font-size: 0.9rem;
    }

    .imagen-fondo-parallax {

        height: 80%;

    }

    .detail-label {

        min-width: 110px;
    }

    .logos-footer img {
        width: 100%;
    }

    .formulario-container {

        max-width: 500px;
        /* O el tamaño máximo que quieras */

    }

    .formulario-container iframe {

        height: 600px;
        /* Ajusta según la altura de tu formulario */

    }

}

.header-img {
    display: flex;
    justify-content: center;
    margin-top: -55px;
}

.header-img img {
    max-height: 65px;
}

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px 0;
    width: 150px;
    align-self: end;
}

.btn-mapa:hover {
    background-color: #e0e0e0;
    color: #333;
}

.mapa-container {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.btn-cerrar {
    display: inline-block;
    margin-top: 8px;
    background-color: #ff5c5c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
}

.btn-cerrar:hover {
    background-color: #e04848;
}

.bg-dark {
    background-color: #720F3C !important;
}

.text-bg-dark {
    background-image: url('../img/Textura-02.png');
    background-size: cover;
}