/*
 * Ex Hacienda Las Torres — Estilos principales
 * Paleta derivada del logotipo oficial
 * Tipografía: Cormorant Garamond + Source Sans 3
 * Mobile-first · WCAG 2.1 AA · Lighthouse >90
 */

/* ══════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════ */
:root {
  --color-primary:      #3A4858;
  --color-primary-mid:  #5C6E80;
  --color-primary-dark: #2A3540;
  --color-accent:       #C29660;
  --color-accent-dark:  #A07840;
  --color-accent-light: #D4AF78;
  --color-dark:         #1C1C1C;
  --color-off-white:    #F7F5F1;
  --color-neutral:      #E2DDD5;
  --color-neutral-dark: #C4BDB3;
  --color-muted:        #8A8279;
  --color-white:        #FFFFFF;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', 'Source Sans Pro', system-ui, Arial, sans-serif;

  --nav-height:    72px;
  --section-pad:   5rem 0;
  --container-max: 1200px;
  --gutter:        clamp(16px, 5vw, 40px);
  --radius:        0px;

  --shadow-sm: 0 1px 4px rgba(42,53,64,.10);
  --shadow-md: 0 4px 20px rgba(42,53,64,.14);
  --shadow-lg: 0 8px 40px rgba(42,53,64,.18);
  --ease:      0.25s cubic-bezier(.4,0,.2,1);

  --diamond-svg: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 3 L41 22 L22 41 L3 22 Z' fill='none' stroke='%23C29660' stroke-width='0.7'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-dark);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ══════════════════════════════════════════════════
   ACCESIBILIDAD
══════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%; left: 0;
  padding: .75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .875rem;
  z-index: 9999;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ══════════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-pad); }
.section--alt { background: var(--color-white); }
.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section__header { text-align: center; margin-bottom: 3rem; }

.section__label {
  display: block;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .875rem;
}
.section__label::before,
.section__label::after { content: ' ◆ '; opacity: .5; font-size: .55em; vertical-align: middle; }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.12;
  margin-bottom: .875rem;
}
.section--dark .section__title { color: var(--color-white); }

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.section--dark .section__subtitle { color: rgba(255,255,255,.6); }

.section__rule {
  width: 52px; height: 1px;
  background: var(--color-accent);
  margin: 1.25rem auto 0;
}

/* Fade-in animation (triggered by IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: .1s; }
.fade-in[data-delay="2"] { transition-delay: .2s; }
.fade-in[data-delay="3"] { transition-delay: .3s; }
.fade-in[data-delay="4"] { transition-delay: .4s; }
.fade-in[data-delay="5"] { transition-delay: .5s; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8125rem 2rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform .15s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.98); }

.btn--gold {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn--gold:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn--outline-white {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.75);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-neutral), var(--shadow-sm);
}

.navbar__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__logo img {
  height: 42px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--ease);
}
.navbar.scrolled .navbar__logo img {
  filter: none; /* PNG transparente — se ve bien en cualquier fondo */
}

.navbar__nav { display: flex; align-items: center; gap: 0; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar__links li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .25rem .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  position: relative;
  transition: color var(--ease);
}
.navbar__links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .9rem; right: .9rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.navbar__links li a:hover { color: var(--color-accent); }
.navbar__links li a:hover::after { transform: scaleX(1); }

.navbar.scrolled .navbar__links li a { color: var(--color-primary); }
.navbar.scrolled .navbar__links li a:hover { color: var(--color-accent-dark); }

.navbar__cta { margin-left: 1.25rem; flex-shrink: 0; }

/* Hamburger — 44×44px tap target (WCAG 2.5.5) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
}
.navbar__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--color-white);
  transition: all var(--ease);
  transform-origin: center;
}
.navbar.scrolled .navbar__toggle span { background: var(--color-primary); }
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .navbar__links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 2px solid var(--color-accent);
    display: none;
    padding-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .navbar__links.open { display: flex; }
  .navbar__links li a {
    color: rgba(255,255,255,.8);
    padding: .875rem var(--gutter);
  }
  .navbar__links li a::after { display: none; }
  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) var(--gutter) 6rem;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--diamond-svg);
  opacity: .07;
  z-index: 1;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 30%,
    rgba(42,53,64,.25) 0%,
    rgba(42,53,64,.0) 65%),
    linear-gradient(to bottom,
    rgba(42,53,64,.0) 50%,
    rgba(42,53,64,.5) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  width: 100%;
}

.hero__logo {
  width: clamp(76px, 7vw, 92px);
  height: auto;
  margin: 0 auto 0;
  /* Invertir a blanco para hero oscuro — el patrón de rombos no se filtra */
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
}

