/* Estilos para el carrusel hero */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Ajusta según prefieras, o usa height fijo */
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    background: #e6f0f5; /* Color de fondo por si las imágenes fallan */
}

@media (min-width: 768px) {
    .hero-carousel {
        aspect-ratio: 3/1;
    }
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel-img {
    height: 100%;
    width: 100%;
    /* Opción 1: Contiene la imagen completa sin recortes (puede dejar bandas) */
    object-fit: contain;
    /* Opción 2: Cubre todo el contenedor recortando si es necesario (más común) */
    /* object-fit: cover; */
    background-color: #e6f0f5;
}

/* Overlay superpuesto al carrusel (texto) */
.hero-carousel .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,64,99,0.85), rgba(0,64,99,0.5), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    color: white;
    text-align: left;
}

.hero-carousel .hero-overlay h1 {
    font-family: 'Segoe UI', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.hero-carousel .hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    opacity: 0.9;
    max-width: 500px;
}

.hero-carousel .hero-overlay .hero-badge {
    display: inline-block;
    background: #00bec6;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    width: fit-content;
}

/* Ajustes de indicadores y controles */
.hero-carousel .carousel-indicators {
    bottom: 10px;
}
.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
}
.hero-carousel .carousel-indicators .active {
    background: #00bec6;
    border-color: #00bec6;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 1.2rem;
}

.card-race {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #d0dce8;
    box-shadow: 0 2px 8px rgba(0,64,99,0.06);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-race:hover {
    border-color: #00bec6;
    box-shadow: 0 4px 16px rgba(0,64,99,0.08);
    transform: translateY(-3px);
}
.card-race .periodo {
    font-size: 0.7rem;
    font-weight: 600;
    color: #5a7a8e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.card-race .nombre-carrera {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #004063;
}
.card-race .precio {
    font-size: 0.9rem;
    color: #5a7a8e;
}
.card-race .pago-hoy {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #004063;
}
.card-race .pago-hoy span {
    color: #00bec6;
}
.btn-inscripcion {
    background-color: #00bec6;
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.btn-inscripcion:hover {
    background-color: #004063;
    color: #fff;
}
.btn-inscripcion-outline {
    background-color: transparent;
    color: #00bec6;
    border: 2px solid #00bec6;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.btn-inscripcion-outline:hover {
    background-color: #00bec6;
    color: #fff;
}
.modal-overlay {
    /*position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,64,99,0.3);
    backdrop-filter: blur(4px);*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,64,99,0.3);
    backdrop-filter: blur(4px);
}
.modal-overlay.open {
    display: flex;
}
.modal-content-custom {
    background: #fff;
    max-width: 640px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}
.modal-title-custom {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #004063;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}
.modal-resumen {
    background: #e6f0f5;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(0,190,198,0.2);
    margin-bottom: 1.5rem;
}
.modal-resumen .row-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
}
.modal-resumen .row-item .label {
    color: #5a7a8e;
    font-size: 0.9rem;
}
.modal-resumen .row-item .value {
    font-weight: 600;
    color: #004063;
    text-align: right; /*nuevo*/
}

#fila-nota .label {
    color: red !important;
    font-weight: bold;
}
#fila-nota .value {
    color: red !important;
    text-align: right;
}

.modal-resumen .row-item .value-highlight {
    color: #00bec6;
    font-weight: 700;
    font-size: 1.2rem;
}
.modal-resumen .divider {
    border-top: 1px solid rgba(0,190,198,0.2);
    margin: 0.5rem 0;
    padding-top: 0.5rem;
}
.btn-cancelar {
    background: none;
    border: none;
    color: #00bec6;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: background 0.2s;
}
.btn-cancelar:hover {
    background: #e6f0f5;
    border-radius: 0.5rem;
}
.btn-continuar {
    background: #00bec6;
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.4;
    cursor: not-allowed;
    transition: all 0.25s ease;
}
.btn-continuar.enabled {
    opacity: 1;
    cursor: pointer;
}
.btn-continuar.enabled:hover {
    background: #004063;
}
/* Hero */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 1rem;
    background: #e6f0f5;
    border: 1px solid rgba(0,190,198,0.2);
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-section {
        aspect-ratio: 3/1;
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,64,99,0.85), rgba(0,64,99,0.5), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
.hero-overlay h1 {
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}
.hero-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 400px;
}
.hero-badge {
    display: inline-block;
    background: #00bec6;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    width: fit-content;
}
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,190,198,0.15);
    box-shadow: 0 2px 8px rgba(0,64,99,0.06);
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.info-item .icon {
    font-size: 2rem;
    color: #00bec6;
}
.info-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #5a7a8e;
    font-weight: 500;
}
.info-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #004063;
}
.doc-section {
    text-align: center;
    margin: 2rem 0;
}
.doc-section h2 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #004063;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btn-doc {
    background: #00bec6;
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.btn-doc:hover {
    background: #004063;
}
.info-message {
    background: #e6f0f5;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,190,198,0.15);
    text-align: center;
    max-width: 768px;
    margin: 0 auto 2rem;
}
.info-message h3 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #004063;
}
.info-message .link-email {
    color: #00bec6;
    font-weight: 600;
    text-decoration: underline;
}
.info-message .link-email:hover {
    color: #004063;
}
.card-race-main {
    border-top: 4px solid #00bec6;
}
.verificacion {
    border-top: 1px solid #d0dce8;
    padding-top: 1.5rem;
    margin-top: 1rem;
}
.verificacion input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #b0c4d9;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.verificacion input:focus {
    outline: none;
    border-color: #00bec6;
    box-shadow: 0 0 0 3px rgba(0,190,198,0.15);
}
.verificacion .btn-verificar {
    width: 100%;
    background: #e6f0f5;
    color: #004063;
    border: none;
    padding: 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
}
.verificacion .btn-verificar:hover {
    background: #00bec6;
    color: #fff;
}
.text-brand-blue { color: #004063; }
.text-brand-teal { color: #00bec6; }
.bg-brand-blue { background-color: #004063; }
.bg-brand-teal { background-color: #00bec6; }
.bg-brand-blue-light { background-color: #e6f0f5; }
.border-brand-blue { border-color: #004063; }
.border-brand-teal { border-color: #00bec6; }
.btn-hover-brand-blue:hover { background-color: #004063; color: #fff; }
.btn-hover-brand-teal:hover { background-color: #00bec6; color: #fff; }

/* ===== MAPA Y CROQUIS ===== */
.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,64,99,0.06);
    border: 1px solid #d0dce8;
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}
.map-container img {
    max-height: 305px;
    width: 630px;
    /*object-fit: contain;   /* ajusta la imagen para que llene el contenedor sin deformarse */
    border-radius: 0.5rem;
    /*display: block;*/
}

/* ===== SECCIÓN DESCRIPCIÓN ===== */
.descripcion-section {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #d0dce8;
    margin-top: 2rem;
}
.descripcion-section h2 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #004063;
    margin-bottom: 1rem;
}
.descripcion-section p {
    color: #004063;
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .doc-card {
        padding: 1rem;
    }
    .doc-card .icon {
        font-size: 2rem;
    }
    .doc-card h3 {
        font-size: 1rem;
    }
    .descripcion-section {
        padding: 1.25rem;
    }
    .map-container iframe {
        height: 200px;
    }
}