/*
 * NÍJAR.NET - CSS Principal
 * Versión: 2.1 - Depurada y Optimizada
 * Fecha: 2026-03-26
 * 
 * ÍNDICE:
 * 1. Variables CSS
 * 2. Reset y Base
 * 3. Utilidades
 * 4. Layouts (Grid)
 * 5. Sistema de Cards
 * 6. Botones
 * 7. Hero Section
 * 8. Navegación
 * 9. Secciones específicas
 * 10. Filtros
 * 11. Tabs
 * 12. Footer
 * 13. Animaciones
 * 14. Widget Tiempo
 * 15. Iconos
 * 16. Responsive
 * 17. Banner Cookies
 * 18. Footer - Alineación
 */

/* ============================================
   1. VARIABLES CSS
   ============================================ */

:root {
  /* Colores principales */
  --color-terracotta: #E07A5F;
  --color-deep-sea: #3D405B;
  --color-sage: #81B29A;
  --color-sand: #F4F1DE;
  --color-off-white: #FAF9F6;
  --color-charcoal: #2d3436;

  /* Superficies */
  --surface-base: #FAF9F6;
  --surface-low: #F4F3F2;
  --surface-mid: #EEEEED;
  --surface-high: #E9E8E7;
  --surface-highest: #E3E2E1;
  --surface-white: #FFFFFF;

  /* Texto */
  --text-primary: #1A1C1C;
  --text-secondary: #424750;
  --text-muted: #737781;
  --text-on-dark: #FFFFFF;
  --text-on-color: #FFFFFF;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* Tipografías */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Espaciado */
  --container-width: 1200px;
  --section-padding: 8rem 2rem;
}


/* ============================================
   2. RESET Y BASE
   ============================================ */


h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-deep-sea);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  margin-top: 0; /* IMPORTANTE: evita espacio arriba */
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem; /* Solo h1 tiene margen arriba en contenido */
}

h2 {
  font-size: 2rem;
  margin-top: 3rem; /* Espacio antes de h2 en contenido */
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

/* Hero h1 (caso especial) */
.hero h1 {
  margin-top: 0; /* Sin margin en hero */
  margin-bottom: 1rem;
}

/* Títulos de sección */
.section-title {
  text-align: center;
  font-size: 2.75rem;
  margin-top: 0; /* Sin espacio arriba */
  margin-bottom: 2rem;
  color: var(--color-deep-sea);
}

/* Subtítulos */
.section-subtitle {
  text-align: center;
  color: var(--color-terracotta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0; /* Sin espacio arriba */
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

/* ESPECÍFICO PARA PÁGINAS DE DETALLE */
.page-header h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-content h2:first-child {
  margin-top: 0; /* Primer h2 sin margen arriba */
}

/* Breadcrumb siempre con espacio consistente */
.breadcrumb {
  display: inline-block;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  margin-top: 0;
  font-weight: 400;
}

.breadcrumb a {
  color: #999;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--color-terracotta);
}
.breadcrumb:hover { color: var(--color-terracotta); }

/* Botones de "Volver" unificados */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-deep-sea);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 2rem;
  text-decoration: none;
}

.btn-back:hover {
  background: var(--color-terracotta);
  transform: translateX(-4px);
}

.btn-back::before {
  content: '←';
  font-size: 1.2em;
}

/* Responsive para títulos */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-top: 1.5rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

  h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
  }
}


/* ============================================
   3. UTILIDADES
   ============================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding);
}

.text-center {
  text-align: center;
}


/* ============================================
   4. LAYOUTS (GRID)
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}


/* ============================================
   5. SISTEMA DE CARDS
   ============================================ */

/* 5.1 Glass Card - para contenido estático */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* 5.2 Cards Container */
.cards-container {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-3.cards-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 5.3 Unified Card - para contenido dinámico */
.unified-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.unified-card:hover .card-image {
  transform: scale(1.05);
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  z-index: 0;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  color: white;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.card-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.card-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.card-info {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.info-item i {
  font-size: 0.9rem;
}

/* 5.4 Estados especiales */
.loading-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
  font-style: italic;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.error-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: #fee;
  border: 2px solid #fcc;
  border-radius: 16px;
  color: #c00;
}

.error-card p {
  margin-bottom: 1rem;
}

.error-card button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: #c00;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.error-card button:hover {
  background: #a00;
}

.empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
}


/* ============================================
   6. BOTONES
   ============================================ */

.btn-primary {
  display: inline-block;
  background-color: var(--color-terracotta);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid transparent;
  width: fit-content;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: transparent;
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  border: 2px solid var(--color-deep-sea);
  color: var(--color-deep-sea);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-secondary:hover {
  background: var(--color-deep-sea);
  color: white;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-terracotta);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 999;
}

#back-to-top:hover {
  background: var(--color-deep-sea);
  transform: translateY(-5px);
}

#back-to-top.visible {
  display: flex;
}