/* ── Ornamento arquitectónico entre logo y texto ── */
.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  margin: 1.5rem 0 1.25rem;
  animation: heroEnter .7s ease .2s both;
}
.hero__ornament-line {
  display: block;
  width: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(194,150,96,.55), transparent);
}
.hero__ornament-diamond {
  color: var(--color-accent);
  font-size: .45rem;
  opacity: .7;
  animation: exGlow 4s ease-in-out 2s infinite;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -.015em;
}

.ex-emphasis {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 600;
  /* Decorative underline más elegante */
  background: linear-gradient(to right, var(--color-accent), var(--color-accent));
  background-size: 100% 1px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  text-decoration: none;
  padding-bottom: 2px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(.875rem, 2vw, 1.125rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.58);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.3);
  font-family: var(--font-sans);
  font-size: .5625rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
  pointer-events: none;
}
.hero__scroll-indicator svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════════════════ */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .nosotros__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.nosotros__accent { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.nosotros__accent-bar { width: 3px; height: 56px; background: var(--color-accent); flex-shrink: 0; }
.nosotros__accent-text {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nosotros__text p {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}
.nosotros__text p:last-of-type { margin-bottom: 1.75rem; }

.nosotros__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
}
.nosotros__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--diamond-svg);
  opacity: .12;
  z-index: 1;
}
.nosotros__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 52%;
  z-index: 0;
  filter: contrast(1.1) saturate(1.14) brightness(0.93);
  transform: scale(1.08);
  transform-origin: center center;
  transition: transform 1.1s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.nosotros__image-wrap:hover img {
  transform: scale(1.13);
}
.nosotros__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  z-index: 2;
  color: rgba(255,255,255,.25);
  font-family: var(--font-sans);
  font-size: .625rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.nosotros__placeholder svg { width: 44px; height: 44px; opacity: .3; stroke: currentColor; fill: none; }

.nosotros__image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(42,53,64,.85) 0%, transparent 100%);
  padding: 1.5rem 1.25rem .875rem;
  z-index: 3;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9375rem;
  color: rgba(255,255,255,.65);
}

/* nosotros mobile: image on top */
@media (max-width: 799px) { .nosotros__image-wrap { order: -1; } }

/* ══════════════════════════════════════════════════
   AMENIDADES
══════════════════════════════════════════════════ */
.amenidades__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px)  { .amenidades__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .amenidades__grid { grid-template-columns: repeat(3, 1fr); } }

.amenidad-card {
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.amenidad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.amenidad-card__img-wrap {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
}
.amenidad-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  z-index: 0;
}
.amenidad-card:hover .amenidad-card__img-wrap img { transform: scale(1.05); }

.amenidad-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  z-index: 1;
  color: rgba(255,255,255,.3);
}
.amenidad-card__placeholder svg { width: 38px; height: 38px; stroke: currentColor; fill: none; }

.amenidad-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  opacity: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: opacity var(--ease);
}
.amenidad-card:hover .amenidad-card__hover-overlay { opacity: .88; }
.amenidad-card__hover-label {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.amenidad-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
  border-top: 2px solid var(--color-neutral);
}
.amenidad-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .3rem;
}
.amenidad-card__desc { font-size: .875rem; color: var(--color-muted); line-height: 1.55; }


/* ══════════════════════════════════════════════════
   MESA DIRECTIVA
══════════════════════════════════════════════════ */
.mesa__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 320px;
  margin: 0 auto;
}
@media (min-width: 480px) { .mesa__grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (min-width: 900px) { .mesa__grid { grid-template-columns: repeat(4, 1fr); } }

.mesa-card {
  background: var(--color-off-white);
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.mesa-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.mesa-card__avatar-wrap {
  width: 84px; height: 84px;
  margin: 0 auto 1.375rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--color-neutral);
}
.mesa-card__avatar-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mesa-card__initial {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  line-height: 1;
}

.mesa-card__cargo {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: .5rem;
}
.mesa-card__name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: .375rem;
}
.mesa-card__periodo {
  font-size: .8125rem;
  color: var(--color-muted);
  margin-bottom: .875rem;
}
.mesa-card__email {
  font-size: .8125rem;
  color: var(--color-accent-dark);
  word-break: break-all;
  transition: color var(--ease);
  display: inline-block;
}
.mesa-card__email:hover { color: var(--color-primary); }


