/* Fuente Roboto desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bellota+Text:wght@300;400;500;700&display=swap');

body {
    font-family: 'Bellota Text', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    /*background-color: #8B0D21;*/
    /*background-color: transparent !important;*/
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Hero Section - altura completa */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel video,
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay negro semitransparente sobre el video/imagen *
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay más oscuro para mejor legibilidad *
    display: flex;
    align-items: center;
    padding-top: 80px; /* espacio para el navbar *
}*/

/* Texto del hero - alineado a la izquierda y con fuentes discretas */
.hero-overlay .container {
    text-align: left;
}

.hero-overlay .display-4 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    color: white;
}

.hero-overlay .display-1 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 200;
    color: #EAFF00 !important;
    letter-spacing: 2px;
    line-height: 1;
}

.event-info .distance {
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 0;
}

.date-location {
    background: #EAFF00;
    color: #333;
    font-weight: 500;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Weather Sidebar - responsive */
.weather-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    padding: 15px 10px;
    border-radius: 15px 0 0 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
    color: white;
    font-size: 11px;
    text-transform: capitalize;
}

.weather-item i {
    font-size: 1.5rem;
    color: #EAFF00;
}

/* Fuerza transparencia absoluta */
/* 1. Hacemos que el navbar flote sobre el contenido */
.navbar {
    position: absolute; /* Esto lo saca del flujo y lo pone encima */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060; /* Asegura que esté por encima de todo */
    background: rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(3px);
    border: none !important;
}

/* 2. Ajustamos el Hero para que no tenga padding superior innecesario */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 3. ¡IMPORTANTE! El overlay debe ser sutil para que se vea la imagen */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente: negro fuerte a la izquierda → casi transparente a la derecha */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
    display: flex;
    align-items: center;
    padding-top: 0;
    z-index: 1049;
}

/* Asegura que el carrusel ocupe todo el fondo */
.carousel, .carousel-inner, .carousel-item {
    height: 100% !important;
}

/* Elimina cualquier fondo gris que Bootstrap pueda aplicar */
.navbar .navbar-collapse,
.navbar .navbar-nav,
.navbar .nav-item,
.navbar .nav-link {
    background-color: transparent !important;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.3rem; /* ↑ más grande y legible */
    padding: 0.6rem 1.2rem; /* ↑ un poco más de espacio */
    transition: color 0.3s;
    /* Sombras recomendadas (Elige una): */
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Opción 1: Sombra suave y natural */
     text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8); /* Opción 2: Resplandor oscuro (más intenso) */
}

/* Efecto opcional al pasar el mouse para mayor dinamismo */
.navbar .nav-link:hover {
    color: #EAFF00 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px); /* Pequeño levante visual */
}

.carousel-item video {
    /* Fuerza el renderizado por hardware */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    
    /* Evita parpadeos en la transición */
    will-change: opacity, transform;
}

/* Si usas carousel-fade, asegúrate de que la transición sea suave */
.carousel-fade .carousel-item {
    transition-duration: 0.8s; 
    transition-property: opacity;
}

.disciplinas{
    background-color: transparent;
}

.card-disciplina {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card-disciplina:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}
.card-disciplina img {
    height: 200px;
    object-fit: cover;
}
.card-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-transform: uppercase;
}
.card-text {
    font-size: 0.95rem;
    color: #555;
    /*line-height: 1.6;*/
    font-weight: normal;
}

.bg-custom-grey {
        /* Fondo gris con un degradado radial sutil para dar profundidad */
        background: radial-gradient(circle at center, #b0b0b0 0%, #979797 100%);
        position: relative;
        overflow: hidden;
    }

/* Efecto de patrón sutil de fondo */
.bg-custom-grey::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff22 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.info-card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid #811a35; /* Acento azul en la base */
}

.info-card-modern:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.info-card-modern h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card-modern p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #811a35;
    transition: 0.3s;
}

.info-card-modern:hover .icon-circle {
    background: #f84700;
    color: #fff;
}

.bg-aviso{
    background: #049989;
}


.bg-orange-lecheria {
    background-color: #FF6B00 !important; /* Naranja vibrante */
    color: white !important;
    font-weight: 500;
}

