:root {
  /* Fondos más suaves (gris pizarra claro) para no deslumbrar la vista */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #e9ecef;
  
  /* Colores de texto equilibrados */
  --text: #2a333c;
  --title: #1a2229;
  --muted: #5d636b;
  
  /* Azul corporativo de Valdeleón */
  --accent: #053b6d;
  --accent-soft: rgba(5, 59, 109, 0.08);
  --border: rgba(26, 34, 41, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  border-top: 6px solid var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--title);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0.5rem;
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 1rem));
    padding: 0;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 34, 41, 0.2);
  color: var(--title);
  font-weight: 600;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 34, 41, 0.15);
  color: var(--title);
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(5, 59, 109, 0.2);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroSlide 18s infinite;
  filter: brightness(0.45);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 59, 109, 0.25), rgba(17, 21, 24, 0.85));
}

@keyframes heroSlide {
  0%, 33% { background-image: url('assets/plant-snow.jpg'); }
  34%, 66% { background-image: url('assets/hero-quarry.jpg'); }
  67%, 100% { background-image: url('assets/plant-entrance.jpg'); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 300;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.9;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  border-radius: 999px;
  padding: 1rem 1.9rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #084c8c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 59, 109, 0.3);
}

.button.primary:hover {
  box-shadow: 0 6px 16px rgba(5, 59, 109, 0.4);
}

.hero .button.primary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero .button.primary:hover {
  background: var(--surface-alt);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.trust-band {
  background: linear-gradient(90deg, var(--accent), #032b50);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row strong {
  color: #ffffff;
  font-weight: 700;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 90px;
}

.section-light {
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-copy {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.85;
}

.card-grid,
.gallery-grid,
.quarry-grid,
.footer-grid,
.feature-grid,
.download-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-grid,
.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.feature-card,
.download-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover,
.feature-card:hover,
.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0,0,0,0.05);
  border-color: rgba(5, 59, 109, 0.2);
}

.feature-card h3,
.download-card h3,
.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p,
.download-card p,
.card p {
  color: var(--text);
  line-height: 1.8;
}

.download-card a {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.download-card a:hover {
  text-decoration: underline;
}

.download-card a.placeholder {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.7;
  text-decoration: none;
}

.card ul {
  margin: 1.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.card ul li {
  margin-bottom: 0.85rem;
}

.gallery-section {
  background: var(--surface-alt);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
  min-height: 360px;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 34, 41, 0.9));
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #ffffff;
  z-index: 1;
}

.gallery-overlay h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.gallery-overlay p {
  margin: 0;
  line-height: 1.75;
  max-width: 90%;
  color: rgba(255, 255, 255, 0.9);
}

.section-dark {
  background: linear-gradient(135deg, var(--title), #11181e);
  color: #ffffff;
}

.section-dark .section-subtitle,
.section-dark h2 {
  color: #ffffff;
}

.section-dark .eyebrow {
  color: rgba(255,255,255,0.7);
}

.quarry-section {
  padding-bottom: 6rem;
}

.quarry-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.quarry-card {
  border-radius: 1.5rem;
  overflow: hidden;
}

.quarry-image {
  min-height: 520px;
  background-image: url('assets/quarry-main.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.quarry-copy {
  padding: 3rem 2.5rem;
}

.quarry-copy h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: #ffffff;
}

.quarry-copy p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.2rem;
  line-height: 1.85;
}

.quarry-map {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  align-items: center;
}

.quarry-map img,
.quarry-map svg {
  width: min(260px, 100%);
  height: auto;
  display: block;
  border-radius: 1rem;
}

.quarry-map-label {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   FOOTER DESKTOP
   ========================================================================== */
.footer {
  background: var(--surface-alt);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start; 
  text-align: left;
}

/* Forzamos que el logo del footer se mantenga siempre arriba y en orden */
.footer-logo {
  order: -1; 
  margin-bottom: 0.5rem;
}

.footer-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--title);
  font-weight: 700;
}

.footer-card p {
  margin: 0;
}

.footer-card p,
.footer-card a,
.footer-card span {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-card span {
  white-space: pre-line;
}

.footer-card a:hover,
.footer-card a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copy {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.legal-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--title);
}

.legal-card p {
  color: var(--text);
  line-height: 1.8;
}

/* Modales y Cookies */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--title);
  color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin: 0;
  max-width: 65%;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner .button {
  border-radius: 999px;
}

.cookie-banner .button.primary {
  background: #ffffff;
  color: var(--title);
  box-shadow: none;
}

.cookie-banner a.button.secondary,
.cookie-banner .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
  align-items: center;
  justify-content: center;
}

.cookie-modal[aria-hidden="false"] {
  display: flex;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 41, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-dialog {
  position: relative;
  background: var(--surface);
  color: var(--text);
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h2 {
  color: var(--title);
  margin: 0;
}

.cookie-modal-body {
  padding: 1.25rem 1.5rem;
}

.cookie-modal-body p {
  color: var(--text);
  margin-bottom: 1rem;
}

.modal-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.modal-tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab.active {
  background: var(--title);
  border-color: var(--title);
  color: #ffffff;
}

.modal-content {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.modal-legal-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--title);
}

.modal-legal-block p {
  margin: 0 0 0.9rem;
  line-height: 1.8;
}

.cookie-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.cookie-cat-info p {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.cookie-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--title);
}

.cookie-cat-toggle input[type="checkbox"] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: var(--accent);
}

/* ==========================================================================
   AJUSTES RESPONSIVE (MÓVIL Y TABLET) 
   ========================================================================== */