/* ══════════════════════════════════════════════════
   AVISOS Y NOTICIAS
══════════════════════════════════════════════════ */
.avisos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 560px) { .avisos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .avisos__grid { grid-template-columns: repeat(3, 1fr); } }

.aviso-card {
  background: var(--color-white);
  padding: 1.875rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.aviso-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.aviso-card__date {
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.aviso-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.22;
}
.aviso-card__excerpt {
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.68;
  flex: 1;
}
.aviso-card__link {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--ease), gap var(--ease);
  align-self: flex-start;
}
.aviso-card__link:hover { color: var(--color-primary); gap: .65rem; }
.aviso-card__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.avisos__note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--color-muted);
  font-style: italic;
}


/* ══════════════════════════════════════════════════
   DOCUMENTOS PÚBLICOS
══════════════════════════════════════════════════ */
.documentos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-neutral);
  border: 1px solid var(--color-neutral);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .documentos__grid { grid-template-columns: repeat(2, 1fr); } }

.documento-item {
  background: var(--color-white);
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--ease);
}
.documento-item:hover { background: var(--color-off-white); }

.documento-item__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  color: var(--color-accent);
}
.documento-item__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }

.documento-item__info { flex: 1; min-width: 0; }
.documento-item__name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.documento-item__meta { font-size: .75rem; color: var(--color-muted); }

.documento-item__dl {
  flex-shrink: 0;
  color: var(--color-neutral-dark);
  transition: color var(--ease), transform var(--ease);
}
.documento-item:hover .documento-item__dl { color: var(--color-accent); transform: translateY(2px); }
.documento-item__dl svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }


/* ══════════════════════════════════════════════════
   TRÁMITES E INFORMACIÓN PRÁCTICA
══════════════════════════════════════════════════ */
.tramites__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .tramites__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }

.tramite-item { display: flex; gap: 1.25rem; align-items: flex-start; }

.tramite-item__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.tramite-item__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

.tramite-item__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.tramite-item__desc {
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.68;
}
.tramite-item__desc strong { color: var(--color-dark); font-weight: 600; }
.tramite-item__desc a { color: var(--color-accent-dark); transition: color var(--ease); }
.tramite-item__desc a:hover { color: var(--color-primary); }


/* ══════════════════════════════════════════════════
   PARA PROVEEDORES
══════════════════════════════════════════════════ */
.proveedores__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .proveedores__cols { grid-template-columns: 1fr 1fr; } }

.proveedores__panel {
  background: var(--color-white);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent);
}

.proveedores__panel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-bottom: .875rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-neutral);
}

.proveedores__list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--color-neutral);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--color-dark);
}
.proveedores__list li:last-child { border-bottom: none; }
.proveedores__list li::before {
  content: '◆';
  color: var(--color-accent);
  font-size: .45rem;
  flex-shrink: 0;
  margin-top: .55rem;
}


/* ══════════════════════════════════════════════════
   UBICACIÓN Y CONTACTO
══════════════════════════════════════════════════ */
.contacto__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 800px) { .contacto__cols { grid-template-columns: 1fr 1.15fr; gap: 3rem; } }

.contacto__map {
  width: 100%;
  height: 220px;
  background: var(--color-neutral);
  border: 1px solid var(--color-neutral-dark);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contacto__map iframe { width: 100%; height: 100%; border: 0; }
.contacto__map-placeholder {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--color-muted);
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.contacto__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.375rem;
}
.contacto__info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}
.contacto__info-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.contacto__info-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .25rem;
}
.contacto__info-value {
  font-size: .9375rem;
  color: var(--color-dark);
  line-height: 1.55;
}
.contacto__info-value a { color: var(--color-accent-dark); transition: color var(--ease); }
.contacto__info-value a:hover { color: var(--color-primary); }

/* Form */
.contacto__form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.625rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-neutral);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-neutral-dark);
  background: var(--color-off-white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--color-dark);
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-neutral-dark); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194,150,96,.12);
}
.form-textarea { resize: vertical; min-height: 118px; }