/* Estilos para el Hero de páginas internas */
.hero-small {
    height: 60vh; /* Aproximadamente un poco menos de media pantalla */
    min-height: 200px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

/* El overlay debe ser similar al principal para que los textos sean legibles */
.hero-small .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

/* Ajuste del Nav dentro del Hero pequeño */
.hero-small .navbar {
    z-index: 10;
}

/* Breadcrumb personalizado para que encaje con tu estilo */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
    content: "/";
}

/* Colores y estilos base Trianz 2026 */
.bg-orange { background-color: #f84700 !important; }
.text-orange { color: #f84700 !important; }
.bg-orange-light { background-color: rgba(248, 71, 0, 0.1); }

.rounded-4 { border-radius: 1.5rem !important; }

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.card {
    transition: transform 0.3s ease, shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.table thead th {
    border-top: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1rem;
}

.badge.bg-orange {
    font-size: 0.9rem;
    width: 25px;
    height: 25px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Estilos TRIANZ 2026 Premium */
.bg-orange { background-color: #FF6B00 !important; }
.text-orange { color: #FF6B00 !important; }

/* Tarjetas con efecto Elevación */
.trianz-card {
    border: none;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.trianz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

/* Iconos circulares estilo App */
.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.1);
    color: #FF6B00;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Badge de categoría */
.badge-trianz {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Imagen con overlay de texto */
.img-tourist {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.img-tourist::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Paleta TRIANZ Premium */
:root {
    --trianz-orange: #FF6B00;
    --trianz-dark: #1a1a1a;
    --trianz-light: #f8f9fa;
}

.bg-orange { background-color: var(--trianz-orange) !important; }
.text-orange { color: var(--trianz-orange) !important; }

/* Efecto de Vidrio Esmerilado para Headers */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Tarjeta de Experiencia */
.card-experience {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-experience:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.img-zoom-container {
    overflow: hidden;
    height: 200px;
}

.img-zoom {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-experience:hover .img-zoom {
    transform: scale(1.1);
}

/* Botones con estilo TRIANZ */
.btn-trianz-outline {
    border: 2px solid var(--trianz-orange);
    color: var(--trianz-orange);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-trianz-outline:hover {
    background: var(--trianz-orange);
    color: white;
}

/* Contenedor del Logo */
.logo-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid; /* El color se define en el HTML */
    background-color: #fff;
    flex-shrink: 0;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que el logo no se deforme */
    padding: 3px; /* Espacio para que el logo no toque los bordes */
}

/* Estilo para las tarjetas de patrocinantes */
.sponsor-card {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.sponsor-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.img-sponsor {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%); /* Opcional: logos en gris */
    opacity: 0.7;
    transition: all 0.3s;
}

.sponsor-card:hover .img-sponsor {
    filter: grayscale(0%); /* Color al pasar el mouse */
    opacity: 1;
}

.banner-lecheria-competencia {
    /* TU FONDO EXACTO */
    background: repeating-linear-gradient(
        0deg,
        #8B0D21,
        #8B0D21 8px,
        #A91029 8px,
        #A91029 10px
    );
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 60px 0; /* Un poco más de aire para que luzca el patrón */
    border-top: 3px solid #EAFF00;
    border-bottom: 3px solid #EAFF00;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-lecheria-competencia:hover {
    /* Efecto de brillo al pasar el mouse */
    filter: brightness(1.2);
}

.banner-content-tri {
    text-align: center;
}

.text-neon-trianz {
    color: #EAFF00; /* TU COLOR AMARILLO */
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    /* Ajuste de tamaño para que sea impactante */
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    letter-spacing: 2px;
    line-height: 1.1;
}

.subtitle-neon {
    color: #EAFF00;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-top: 10px;
    display: block;
}

/* Icono que acompaña al texto */
.tri-icon {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-left: 15px;
    transition: transform 0.3s;
}

.banner-lecheria-competencia:hover .tri-icon {
    transform: translateX(10px);
}



.info-card-modern {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background-color: #fff;
    border-radius: 15px;
}

.info-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-color: #FF6B00; /* Color naranja de TRIANZ */
}

.info-card-modern .icon-circle {
    transition: all 0.3s ease;
}

.info-card-modern:hover .icon-circle {
    background-color: #FF6B00;
    color: white;
    transform: scale(1.1);
}

.text-orange {
    color: #FF6B00;
}

.btn-lecheria {
    background: #FF6B00;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    border: 2px solid #FF6B00;
    transition: 0.3s;
}

.banner-full-width:hover .btn-lecheria {
    background: transparent;
    border-color: white;
}

/* Tipografía extra pequeña para descripciones */
.x-small {
    font-size: 0.75rem;
}

/* Estilo para la lista de validación */
.step-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.step-item:hover {
    background: #fff;
    border-color: #FF6B00;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Ajuste del tamaño del Checkbox */
.form-check-input {
    width: 25px;
    height: 25px;
    margin-top: 0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #FF6B00;
    border-color: #FF6B00;
}

.step-label {
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    flex-grow: 1;
    margin-bottom: 0;
}

.btn-inscripcion-trianz {
    padding: 15px 50px;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
}

/* Colores del botón */
.btn-inscripcion-trianz:disabled {
    background-color: #ccc !important;
    color: #888 !important;
}

.btn-inscripcion-trianz:not(:disabled) {
    background-color: #28a745 !important;
    color: white !important;
}

/* Botón Inscripción Premium */
.btn-hero-trianz {
    background-color: #FF6B00 !important;
    color: white !important;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1051;
    overflow: hidden;
}

/* Animación de pulso para atraer atención */
.btn-hero-trianz::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: rgba(255, 107, 0, 0.5);
    z-index: -1;
    /*animation: pulse-orange 2s infinite;*/
}

@keyframes pulse-orange {
    0% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.btn-hero-trianz:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #e66000 !important;
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.6);
    color: white !important;
}

/* Ajuste posición escritorio */
.btn-desktop-pos {
    bottom: 50px;
    right: 50px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .display-4 { font-size: 2.5rem; }
    .border-end { border: none !important; border-bottom: 1px solid #dee2e6; padding-bottom: 20px; }
}

/* Responsive: ajustes para móviles */
@media (max-width: 767.98px) {
    .weather-sidebar {
        position: static;
        transform: none;
        top: auto;
        right: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding: 10px;
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .weather-item {
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .weather-item i {
        font-size: 1.2rem;
    }

    .hero-overlay {
        padding-top: 60px;
    }

    .hero-overlay .display-1 {
        font-size: 3.5rem;
    }

    .hero-overlay .display-4 {
        font-size: 1.8rem;
    }

    .event-info .distance {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .date-location {
        font-size: 1rem;
        padding: 6px 12px;
    }
}

/* Footer */
.main-footer {
    background: #E5E5E5;
    color: #666;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.social-links a {
    color: #666;
    margin: 0 10px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #8B0D21;
}

/* Cards de disciplinas */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #8B0D21;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    color: #555;
}

/* Info cards (reglamento, etc.) */
.info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #8B0D21;
    background: #f9f9f9;
}

.info-card h3 {
    color: #8B0D21;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Banner Lechería */
.banner-lecheria {
    background: repeating-linear-gradient(
        0deg,
        #8B0D21,
        #8B0D21 8px,
        #A91029 8px,
        #A91029 10px
    );
    color: #EAFF00;
    text-align: center;
    padding: 20px 0;
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* Patrocinantes */
.sponsor-logo {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    color: #8B0D21;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    background: #f5f5f5;
    border-color: #8B0D21;
    transform: scale(1.05);
}

/* Botón de inscripción fijo en móvil */
.fixed-inscripcion .btn {
    background: #EAFF00;
    color: #333;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 0;
    border-radius: 0;
}

.fixed-inscripcion .btn:hover {
    background: #d4e600;
    color: #222;
}

/* Footer con fondo de imagen y overlay */
.footer-bg-overlay {
    position: relative;
    background-image: url('../img/footer-bg.jpg'); /* Cambia la ruta si es diferente */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    color: white;
}

.footer-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Overlay oscuro */
    z-index: 1;
}

.footer-bg-overlay > .container {
    position: relative;
    z-index: 2;
}