/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

/* ===== VARIABLES ===== */
:root {
  --azul-oscuro: #002b5c;
  --azul-claro: #0077ff;
  --blanco: #ffffff;
  --rojo: #e63946;
  --borde-suave: #eef4ff;
  --sombra: rgba(0, 0, 0, 0.15);
}

/* ===== ESTRUCTURA GLOBAL ===== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(90deg, #eaf1fb 0%, #ffffff 50%, #eaf1fb 100%);
  color: var(--azul-oscuro);
  overflow-x: hidden;
  position: relative;
}

/* ===== BARRAS LATERALES ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 14px;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(to bottom, var(--rojo), #0057b8 90%, var(--azul-oscuro));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}
body::before { left: 0; }
body::after { right: 0; }

/* ===== LEMAS LATERAIS ===== */
html::before,
html::after {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 1rem;
  color: var(--azul-oscuro);
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
html::before { content: "UN POBO"; left: 30px; }
html::after  { content: "UN SENTIMENTO"; right: 30px; }

@media (max-width: 1024px) {
  html::before,
  html::after {
    display: none;
  }
}

/* ===== HEADER ===== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--azul-oscuro), #0057b8, #4da3ff);
  padding: 10px 30px;
  color: var(--blanco);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.menu li a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.menu li a:hover,
.menu li a.active {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px 8px;
}

/* ===== CONTENIDO ===== */
.calendario {
  text-align: center;
  padding: 60px 20px 80px;
  flex: 1;
}

.calendario h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--azul-oscuro);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.calendario h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rojo);
  margin: 10px auto 0;
  border-radius: 2px;
}

.calendario .descripcion {
  color: #333;
  font-weight: 500;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ===== BLOQUES DE VOLTA ===== */
.volta {
  background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 30px 25px 40px;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.volta h2 {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 14px 0;
  border-radius: 10px;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  width: 85%;
  max-width: 340px;
  margin: -10px auto 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.volta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, var(--rojo) 0%, #0057b8 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.1;
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔹 siempre dos columnas iguales */
  gap: 20px;
  width: 100%;
  max-width: 850px; /* 🔹 más realista para móvil */
  margin: 0 auto;
  padding: 0 15px;
  align-items: stretch;
}

/* ===== TARJETAS DE JORNADA ===== */
.jornada-card {
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 20px 10px;
  transition: transform 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  width: 100%;
}
.jornada-card:hover {
  transform: scale(1.03);
  background: #f7faff;
}

.jornada-card h2 {
  background: var(--azul-oscuro);
  color: var(--blanco);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 8px;
}

.jornada-card p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.jornada-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}


.icono {
  font-weight: 700;
  color: var(--rojo);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, var(--azul-oscuro), #0057b8);
  color: var(--blanco);
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  margin-top: auto;
}
footer::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rojo);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  /* Menú móvil */
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #06335f;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }
  .menu.active { display: flex; }
  .menu-toggle { display: block; }

  /* Agrupar jornadas de 2 en 2 */
.calendario-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    justify-items: stretch; /* 🔹 Igual ancho columnas */
  }

  .jornada-card {
    width: 100%;
    padding: 16px 10px;
  }

  .jornada-card h2 {
    font-size: 1rem;
  }

  .jornada-card img {
    width: 28px;
    height: 28px;
  }

  .icono {
    font-size: 0.85rem;
  }
}

/* En pantallas muy pequeñas */
@media (max-width: 350px) {
  .calendario-grid {
    grid-template-columns: 1fr;
  }
}