.form-group.has-error .form-input,
.form-group.has-error .form-textarea { border-color: #c0392b; }
.form-error {
  font-size: .8125rem;
  color: #c0392b;
  margin-top: .375rem;
  display: none;
}
.form-group.has-error .form-error { display: block; }

.form-success {
  padding: 1rem 1.25rem;
  background: #edf7ed;
  border-left: 3px solid #27ae60;
  color: #1e8449;
  font-size: .9375rem;
  display: none;
  margin-top: 1rem;
  line-height: 1.6;
}
.form-success.visible { display: block; }

.form-notice {
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: .875rem;
  line-height: 1.6;
}
.form-notice a { color: var(--color-accent-dark); transition: color var(--ease); }
.form-notice a:hover { color: var(--color-primary); }


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.7);
  padding: 4.5rem 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(194,150,96,.18);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 2.2fr 1fr 1fr; gap: 3rem; } }

.footer__brand-logo {
  width: 76px; margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer__brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 260px;
}
.footer__social { display: flex; gap: .625rem; }
.footer__social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(194,150,96,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: border-color var(--ease), color var(--ease);
}
.footer__social a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.footer__social svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }

.footer__col-title {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.375rem;
}

.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--ease);
  line-height: 1.5;
}
.footer__links a::before { content: '›'; color: var(--color-accent); font-size: 1rem; }
.footer__links a:hover { color: rgba(255,255,255,.9); }

.footer__contact-line {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .625rem;
  line-height: 1.5;
}
.footer__contact-line svg { width: 15px; height: 15px; stroke: currentColor; fill: none; flex-shrink: 0; margin-top: .15rem; }
.footer__contact-line a { color: rgba(255,255,255,.55); transition: color var(--ease); }
.footer__contact-line a:hover { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,.3); transition: color var(--ease); }
.footer__legal a:hover { color: var(--color-accent); }
.footer__designed-by {
  font-size: .75rem;
  color: rgba(255,255,255,.22);
  margin-top: .5rem;
  width: 100%;
}
.footer__designed-by a {
  color: rgba(194,150,96,.5);
  transition: color var(--ease);
}
.footer__designed-by a:hover { color: var(--color-accent); }

@media (max-width: 767px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE GLOBAL — mobile-first breakpoints:
   480px · 640px · 768px · 1024px
══════════════════════════════════════════════════ */

/* Sección padding: base móvil, crece en desktop */
:root { --section-pad: 3rem 0; }
@media (min-width: 768px)  { :root { --section-pad: 4.5rem 0; } }
@media (min-width: 1024px) { :root { --section-pad: 5rem 0;   } }

/* Hero: ajuste para pantallas muy pequeñas (320–375px) */
@media (max-width: 400px) {
  .hero { min-height: 90vh; }
  .hero__logo { width: 64px; }
  .hero__tagline { font-size: .9375rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero__stats-strip { flex-wrap: wrap; gap: .5rem; }
  .hero__stat-sep { display: none; }
}

/* Ocultar separadores de stats en móvil medio */
@media (max-width: 520px) {
  .hero__stat-sep { display: none; }
  .hero__stats-strip { gap: .5rem .875rem; justify-content: center; }
}

/* ══════════════════════════════════════════════════
   HERO — FONDO VIVO
══════════════════════════════════════════════════ */

/* El hero respira: gradiente animado que desplaza lentamente */
.hero {
  background: linear-gradient(
    135deg,
    #1A2230 0%,
    #2A3540 35%,
    #2E3E50 65%,
    #1E2C38 100%
  ) !important;
  background-size: 300% 300% !important;
  animation: heroBgBreath 18s ease-in-out infinite;
}
@keyframes heroBgBreath {
  0%, 100% { background-position: 0% 50%; }
  33%       { background-position: 100% 30%; }
  66%       { background-position: 50% 100%; }
}

/* ── Línea de scan — visible y constante ── */
.hero__scanline {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(194,150,96,.0) 10%,
    rgba(194,150,96,.7) 40%,
    rgba(255,220,140,.9) 50%,
    rgba(194,150,96,.7) 60%,
    rgba(194,150,96,.0) 90%,
    transparent 100%);
  filter: blur(.5px);
  top: 0;
  z-index: 4;
  animation: heroScan 9s linear infinite;
  pointer-events: none;
}
@keyframes heroScan {
  0%   { top: 3%;  opacity: 0;   }
  5%   {           opacity: 1;   }
  88%  {           opacity: .6;  }
  100% { top: 97%; opacity: 0;   }
}

/* ── Orbes dorados — más saturados y visibles ── */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero__orb--1 {
  width: 800px; height: 800px;
  top: -250px; right: -150px;
  background: radial-gradient(circle at center,
    rgba(194,150,96,.18) 0%,
    rgba(194,150,96,.07) 40%,
    transparent 68%);
  animation: orbDrift 16s ease-in-out infinite;
}
.hero__orb--2 {
  width: 600px; height: 600px;
  bottom: -200px; left: -100px;
  background: radial-gradient(circle at center,
    rgba(42,53,64,.85) 0%,
    rgba(42,53,64,.3) 50%,
    transparent 72%);
  animation: orbDrift 22s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(35px, -25px) scale(1.06); }
  50%       { transform: translate(15px, 30px) scale(.95); }
  75%       { transform: translate(-30px, -10px) scale(1.03); }
}