@media (max-width: 1024px) {
  .header-row, .trust-row, .quarry-grid, .footer-grid { gap: 1rem; }
  .quarry-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.9rem; }
  .lang-btn { padding: 0.55rem 0.75rem; font-size: 0.85rem; }
}

@media (max-width: 820px) {
  /* Cabecera optimizada: Todo en una línea si cabe, o fluido sin saltos bruscos */
  .header-row { flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; gap: 0.5rem; }
  
  /* Aseguramos que el Logo de la cabecera no arrastre problemas al del footer */
  .site-header .logo { flex: 0 0 auto; order: unset; }
  
  .nav-wrap { position: static; order: unset; width: auto; } 
  .menu-toggle { display: inline-flex; align-items: center; padding: 0.5rem 0.8rem; }
  
  .lang-switcher { width: auto; margin-top: 0; padding-top: 0; border: none; gap: 0.3rem; margin-left: auto; }
  
  /* Menú desplegable móvil */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(255, 255, 255, 0.98); padding: 1rem 1.5rem; display: none;
    border-bottom: 1px solid var(--border); gap: 0; z-index: 30;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; font-size: 1rem; display: block; }
  
  .hero-actions { gap: 0.75rem; }
  .button { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
  .trust-row { gap: 1.25rem; font-size: 0.85rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
  .card-grid, .gallery-grid, .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .gallery-card { min-height: 280px; }
  .quarry-copy { padding: 2rem 1.5rem; }
  .quarry-copy h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .quarry-map { margin-top: 1.5rem; display: grid; gap: 0.75rem; justify-items: center; }
  .quarry-map svg, .quarry-map img { width: min(240px, 100%); height: auto; display: block; }
  .quarry-map-label { margin: 0; color: #ffffff; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
}

@media (max-width: 640px) {
  .site-header { border-bottom: 1px solid var(--border); }
  
  /* Cabecera ultra-compacta en 1 sola línea estilo App */
  .header-row { padding: 0.6rem 0.75rem; flex-wrap: nowrap; gap: 0.25rem; }
  
  /* Achicamos un pelín el logo para que quepa todo */
  .site-header .logo > div:first-child { width: 35px !important; height: 38px !important; }
  .site-header .logo div:last-child { font-size: 1.25rem !important; margin-top: 2px !important; }
  
  /* Botones de idioma apretados y sin borders para ahorrar espacio */
  .lang-switcher { gap: 0.2rem; margin-left: auto; }
  .lang-btn { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
  
  .menu-toggle { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
  
  /* Hacemos que la foto del Hero respire más en móviles */
  .hero { min-height: 85vh; }
  .hero-copy { padding: 1.25rem 0.75rem; max-width: 100%; }
  .eyebrow { font-size: 0.9rem; letter-spacing: 0.16em; margin-bottom: 0.75rem; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.1; margin-bottom: 0.75rem; }
  .hero-text { font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 100%; line-height: 1.7; }
  .hero-actions { flex-direction: column; gap: 0.6rem; width: 100%; padding: 0 0.5rem; }
  .button { padding: 0.85rem 1.4rem; font-size: 0.9rem; width: 100%; border-radius: 8px; }
  
  .trust-row { flex-direction: column; gap: 1rem; font-size: 0.85rem; padding: 0.75rem 0; }
  .trust-row span { text-align: center; }
  
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 1.5rem; }
  .section-subtitle { font-size: 0.9rem; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 0.75rem; }
  .section-copy { font-size: 0.95rem; line-height: 1.7; max-width: 100%; }
  
  .card-grid, .gallery-grid, .feature-grid, .download-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .card, .feature-card, .download-card { padding: 1.5rem; border-radius: 1rem; }
  .card h3, .feature-card h3, .download-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
  .card p, .feature-card p, .download-card p { font-size: 0.9rem; line-height: 1.7; }
  .card ul { margin: 1rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
  .card ul li { margin-bottom: 0.6rem; }
  .download-card a { font-size: 0.9rem; margin-top: 1rem; }
  
  .gallery-card { min-height: 300px; border-radius: 1rem; }
  .gallery-overlay { padding: 1.5rem; }
  .gallery-overlay h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .gallery-overlay p { font-size: 0.9rem; }
  .quarry-section { padding-bottom: 2.5rem; }
  .quarry-image { min-height: 350px; border-radius: 1rem; }
  .quarry-copy { padding: 1.5rem; border-radius: 1rem; }
  .quarry-copy h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); margin-bottom: 0.75rem; }
  .quarry-copy p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.8rem; }
  
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid { gap: 1.5rem; }
  
  /* Garantizamos que el Footer quede bien alineado y ordenado */
  .footer-card { gap: 0.6rem; align-items: flex-start; text-align: left; }
  .footer-logo { flex: 0 0 auto; order: -1; margin-bottom: 0.5rem; }
  
  .footer-card h3 { font-size: 0.85rem; }
  .footer-card p, .footer-card a, .footer-card span { font-size: 0.85rem; }
  .footer-copy { margin-top: 1.5rem; font-size: 0.8rem; }
  .cookie-banner p { max-width: 100%; font-size: 0.9rem; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 360px) {
  .site-header .logo div:last-child { display: none !important; } /* Oculta el texto "VALDELEON" solo si el móvil es extremadamente minúsculo */
  .menu-toggle { padding: 0.5rem 0.65rem; font-size: 0.8rem; }
  .button { padding: 0.8rem 1.2rem; font-size: 0.85rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-text { font-size: 0.9rem; }
  .section-header h2 { font-size: 1.3rem; }
  .card h3, .gallery-overlay h3 { font-size: 1rem; }
}