:root {
  --color-bg: #f5f3ee;
  --color-surface: rgba(255, 255, 255, 0.97);
  --color-surface-strong: #ffffff;
  --color-text: #1f1f1f;
  --color-text-muted: #4f4f4f;
  --color-primary: #a1200e;
  --color-primary-hover: #7d190d;
  --color-accent: #f28a17;
  --color-accent-dark: #cf6b06;
  --color-border: rgba(31, 31, 31, 0.12);
  --color-overlay: rgba(7, 20, 57, 0.58);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.18);
  --radius-md: 18px;
  --radius-lg: 26px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --content-default: 1200px;
  --content-max: 1280px;
  --text-sm: clamp(0.95rem, 0.92rem + 0.12vw, 1rem);
  --text-base: clamp(1rem, 0.98rem + 0.18vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.45vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.2rem + 0.9vw, 2.2rem);
  --text-hero: clamp(2rem, 1.3rem + 2vw, 3.3rem);
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.contenedor {
  width: 100%;
}

#menu {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 6px solid var(--color-primary);
}

.imagen-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo {
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

.hero-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-4) var(--space-6);
  text-align: center;
}

.hero-intro h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-hero);
  line-height: 1.08;
  color: var(--color-primary);
}

.hero-intro p {
  margin: 0 auto;
  max-width: 65ch;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.hex-section {min-height: 100vh;padding: 100px 20px;position: relative;display: flex;justify-content: center;align-items: center;}
.hex-section::before {content: "";position: absolute;inset: 0;background: url("../img/iHG1.jpg") center/cover no-repeat;z-index: -2;}
.hex-section::after {content: "";position: absolute;inset: 0;background: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.5));z-index: -1;}
.hex-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 40px;max-width: 1300px;width: 100%;}
.hex {aspect-ratio: 1 / 1.15;clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);background: rgba(255,255,255,0.95);
    padding: 0.5vw;box-sizing: border-box;position: relative;transition: 0.4s ease;display: flex;justify-content: center;align-items: center;
    text-align: center;backdrop-filter: blur(6px);position: relative;overflow: hidden;}
.hex.orange {background: linear-gradient(135deg, #f97316, #ea580c);color: white;}
.center {grid-column: span 2;justify-self: center;width: 65%;}
.hex-content h2 {font-size: 18px;margin-bottom: 15px;}
.hex-content p {font-size: 14px;line-height: 1.5;}
.hex img {position: absolute;inset: 0;width: 100%;height: 100%;object-fit: cover;}
.hex:has(img) {padding: 0;background: transparent;}
.hex:hover {transform: translateY(-10px) scale(1.03);box-shadow: 0 20px 40px rgba(0,0,0,0.3);}

.center {
  grid-column: span 2;
  min-height: 420px;
  aspect-ratio: auto;
  padding: 2.3rem 2rem 2.7rem;
}

.center .hex-content {
  max-width: 34ch;
}

.center .hex-content h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.8rem);
  margin-bottom: var(--space-4);
}

.center .hex-content p {
  font-size: clamp(1rem, 0.98rem + 0.15vw, 1.08rem);
  line-height: 1.7;
}

.contactar {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: var(--space-12) var(--space-4);
}

.texto-contactar {
  margin-bottom: var(--space-5);
  text-align: center;
}

.texto-contactar h2 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.boton-contactar {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.boton-contactar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff !important;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  transition: background-color var(--transition), transform var(--transition);
}

.boton-contactar a:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.mapa-contactar {
  margin-bottom: var(--space-8);
}

#mapa {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-contactar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.info-contactar > div {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-contactar > div a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  text-align: center;
  text-decoration: none;
}

.icono {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.info-contactar h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

.info-contactar p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.site-footer {
  border-top: 10px solid var(--color-primary);
  background: #ffffff;
  padding: var(--space-5) var(--space-4);
}

.site-footer__inner {
  width: min(100%, var(--content-default));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo--footer {
  width: clamp(120px, 14vw, 180px);
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
  text-align: right;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.site-footer__links {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9rem;
}

.site-footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}

@media (max-width: 1180px) {
  .hex-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    width: min(100%, 900px);
  }

  .center {
    grid-column: span 2;
    margin-top: 0;
    min-height: 360px;
  }

  .info-contactar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__right {
    align-items: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 680px) {
  #menu {
    position: -webkit-sticky;
    position: sticky;
    min-height: 76px;
    padding: var(--space-3);
  }

  .hero-intro {
    padding: var(--space-8) var(--space-4) var(--space-5);
  }

  .hex-section {
    padding: var(--space-6) var(--space-4) var(--space-8);
  }

  .hex-section::before,
  .hex-section::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-attachment: scroll;
  }

  .hex-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .hex,
  .center {
    clip-path: none !important;
    border-radius: 24px;
    aspect-ratio: auto;
    min-height: auto;
    margin-top: 0;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    transform: none !important;
    transition: none;
    width: 100%;
  }

  .hex:hover,
  .center:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .hex:has(img) {
    padding: 0;
    min-height: 220px;
    height: 220px;
    background: #ffffff;
  }

  .hex img,
  .hex:has(img) img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .hex:has(img) .hex-content {
    position: static;
    max-width: 100%;
  }

  .center {
    grid-column: span 1;
  }

  .hex-content {
    max-width: 100%;
  }

  #mapa {
    min-height: 320px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}