/* ── Logo badge: solución para fondo blanco PNG ── */
/* Envuelve el logo en un marco dorado institucional */
.hero__logo-badge {
  width: 116px; height: 116px;
  background: rgba(247,245,241,.93);
  border: 2px solid rgba(194,150,96,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  padding: 12px;
  position: relative;
  z-index: 2;
  animation: badgeGlow 5s ease-in-out infinite,
             heroEnter .7s ease .1s both;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0   0 rgba(194,150,96,.0); }
  50%       { box-shadow: 0 0 28px 8px rgba(194,150,96,.18),
                          0 0 0  12px rgba(194,150,96,.05); }
}
.hero__logo-badge::before,
.hero__logo-badge::after {
  content: '◆';
  position: absolute;
  color: var(--color-accent);
  font-size: .44rem;
  opacity: .75;
  line-height: 1;
}
.hero__logo-badge::before { top: 5px; right: 6px; }
.hero__logo-badge::after  { bottom: 5px; left: 6px; }
.hero__logo-badge img { width: 86px; height: auto; }

/* Logo blanco — pulsación de halo dorado */
.hero__logo { animation: heroEnter .7s ease .1s both, logoGlowWhite 5s ease-in-out 1.5s infinite; }
@keyframes logoGlowWhite {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(194,150,96,.0)); }
  50%       { filter: brightness(0) invert(1) drop-shadow(0 0 22px rgba(194,150,96,.55)) drop-shadow(0 0 6px rgba(255,255,255,.2)); }
}

/* ── Entrada escalonada — elementos del hero ── */
.hero__content > * {
  opacity: 0;
  animation: heroEnter .75s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__logo-badge  { animation-delay: .1s; }
.hero__eyebrow     { animation-delay: .25s; }
.hero__title       { animation-delay: .0s; } /* controlado por title-reveal */
.hero__tagline     { animation-delay: .7s; }
.hero__actions     { animation-delay: .85s; }
.hero__stats-strip { animation-delay: 1s; }
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Title reveal — efecto cortina hacia arriba ── */
.title-line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.title-reveal {
  display: block;
  transform: translateY(110%);
  animation: titleReveal .95s cubic-bezier(.16,1,.3,1) .4s forwards;
}
.title-reveal--b {
  animation-delay: .6s;
}
@keyframes titleReveal {
  to { transform: translateY(0); }
}

/* "EX" — glow pulsante adicional */
.ex-emphasis {
  position: relative;
  animation: exGlow 4s ease-in-out 1.5s infinite;
}
@keyframes exGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 30px rgba(194,150,96,.5); }
}

/* ── Partículas flotantes — generadas por JS ── */
@keyframes particleFloat {
  0%         { transform: translate(0,0) scale(1); opacity: .12; }
  20%        { opacity: .65; }
  50%        { transform: translate(var(--dx,20px), var(--dy,-30px)) scale(1.4); opacity: .5; }
  80%        { opacity: .3; }
  100%       { transform: translate(0,0) scale(1); opacity: .12; }
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: rgba(194,150,96, var(--op,.35));
}

/* ── Stats strip — más visible ── */
.hero__stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(194,150,96,.22);
}
.hero__stat-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color .3s;
}
.hero__stat-badge:hover { color: var(--color-accent); }
.hero__stat-badge svg {
  width: 14px; height: 14px;
  stroke: var(--color-accent); fill: none; flex-shrink: 0;
}
.hero__stat-sep { color: rgba(194,150,96,.3); font-size: .5rem; }
@media (max-width: 520px) {
  .hero__stat-sep:nth-child(6) { display: none; }
}