/* ============================================
   7. HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sand) 0%, #e8e8e8 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.95) contrast(1.05);
}

.hero-content {
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 7rem;
  color: white;
  text-shadow:
    0 4px 8px rgba(0, 0, 0, 0.9),
    0 8px 16px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  font-weight: 400;
  color: white;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
  opacity: 0.95;
}



/* ============================================
 8. NAVEGACIÓN
 ============================================ */

#sticky-header {
 position: sticky;
 top: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.97);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 padding: 0.75rem 0;
}

.container-nav {
 max-width: var(--container-width);
 margin: 0 auto;
 padding: 0 2rem;
 display: flex;
 align-items: center;
 gap: 1rem;
 position: relative;
}

.nav-logo {
 font-family: var(--font-heading);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--color-deep-sea);
 text-decoration: none;
 letter-spacing: 1px;
 flex-shrink: 0;
 display: flex;
 align-items: center;
 gap: 0.6rem;
}

.nav-logo img {
 height: 40px;
 width: 40px;
 object-fit: contain;
}

/* Wrapper: contiene toggle + links */
.nav-menu-wrapper {
 position: relative;
 margin-left: auto;
}

/* Botón hamburguesa — siempre visible */
.menu-toggle {
 display: flex;
 flex-direction: column;
 gap: 6px;
 background: none;
 border: none;
 cursor: pointer;
 padding: 4px;
}

.menu-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background: var(--color-deep-sea);
 transition: all 0.3s ease;
}

/* Menú desplegable */
.nav-links {
 display: none;
}

.nav-links.active {
 display: flex;
 flex-direction: column;
 position: absolute;
 top: calc(100% + 0.75rem);
 right: 0;
 min-width: 220px;
 background: white;
 padding: 0.5rem 0;
 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
 border-radius: 8px;
 z-index: 999;
}

.nav-item > a {
 display: block;
 padding: 0.75rem 1.5rem;
 color: var(--color-deep-sea);
 font-weight: 500;
 transition: all 0.2s ease;
 white-space: nowrap;
}

.nav-item > a:hover {
 color: var(--color-terracotta);
 background: var(--color-sand);
}

/* Submenús */
.nav-item {
 position: relative;
}

.submenu {
 display: none;
 position: absolute;
 top: 100%;
 left: 0;
 background: var(--color-sand);
 min-width: 200px;
 padding: 0.5rem 0;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 border-radius: 8px;
 z-index: 1001;
}

.submenu a {
 display: block;
 padding: 0.6rem 1.2rem;
 color: var(--color-deep-sea);
 white-space: nowrap;
 transition: color 0.2s ease;
}

.submenu a:hover {
 color: var(--color-terracotta);
}

/* Desktop: hover abre submenú */
.nav-item.has-submenu:hover .submenu {
 display: block;
}

/* Móvil: click añade clase .open (via JS) */
.nav-item.open .submenu {
 display: block;
 position: static;
 box-shadow: none;
 background: var(--surface-mid, #EEEEED);
 border-radius: 0;
 padding: 0.25rem 0 0.25rem 1rem;
}

/* Selector de idioma */
.lang-switcher {
 display: flex;
 gap: 0.4rem;
 align-items: center;
 flex-shrink: 0;
 margin-left: 1rem;
}

.lang-link {
 padding: 0.4rem 0.8rem;
 border-radius: 6px;
 border: 1px solid var(--color-deep-sea);
 font-size: 0.85rem;
 font-weight: 600;
 color: var(--color-deep-sea);
 background: white;
 transition: all 0.3s ease;
 text-decoration: none;
}

.lang-link:hover,
.lang-link.active {
 background: var(--color-deep-sea);
 color: white;
}

/* ============================================
   9. SECCIONES ESPECÍFICAS
   ============================================ */

/* Intro */
.intro {
  background: white;
  text-align: center;
}

.intro p {
  max-width: 750px;
  margin: 0 auto 2rem;
  font-size: 1.3rem;
  color: #666;
  line-height: 1.9;
}

/* Highlights */
.highlights {
  padding: var(--section-padding);
  background-color: var(--color-sand);
}

.highlight-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.highlight-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.highlight-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Crafts */
.crafts {
  padding: var(--section-padding);
}

.crafts-img {
  height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 20px 20px 0 var(--color-terracotta);
}

.crafts-content p {
  font-size: 1.2rem;
  line-height: 1.9;
}

/* Cabo de Gata */
.cabo {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, var(--color-deep-sea), #2C2F44);
  color: white;
}

.cabo .section-title {
  margin-top: 2rem;
  color: white;
}

.cabo .section-subtitle {
  color: var(--color-sage);
}

/* Playas específicas */
.playa-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.playa-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.playa-card .card-content {
  position: static;
  padding: 1.5rem;
  color: var(--color-charcoal);
}

.playa-card h3 {
  color: var(--color-deep-sea);
  text-shadow: none;
}

.playa-card p {
  color: #666;
}

.playas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}


/* ============================================
   10. FILTROS (páginas -todas)
   ============================================ */

.filtros-container {
  background: var(--color-sand);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.filtros-container h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-sea);
}

