/* 
Copa España Fútbol Base - Estilos principales
Colores principales: 
- Azul marino: #0a2463
- Blanco: #ffffff
- Dorado: #d4af37
- Rojo: #e63946
*/

/* Estilos generales */
:root {
    --primary-color: #0a2463;
    --secondary-color: #d4af37;
    --accent-color: #e63946;
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --gray-color: #f8f9fa;
    --text-color: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 2rem;
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #051c4e;
    border-color: #051c4e;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-light:hover {
    color: var(--primary-color);
}

/* Navegación */
.navbar {
    background-color: rgba(10, 36, 99, 0.95);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

.inscripcion-btn {
    margin-left: 15px;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.inscripcion-btn:hover {
    background-color: #d12f3c;
    border-color: #d12f3c;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.countdown-container {
    margin: 2rem 0;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.countdown-item {
    background: linear-gradient(145deg, rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 10px;
    min-width: 110px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-item:hover::before {
    opacity: 1;
}

.countdown-item span {
    display: block;
    position: relative;
    z-index: 1;
}

#days, #hours, #minutes, #seconds {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-event-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sobre el Torneo */
.stat-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categorías y Reglamento */
.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-details {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.category-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.category-details li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.reglamento-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.formato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.formato-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 40px;
    height: 40px;
    background-color: rgba(10, 36, 99, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sedes y Alojamiento */
.sede-item {
    background-color: #ffffff;
    border: 1px solid rgba(10, 36, 99, 0.12);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sede-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(10, 36, 99, 0.2);
}

.sede-item img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.sede-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sede-item h4 i {
    color: var(--secondary-color);
}

.sede-item p {
    margin-bottom: 0;
    color: #666666;
}

/* Rejilla para Sedes */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 991.98px) {
    .sedes-grid {
        grid-template-columns: 1fr;
    }
}


.hotel-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

.hotel-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hotel-img img {
    max-height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.hotel-stars {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.hotel-info {
    padding: 20px;
}

.hotel-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hotel-description {
    margin-bottom: 15px;
    color: #666;
}

/* Equipos Participantes */
.equipos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.equipo-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.equipo-card:hover {
    transform: translateY(-5px);
}

.equipo-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.equipo-nombre {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.equipo-comunidad {
    font-size: 0.8rem;
    color: #666;
}

/* Noticias y Actualidad */
.noticia-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

.noticia-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.noticia-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.noticia-content {
    padding: 20px;
}

.noticia-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Galería Multimedia */
.gallery-filter {
    margin-bottom: 30px;
}

.btn-filter {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 36, 99, 0), rgba(10, 36, 99, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-icon {
    opacity: 1;
}

/* Inscripción */
.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 36, 99, 0.25);
}

/* Contacto */
.contact-info {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    min-width: 30px;
}

.contact-item h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.contact-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    height: 60px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.sponsors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.sponsor-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover {
    opacity: 1;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-legal li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal li a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .inscripcion-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 10px;
    }

    #days, #hours, #minutes, #seconds {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .countdown-container {
        margin: 1.5rem 0;
    }

    #countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 8px;
    }

    #days, #hours, #minutes, #seconds {
        font-size: 1.8rem;
    }

    .stat-card {
        margin-bottom: 20px;
    }


    .equipos-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 5px;
    }

    #days, #hours, #minutes, #seconds {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .equipos-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .contact-form-container,
    .contact-info {
        padding: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.hotel-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hotel-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: default;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.hotel-thumb:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.hotel-img img {
  max-height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .hotel-thumb { width: 80px; height: 80px; }
  .hotel-img img { max-height: 200px; }
}