/* ── Fade-in mejorado — más dramático ── */
.fade-in {
  opacity: 0;
  transform: translateY(32px) scale(.98);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fade-in[data-delay="1"] { transition-delay: .1s; }
.fade-in[data-delay="2"] { transition-delay: .2s; }
.fade-in[data-delay="3"] { transition-delay: .32s; }
.fade-in[data-delay="4"] { transition-delay: .44s; }
.fade-in[data-delay="5"] { transition-delay: .56s; }

/* ── Button hover — shimmer sweep ── */
.btn { overflow: hidden; position: relative; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,.18) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0s;
}
.btn:hover::after {
  transform: translateX(200%);
  transition: transform .45s ease;
}

/* ── Seg-card — border animado en hover ── */
.seg-card {
  position: relative;
  overflow: hidden;
}
.seg-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent-dark), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.seg-card:hover::after { transform: scaleX(1); }

/* ── Counter stats en sección seguridad ── */
.seguridad__counters {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid rgba(194,150,96,.18);
  overflow: hidden;
}
.seg-counter {
  flex: 1;
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid rgba(194,150,96,.18);
  transition: background var(--ease);
}
.seg-counter:last-child { border-right: none; }
.seg-counter:hover { background: rgba(194,150,96,.06); }
.seg-counter__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: .375rem;
}
.seg-counter__label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
@media (max-width: 640px) {
  .seguridad__counters { flex-wrap: wrap; }
  .seg-counter { flex: 0 0 50%; border-bottom: 1px solid rgba(194,150,96,.18); }
}

/* ── Parallax layer ── */
.hero__pattern { will-change: transform; }
.hero__orb--1, .hero__orb--2 { will-change: transform; }

/* Entrada escalonada de elementos del hero */
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEnter .75s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__logo        { animation-delay: .05s; }
.hero__ornament    { animation-delay: .2s; }
.hero__eyebrow     { animation-delay: .3s; }
.hero__title       { animation-delay: .0s; } /* controlado por title-reveal */
.hero__tagline     { animation-delay: .7s; }
.hero__actions     { animation-delay: .85s; }
.hero__stats-strip { animation-delay: 1s; }
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* Franja de credenciales de seguridad bajo los CTAs */
.hero__stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(194,150,96,.18);
}
.hero__stat-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero__stat-badge svg {
  width: 14px; height: 14px;
  stroke: var(--color-accent);
  fill: none;
  flex-shrink: 0;
}
.hero__stat-sep {
  color: rgba(194,150,96,.3);
  font-size: .5rem;
  line-height: 1;
}
@media (max-width: 520px) {
  .hero__stats-strip { gap: .75rem 1rem; }
  .hero__stat-sep:nth-child(4) { display: none; }
}

/* ══════════════════════════════════════════════════
   SECCIÓN SEGURIDAD
══════════════════════════════════════════════════ */
.seguridad__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 560px) { .seguridad__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 900px) { .seguridad__grid { grid-template-columns: repeat(3, 1fr); } }

.seg-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(194,150,96,.18);
  border-top: 3px solid var(--color-accent);
  padding: 2rem 1.625rem 1.875rem;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.seg-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(194,150,96,.4);
  transform: translateY(-4px);
}

.seg-card__icon {
  width: 52px; height: 52px;
  background: rgba(194,150,96,.12);
  border: 1px solid rgba(194,150,96,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.375rem;
  color: var(--color-accent);
}
.seg-card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }

.seg-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: .625rem;
  line-height: 1.2;
}
.seg-card__text {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.seg-card__text strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* Banner C5 — pieza estrella */
.seguridad__c5-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  background: rgba(194,150,96,.08);
  border: 1px solid rgba(194,150,96,.35);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Rombo decorativo en esquina */
.seguridad__c5-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border: 1px solid rgba(194,150,96,.12);
  transform: rotate(45deg);
  pointer-events: none;
}
.seguridad__c5-banner::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border: 1px solid rgba(194,150,96,.08);
  transform: rotate(45deg);
  pointer-events: none;
}

.c5-icon-wrap {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: rgba(194,150,96,.15);
  border: 1px solid rgba(194,150,96,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--color-accent);
}
.c5-icon-wrap svg { width: 36px; height: 36px; stroke: currentColor; fill: none; }

.c5-banner__content { position: relative; z-index: 1; }

.c5-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  margin-bottom: .875rem;
}
.c5-banner__badge::before { content: '●'; font-size: .4rem; animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.c5-banner__title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: .75rem;
  line-height: 1.15;
}
.c5-banner__text {
  font-size: .9375rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 600px;
}

