/* Estilos generales */
body {
	background-color: #e6f2ff; /* Este es el azul pálido */
	margin: 0;
	padding: 0;
}
header {
	background-color: #003366;
	color: white; /* Quitamos padding lateral para usar el contenedor */
	text-align: center;
	border-radius: 8px;
	padding-top: 60px;
	padding-bottom: 60px;
}

/* Creamos un contenedor interno para el header */
header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* El mismo margen que pusimos abajo */
}

/* El nombre principal: CORTINA MILANO */
.logo-cortina {
    font-size: 3.5rem; /* Tamaño grande y claro */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px; /* Espaciado entre letras elegante */
    margin-bottom: 10px;
    display: block;
}

/* El distintivo inferior: XXV Giochi Olimpici... */
.jjoo-badge {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jjoo-badge span:first-child {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Resalte de MILANO CORTINA 2026 */
.olympic-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00a8b5; /* El turquesa que usamos antes para el hielo */
    letter-spacing: 1px;
}

/* Responsividad: si el móvil es pequeño, bajamos un poco el tamaño */
@media (max-width: 600px) {
    .logo-cortina { font-size: 2.2rem; }
    .olympic-highlight { font-size: 1.3rem; }
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0px;
	background-color: #f4f7f9;
	color: #EEE;
}

header {
    background: linear-gradient(135deg, #00529b, #003366);
    color: white;
    padding: 2rem;
    text-align: center;
}

.container {
    max-width: 1200px; /* Evita que se estire demasiado en pantallas gigantes */
    margin: 0 auto;    /* Centra el bloque horizontalmente */
    padding: 0 40px;   /* Deja un "colchón" de espacio a izquierda y derecha */
}


/* El sistema de rejilla */
.deportes-grid {
    display: grid;
    /* Crea columnas de mínimo 200px que llenan el espacio */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* La tarjeta de deporte */
.deporte-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.deporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.pictograma {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Ajuste para imágenes o SVGs dentro de la tarjeta */
.pictograma img {
    width: 60px;
    height: 60px;
}
.deportes-grid {
    display: grid;
    /* Creamos 4 columnas exactamente iguales */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; /* Espacio entre tarjetas */
    max-width: 1100px;
    margin: 40px auto;
}

/* Responsividad: Si la pantalla es pequeña (móvil), pasamos a 2 columnas o 1 */
@media (max-width: 992px) {
    .deportes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .deportes-grid {
        grid-template-columns: 1fr;
    }
}
.deporte-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Hace que las tarjetas sean cuadradas */
    transition: all 0.3s ease;
}

.deporte-card span {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #003366; /* Azul olímpico */
    margin-top: 10px;
}
/* Estilo base para todas las tarjetas */
.deporte-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent; /* Acento de color en la base */
}

/* Diferenciación para NIEVE */
.deporte-card.nieve {
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    border-bottom-color: #00529b; /* Azul oscuro */
}

/* Diferenciación para HIELO */
.deporte-card.hielo {
    background: linear-gradient(to bottom, #ffffff, #e0fcff);
    border-bottom-color: #00a8b5; /* Turquesa hielo */
}

/* Efectos al pasar el ratón */
.deporte-card.nieve:hover {
    background: #00529b;
}
.deporte-card.hielo:hover {
    background: #00a8b5;
}

/* Cambiar el texto a blanco cuando pasas el ratón */
.deporte-card:hover span {
    color: white;
}

/* Invertir el color del pictograma si es negro para que se vea blanco en el hover */
.deporte-card:hover .pictograma img {
    filter: brightness(0) invert(1);
}
/* --- TARJETAS DE NIEVE: Look sólido y limpio --- */
.deporte-card.nieve {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #d1e3f8;
    border-bottom: 6px solid #00529b; /* Azul Profundo */
}

.deporte-card.nieve:hover {
    box-shadow: 0 10px 20px rgba(0, 82, 155, 0.2);
    transform: translateY(-5px);
}

/* --- TARJETAS DE HIELO: Look cristalino y degradado --- */
.deporte-card.hielo {
    /* Degradado que imita el reflejo del hielo */
    background: linear-gradient(135deg, #e0fcff 0%, #ffffff 50%, #b2f2f9 100%);
    border: 1px solid #afe9f0;
    border-bottom: 6px solid #00a8b5; /* Turquesa Glaciar */
    position: relative;
    overflow: hidden;
}

/* Añadimos un pequeño brillo extra al hielo */
.deporte-card.hielo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.deporte-card.hielo:hover {
    box-shadow: 0 10px 20px rgba(0, 168, 181, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(135deg, #b2f2f9 0%, #ffffff 100%);
}

/* Ajuste de los pictogramas para que resalten sobre los fondos */
.pictograma img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    width: 65px;
    height: 65px;
    transition: transform 0.3s ease;
}

.deporte-card:hover .pictograma img {
    transform: scale(1.1) rotate(3deg); /* Pequeña animación juguetona */
}



/* --- ESTILO BASE PARA TODAS LAS TARJETAS --- */
.deporte-card {
    background: #ffffff; /* Fondo blanco puro de base */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}

/* --- NIEVE: Azul muy tenue --- */
.deporte-card.nieve {
    /* Un azul blanquecino casi imperceptible */
    background: linear-gradient(135deg, #ffffff 60%, #f2f7ff 100%);
    border-left: 4px solid #00529b; /* El color se nota más en el borde */
}

/* --- HIELO: Turquesa muy tenue --- */
.deporte-card.hielo {
    /* Un turquesa blanquecino casi imperceptible */
    background: linear-gradient(135deg, #ffffff 60%, #f0fdfd 100%);
    border-left: 4px solid #00a8b5;
}

/* --- EFECTO HOVER: Muy suave --- */
.deporte-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #d0d0d0;
}

/* --- AJUSTE DE TEXTO --- */
.deporte-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444; /* Gris oscuro en lugar de negro puro */
    margin-top: 12px;
    text-align: center;
}

/* --- AJUSTE DE PICTOGRAMAS --- */
.pictograma img {
    width: 60px;
    height: 60px;
    opacity: 0.9;
}
/* Contenedor principal 4x4 */
.deportes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas */
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

/* Tarjeta básica limpia */
.deporte-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px; /* Bordes menos redondeados para un look más serio */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    transition: background 0.2s ease;
}

/* El toque de color sutil (solo en el borde si quieres) */
.deporte-card.nieve {
    border-top: 4px solid #00529b;
}

.deporte-card.hielo {
    border-top: 4px solid #00a8b5;
}

/* Pictogramas */
.pictograma img {
    width: 65px;
    height: 65px;
    display: block;
}

/* Texto */
.deporte-card span {
    margin-top: 15px;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}
#countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    color: #2c3e50; /* Un tono oscuro elegante */
}

.time-block {
    text-align: center;
    min-width: 80px;
}

.time-block span {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.time-block p {
    margin-top: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
#countdown-container {
    background-color: #003572; /* Azul Italia */
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: inline-block; /* Para que no ocupe todo el ancho si no quieres */
    text-align: center;
}

.cd-title {
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
}

.cd-item {
    margin: 0 5px;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.cd-item b {
    color: #ffcc00; /* Dorado para destacar los números */
    font-size: 16px;
}
.borrar {
	clear: both;
	height: 10px;
	padding: 3px;
}
#countdown {
    background: linear-gradient(90deg, #004687 0%, #009384 100%);
    color: white;
    padding: 20px;
    border-radius: 8px; /* Bordes suaves */
}

/* pie de sedes */
/* --- FOOTER OLÍMPICO - PETERDREAMWORLD.COM --- */

.olympic-footer {
    background: linear-gradient(135deg, #001529 0%, #003366 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
    text-align: center;
    border-top: 5px solid #00a8b5; /* El turquesa del hielo */
    clear: both; /* Evita que se monte sobre otros elementos */
    width: 100%;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: #00a8b5;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px); /* Pequeño salto al pasar el ratón */
}

.footer-bottom {
    font-size: 0.85rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* Detalle de la bandera italiana minimalista */
.flag-mini {
    width: 30px;
    height: 10px;
    margin: 12px auto 0;
    background: linear-gradient(to right, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%);
    border-radius: 2px;
}
.btn-regresar {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #3498db; /* Azul profesional */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-regresar:hover {
  background-color: #2980b9; /* Un azul más oscuro al pasar el mouse */
}

.icono {
  margin-left: 8px;
}

.lemas {
	font-weight: bold;
	font-size: 36px;
  text-align: center;
	font-style: italic;
	text-transform: uppercase;
}
.verde { color: #008C45; }
.blanco { 
  color: #FFFFFF; 
  text-shadow: 1px 1px 2px #000; /* Sombra suave para que el blanco se lea bien */
}
.rojo { color: #CD212A; }

/* FIX desborde por padding + max-width */
.container,
header .header-content {
  box-sizing: border-box;
}
@media (min-width: 1400px) {
  .container { max-width: 1100px; }
  .vibe-style { font-size: 32px; }
  .cd-item b { font-size: 2.1rem; }
  .deporte-card { padding: 16px; }
  .deportes-grid { gap: 18px; }
}
/* ===== Ajuste hobby-friendly para móvil/tablet ===== */
@media (max-width: 992px) {

  /* Menos márgenes laterales en pantallas pequeñas */
  .container,
  header .header-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header más compacto */
  header {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  /* Logo: que no se coma media pantalla */
  .logo-cortina img {
    max-width: 150px;
    height: auto;
  }

  /* Titulares un pelín más contenidos */
  .olympic-highlight { font-size: 1.4rem; }
  .vibe-style { font-size: 28px; margin: 18px 0; }

  /* Contador más compacto y q*
/* ===== PC: footer más compacto ===== */
@media (min-width: 993px) {

  .olympic-footer {
    padding: 24px 0 14px;   /* antes 40px 0 20px */
    margin-top: 30px;       /* antes 50px */
  }

  .footer-links {
    margin: 16px 0;         /* antes 25px */
  }

  .footer-bottom {
    margin-top: 12px;       /* antes 20px */
    padding-top: 12px;      /* antes 20px */
  }
}
/* --- EFECTOS FINALES --- */
html {
  scroll-behavior: smooth;
}
::selection {
  background: #00a8b5; /* El turquesa que usamos para el hielo */
  color: white;
}
/* Definimos que el estado inicial y el visitado sean negros */
a:link, a:visited {
  color: black;
  text-decoration: none; /* Esto quita el subrayado, si lo desea */
}

/* El estado cuando pasas el ratón (hover) y cuando haces clic (active) */
a:hover, a:active {
  color: #00a8b5; /* Por ejemplo,  el color corporativo de Milano-Cortina */
  text-decoration: underline; /* Opcional: que aparezca el subrayado al pasar el ratón */
}