/* =================================
   VARIABLES GLOBALES
================================= */
:root {
  --azul-oceano: #046994;
  --arena: #F4E9D8;
  --texto: #0f172a;
  --accent: #FF6B35;
  --fondo-oscuro: #0f172a;
  --fondo: #fdfdfd;

  --gradient1: linear-gradient(135deg,#046994,#00BCD4);
  --gradient2: linear-gradient(135deg,#FF6B35,#FF844F);
  --gradient3: linear-gradient(135deg,#E91E63,#FF6B35);
  --gradient4: linear-gradient(135deg,#32CD32,#46f14e);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
}

/* =================================
   HEADER
================================= */
.header {
  background: linear-gradient(
    180deg,
    rgba(4,105,148,0.95),
    rgba(4,105,148,0.7)
  );
  color: white;
  text-align: center;
  padding: 60px 16px 40px;
  position: relative;
}

.header h1 {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.header p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f4f4f4;
}

/* =================================
   NAV
================================= */
.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: white;
  color: var(--accent);
}

/* =================================
   MENÚ HAMBURGUESA
================================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 16px;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animación icono */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =================================
   CONTENEDORES
================================= */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 16px;
}

/* =================================
   HOME HERO
================================= */
.home-hero {
  max-width: 900px;
  margin: 60px auto 40px;
  text-align: center;
  padding: 0 16px;
}

.home-hero h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.home-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* =================================
   HOME GRID PRINCIPAL
================================= */
.home-sections {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* TARJETAS PRINCIPALES */
.home-card {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  padding: 26px;
  color: white;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.25)
  );
}

.home-card a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.home-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.home-card p {
  font-size: 1rem;
  max-width: 90%;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

/* Gradientes por sección */
.spots { background: var(--gradient1); }
.modalidades { background: var(--gradient2); }
.noticias { background: var(--gradient3); }
.eventos { background: var(--gradient4); }

/* =================================
   GRID GENERAL
================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 20px;
}

/* =================================
   TARJETAS (PREVISIÓN)
================================= */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2,6,23,0.08);
  transition: transform 0.25s ease;
}

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

.pad {
  padding: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card iframe {
  border-radius: 16px 16px 0 0;
}

/* =================================
   BOTONES
================================= */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #ff844f;
}

/* =================================
   FOOTER
================================= */
.footer {
  background: var(--fondo-oscuro);
  color: white;
  padding: 30px;
  text-align: center;
  margin-top: 80px;
}

/* =================================
   TARJETAS DE MODALIDADES - IMÁGENES CORREGIDAS
================================= */
.category-icon{
  width:100%;
  height:140px; /* altura uniforme para todas las cards */
  border-radius:8px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.category-icon img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

/* =================================
   RESPONSIVE
================================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: rgba(4,105,148,0.98);
    padding: 16px;
    border-radius: 12px;
    margin-top: 15px;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}.header {
  background: linear-gradient(180deg, rgba(4,105,148,0.9), rgba(4,105,148,0.6));
  color: white;
  text-align: center;
  padding: 48px 16px;
  position: relative;
}

.header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.header p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f4f4f4;
}

/* =================================
   ANIMACIÓN
================================= */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