.c5-seal {
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.c5-seal__ring {
  width: 88px; height: 88px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto .625rem;
  position: relative;
}
.c5-seal__ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(194,150,96,.3);
  border-radius: 50%;
}
.c5-seal__label-top {
  font-family: var(--font-sans);
  font-size: .45rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(194,150,96,.6);
  margin-bottom: .15rem;
}
.c5-seal__number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.c5-seal__label-bottom {
  font-family: var(--font-sans);
  font-size: .45rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(194,150,96,.6);
  margin-top: .15rem;
}
.c5-seal__text {
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

@media (max-width: 900px) {
  .seguridad__c5-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .c5-icon-wrap { margin: 0 auto; }
  .c5-seal { display: none; }
  .c5-banner__text { max-width: 100%; }
}

/* ══════════════════════════════════════════════════
   SECCIÓN EMERGENCIAS
══════════════════════════════════════════════════ */

/* Cadena de emergencia — pasos 1→2→3 */
.emergencia__cadena {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 3rem;
}

.emer-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(194,150,96,.15);
  position: relative;
  transition: background var(--ease);
}
.emer-step:hover { background: rgba(255,255,255,.09); }

.emer-step__num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emer-step__icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(194,150,96,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.emer-step__icon svg { width: 22px; height: 22px; }

.emer-step__label {
  display: block;
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .5rem;
}
.emer-step__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: .375rem;
  transition: color var(--ease);
}
.emer-step__number:hover { color: var(--color-accent-light); }
.emer-step__desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

.emer-step__arrow {
  color: rgba(194,150,96,.35);
  font-size: 1rem;
  padding: 0 .5rem;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 680px) {
  .emergencia__cadena { flex-direction: column; align-items: stretch; }
  .emer-step { max-width: 100%; }
  .emer-step__arrow { transform: none; padding: .5rem 0; text-align: center; }
}

/* Bloque inferior — denuncia + CCTV */
.emergencia__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .emergencia__bottom { grid-template-columns: 1fr 1fr; } }

.emer-denuncia,
.emer-cctv {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(194,150,96,.15);
  border-top: 3px solid var(--color-accent);
  padding: 1.875rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.emer-denuncia__icon,
.emer-cctv__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(194,150,96,.12);
  border: 1px solid rgba(194,150,96,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.emer-denuncia__icon svg,
.emer-cctv__icon svg { width: 20px; height: 20px; }

.emer-denuncia__title,
.emer-cctv__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: .625rem;
}

.emer-denuncia__text,
.emer-cctv__text {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: .875rem;
}
.emer-cctv__text { margin-bottom: 0; }
.emer-cctv__text strong { color: rgba(255,255,255,.85); }
.emer-cctv__text a { color: var(--color-accent-dark); transition: color var(--ease); }
.emer-cctv__text a:hover { color: var(--color-accent); }

.emer-denuncia__links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.emer-denuncia__link {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  color: rgba(255,255,255,.7);
  transition: color var(--ease);
  line-height: 1.4;
}
.emer-denuncia__link:hover { color: var(--color-accent); }
.emer-denuncia__link svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--color-accent); }
.emer-denuncia__link strong { color: rgba(255,255,255,.9); }

@media (max-width: 767px) {
  .emer-denuncia, .emer-cctv { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════ */
@media print {
  .navbar, .hero__scroll-indicator, .footer__social { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  .section { padding: 2rem 0; }
  body { font-size: 12pt; }
}

/* ══════════════════════════════════════════════════
   PLAN INTEGRAL 2026 — Feature Section
   Replica el lenguaje visual de las diapositivas:
   barra gold vertical + navy profundo + tipografía
   editorial de Cormorant Garamond
══════════════════════════════════════════════════ */
.plan-integral {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .plan-integral { grid-template-columns: 57fr 43fr; min-height: 88vh; }
}

/* ── Panel de contenido (oscuro, como la portada) ── */
.pi__content-panel {
  background: #17233A;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Texture de diamantes — identica al hero */
.pi__content-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 3 L41 22 L22 41 L3 22 Z' fill='none' stroke='%23C29660' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
}

/* Orb ambiental izquierdo */
.pi__content-panel::after {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,150,96,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Barra gold vertical — firma visual de las diapositivas ── */
.pi__accent-bar {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-accent) 12%,
    var(--color-accent) 88%,
    transparent 100%
  );
  position: relative;
}
.pi__accent-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: -10px; width: 10px;
  background: linear-gradient(to right, rgba(194,150,96,.1), transparent);
}

.pi__text {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.625rem;
  position: relative;
  z-index: 1;
  max-width: 580px;
}

/* ── Stamp + ornamento ── */
.pi__stamp {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}

.pi__ornament {
  display: flex;
  align-items: center;
  gap: .875rem;
  max-width: 220px;
}
.pi__orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(194,150,96,.4), transparent);
}
.pi__orn-diamond {
  color: var(--color-accent);
  font-size: .45rem;
  opacity: .75;
}

