:root {
  --verde: #486148;
  --tinta: #1a1a1a;
  --gris: #f5f5f5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--tinta);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVBAR (Navegación Superior)
   ========================================================================== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4vw;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}

.nav .logo {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.1em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.nav .links {
  display: flex;
  gap: 2.2rem;
}

.nav a:hover {
  opacity: 0.75;
}

/* ==========================================================================
   HERO SECTION (Portada)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  background: #1d2a20;
}

.hero img#heroImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Capa de sombra/degradado para lectura de textos */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* ==========================================================================
   HERO CONTENT (Logo Central + Frase + Banderas)
   ========================================================================== */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 90px 20px 45px;
  pointer-events: none;
}

/* Logo Central Ajustado */
.hero-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: clamp(240px, 32vw, 400px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

/* Elementos Inferiores */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.hero-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-flags img {
  width: 68px;         /* Ancho fijo idéntico para ambas */
  height: 48px;        /* Alto fijo idéntico para ambas */
  object-fit: cover;   /* Asegura que la imagen llene el espacio sin deformarse */
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-flags .x {
  color: #ffffff;
  opacity: 0.85;
  flex: none;
}

/* ==========================================================================
   INTRO / BIENVENIDA
   ========================================================================== */
.intro {
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 24px 70px;
  text-align: center;
}

.intro p.lead {
  font-size: 0.95rem;
  line-height: 1.5;
}

.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  margin: 34px 0 22px;
}

.horario {
  font-size: 0.9rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  margin-top: 44px;
  background: var(--verde);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 20px 52px;
  border: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #2f4a35;
  transform: translateY(-2px);
}

/* ==========================================================================
   TITULOS GENERALES
   ========================================================================== */
.titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  text-transform: uppercase;
  padding: 60px 0 34px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.servicio {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1.13;
  cursor: pointer;
  background: #111;
}

.servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.servicio:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  text-align: center;
  padding: 24px;
  opacity: 0;
}

.overlay h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.overlay span {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.overlay i {
  display: block;
  width: 44px;
  height: 1px;
  background: #fff;
}

/* ==========================================================================
   MAPA Y FOOTER
   ========================================================================== */
.mapa {
  height: min(55vw, 520px);
  border: 0;
  width: 100%;
  display: block;
  filter: grayscale(0.15);
}

.cta {
  text-align: center;
  padding: 0 0 70px;
}

.cta .btn {
  margin-top: 36px;
}

.pie {
  background: var(--gris);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.5;
  padding: 34px 20px;
}

.marca {
  background: var(--verde);
  display: flex;
  justify-content: center;
  padding: 60px 20px 70px;
}

.marca img {
  width: min(340px, 70vw);
}

/* ==========================================================================
   RESPONSIVE (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 700px) {
  .nav .links {
    gap: 1rem;
  }
  .nav .logo {
    display: none;
  }
  .hero-content {
    padding-top: 75px;
    padding-bottom: 30px;
  }
  .hero-logo {
    width: 220px;
  }
  .hero-bottom {
    gap: 12px;
  }
  .servicios {
    grid-template-columns: 1fr;
  }
  .overlay {
    opacity: 1;
    background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.7));
    justify-content: flex-end;
    padding-bottom: 28px;
  }
  .btn {
    padding: 18px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}