.filtros-container > p {
  color: #666;
  margin-bottom: 2rem;
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.filtro-grupo h4 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--color-deep-sea);
  font-weight: 600;
}

.filtro-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filtro-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--color-deep-sea);
  background: white;
  color: var(--color-deep-sea);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.filtro-btn:hover {
  background: var(--color-deep-sea);
  color: white;
  transform: translateY(-2px);
}

.filtro-btn.activo {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: white;
}

.filtro-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
}

.filtro-stats strong {
  color: var(--color-terracotta);
  font-weight: 600;
}


/* ============================================
   11. TABS
   ============================================ */

.tabs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--color-terracotta);
}

.tab-btn.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
/* Lead Magnet */
.section-leadmagnet {
  background: var(--color-deep-sea);
  color: var(--text-on-dark);
}
.section-leadmagnet .section-title,
.section-leadmagnet .section-subtitle {
  color: var(--text-on-dark);
}
.leadmagnet-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.leadmagnet-form input[type="email"] {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 280px;
  outline: none;
}
.leadmagnet-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ============================================
   12. FOOTER
   ============================================ */

footer {
  background: var(--color-deep-sea);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--color-sand);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

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

.footer-section a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   13. ANIMACIONES
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   14. WIDGET DEL TIEMPO (Versión Compacta)
   ============================================ */

/* Nueva sección para el clima en una línea */
.section-weather-bar {
  background-color: var(--color-sand);
  padding: 1rem 0; /* Espacio reducido al mínimo */
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

#weather-widget {
  width: 100%;
  min-height: auto; /* IMPORTANTE: Eliminamos los 310px previos */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilos para el contenido inyectado por JS */
.weather-minimal-content {
  font-size: 1.2rem;
  color: var(--color-deep-sea);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}


.weather-day { display: flex; align-items: center; gap: 0.35rem; }
.weather-day--today { font-weight: 600; color: var(--text-primary); }
.weather-icon { font-size: 1.1rem; line-height: 1; }
.weather-temp { font-size: 0.9rem; }
.weather-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.weather-sep { opacity: 0.3; margin: 0 0.15rem; }

/* ============================================
   15. ICONOS (sin Font Awesome)
   ============================================ */

.icon-time::before { content: "🕐 "; }
.icon-price::before { content: "💶 "; }
.icon-location::before { content: "📍 "; }
.icon-star::before { content: "⭐ "; }


/* ============================================
   16. RESPONSIVE - MEDIA QUERIES
   ============================================ */

@media (min-width: 768px) {
  .grid-3.cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }


  #sticky-header {
    padding: 1rem;
  }

  /* Secciones */
  .section-title {
    margin-top: 2rem;
    font-size: 2rem;
  }

  .section-padding {
    padding: 4rem 1.5rem;
  }

  /* Cards */
  .glass-card {
    padding: 1.5rem;
  }

  /* Filtros */
  .filtros-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filtro-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  /* Weather */
  
  #weather-widget {
    min-height: auto;
  }

  /* Botones */
  .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* Crafts */
  .crafts-img {
    height: 300px;
    box-shadow: 10px 10px 0 var(--color-terracotta);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Playas grid */
  .playas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    margin-top: 2rem;
    font-size: 1.75rem;
  }

  .glass-card {
    padding: 1.25rem;
  }

  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 1024px) {


  /* Lang switcher siempre visible en móvil */
  .lang-switcher {
    display: flex;
    gap: 0.5rem;
  }

  .container-nav {
    padding: 0 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .lang-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   17. BANNER DE COOKIES
   ============================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-deep-sea);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 10000;
}

#cookie-banner p {
  margin: 0;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

#cookie-banner a {
  color: var(--color-sand);
  text-decoration: underline;
}

#cookie-banner button {
  background-color: var(--color-terracotta);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
  background-color: #f0936e; /* Un tono más claro de terracota */
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  #cookie-banner p {
    margin-bottom: 0.5rem;
  }
}


/* ============================================
   18. FIX: ALINEACIÓN DEL FOOTER
   ============================================ */

footer {
  overflow-x: hidden;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section ul {
  padding-left: 0;
  list-style: none;
}

/* ============================================
   19. FIX: ALINEACIÓN DEL LOGO EN FOOTER
   ============================================ */

.footer-section:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section .nav-logo {
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-section .nav-logo img {
  height: 36px;
  width: auto;
}

.footer-section p {
  margin-top: 0;
  line-height: 1.5;
}

/* ============================================
   20. FIX: ALINEACIÓN VERTICAL DE TODAS LAS COLUMNAS
   ============================================ */

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.footer-section .nav-logo,
.footer-section h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.footer-section p {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================
   21. MEDIA QUERY: CENTRAR EN MÓVIL
   ============================================ */

@media (max-width: 768px) {
  .footer-section,
  .footer-section:first-child {
    align-items: center;
    text-align: center;
  }
  .footer-section .nav-logo,
  .footer-section h3 {
    margin-bottom: 1rem;
  }
  .footer-section ul li {
    text-align: center;
  }
}