/* ── Tipografía headline — replica exacta de la diapositiva ── */
.pi__headline { line-height: 1; }

.pi__hacia {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 300;
  color: rgba(255,255,255,.6);
  margin: 0 0 .05rem;
  letter-spacing: .01em;
}

.pi__smart {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 700;
  color: #fff;
  line-height: .92;
  letter-spacing: -.03em;
  margin: 0 0 .05rem;
}

.pi__residencial {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0;
  letter-spacing: .01em;
}

.pi__divider {
  width: 36px;
  height: 1px;
  background: rgba(194,150,96,.35);
}

.pi__fraccname {
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  margin: 0 0 .3rem;
  letter-spacing: .01em;
}

.pi__junta {
  font-family: var(--font-sans);
  font-size: .75rem;
  color: rgba(255,255,255,.42);
  letter-spacing: .05em;
  margin: 0;
}

.pi__quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-style: italic;
  color: rgba(255,255,255,.55);
  border-left: 2px solid rgba(194,150,96,.38);
  padding: .25rem 0 .25rem 1.25rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.pi__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--sm { padding: .6875rem 1.375rem; font-size: .75rem; }

/* ── Panel de imagen ── */
.pi__image-panel {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.pi__image-panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 14s ease;
  filter: saturate(0.9) brightness(0.92);
}
.pi__image-panel:hover img { transform: scale(1.06); }

.pi__image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(23,35,58,.72) 0%, rgba(23,35,58,.3) 45%, rgba(23,35,58,.15) 100%),
    linear-gradient(to top, rgba(23,35,58,.55) 0%, transparent 50%);
}

/* Sello flotante — motivo de sello arquitectónico */
.pi__badge {
  position: absolute;
  bottom: 2.75rem;
  right: 2.5rem;
  z-index: 3;
  animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.pi__badge-ring {
  width: 96px; height: 96px;
  border: 1.5px solid rgba(194,150,96,.55);
  border-radius: 50%;
  background: rgba(23,35,58,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  box-shadow:
    0 4px 32px rgba(0,0,0,.4),
    inset 0 0 0 4px rgba(194,150,96,.08),
    0 0 0 8px rgba(194,150,96,.05);
}

.pi__badge-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -.03em;
}

.pi__badge-label {
  font-family: var(--font-sans);
  font-size: .4375rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.3;
}

/* Strip inferior de la imagen */
.pi__image-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(to top, rgba(23,35,58,.9) 0%, transparent 100%);
  font-family: var(--font-sans);
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}

.pi__strip-diamond {
  color: rgba(194,150,96,.5);
  font-size: .4rem;
}

/* ── Nav link especial Plan 2026 ── */
.navbar__links .nav-plan {
  color: var(--color-accent) !important;
  font-weight: 700 !important;
}
.navbar__links .nav-plan::after {
  background: var(--color-accent) !important;
}
.navbar.scrolled .navbar__links .nav-plan { color: var(--color-accent-dark) !important; }

/* ── Plan Integral: ajustes mobile (base) y desktop (min-width) ── */
/* Mobile base: imagen arriba, contenido abajo */
.pi__image-panel { min-height: 300px; order: -1; }
.pi__image-strip { display: none; }
.pi__actions { flex-direction: column; align-items: flex-start; }
.pi__actions .btn { width: 100%; justify-content: center; }

/* Tablet+ (≥640px): imagen más alta */
@media (min-width: 640px) {
  .pi__image-panel { min-height: 400px; }
  .pi__actions { flex-direction: row; align-items: center; }
  .pi__actions .btn { width: auto; justify-content: flex-start; }
}

/* Desktop (≥900px): layout lado a lado, imagen a la derecha */
@media (min-width: 900px) {
  .pi__image-panel { min-height: auto; order: 0; }
  .pi__image-strip { display: flex; }
  .pi__badge { bottom: 2.75rem; right: 2.5rem; }
  .pi__badge-ring { width: 96px; height: 96px; }
  .pi__badge-year { font-size: 1.5rem; }
  .pi__text { padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }
  .pi__smart { letter-spacing: -.03em; }
}

