:root {
  --forest-deep: #1E3226;
  --forest: #2F4A38;
  --forest-soft: #3E5F49;
  --stone: #F6F1E7;
  --stone-dark: #ECE3D0;
  --clay: #B4794A;
  --clay-soft: #DDBE95;
  --ink: #20261F;
  --mist: #75816F;
  --white: #FFFEFB;
  --radius: 18px;
  --shadow: 0 20px 50px -25px rgba(30, 50, 38, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Public Sans', sans-serif;
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.08;
  color: var(--forest-deep);
}

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

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

svg {
  display: block;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(30, 50, 38, .55);
}

.btn-outline {
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

.btn-clay {
  background: var(--clay);
  color: var(--white);
}

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

.btn-ghost {
  border-color: var(--forest);
  color: var(--forest);
}

.btn-ghost:hover {
  background: var(--forest);
  color: var(--white);
}

.btn:active {
  transform: translateY(0) scale(.97);
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 50, 38, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img.shield {
  height: 40px;
  width: auto;
  flex: none;
}

.brand img.wordmark {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.nav-links a {
  opacity: .8;
  transition: .2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--clay);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.nav-cta .btn {
  padding: 11px 20px;
  font-size: .85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background .2s;
}

.menu-toggle:hover {
  background: rgba(30, 50, 38, .08);
}

.menu-toggle .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.8px;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.menu-toggle .bar:nth-child(1) {
  top: 13px;
}

.menu-toggle .bar:nth-child(2) {
  top: 19px;
}

.menu-toggle .bar:nth-child(3) {
  top: 25px;
}

.menu-toggle.open .bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- Mobile dropdown menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(20, 32, 24, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--stone);
  box-shadow: -14px 0 40px -16px rgba(20, 32, 24, .5);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-panel a {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest-deep);
  padding: 14px 4px;
  border-bottom: 1px solid rgba(30, 50, 38, .1);
}

.mobile-menu-panel .btn {
  margin-top: 22px;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

@media(max-width:900px) {
  .mobile-menu {
    display: block;
  }
}

@media(max-width:900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media(max-width:400px) {
  .nav-cta {
    gap: 8px;
  }

  .nav-cta .btn-ghost {
    padding: 9px 14px;
    font-size: .78rem;
  }

  .nav-cta .btn-ghost span {
    display: none;
  }
}

/* ---------- Ridge divider ---------- */
.ridge {
  width: 100%;
  height: 34px;
  display: block;
}

.ridge path {
  fill: none;
  stroke: var(--clay-soft);
  stroke-width: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg img {
  position: absolute;
  inset: 0;
}

.hero-bg img.mobile {
  display: none;
}

.hero-bg img.desktop {
  display: block;
}

@media(max-width:768px) {
  .hero-bg img.desktop {
    display: none;
  }

  .hero-bg img.mobile {
    display: block;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 32, 24, .94) 0%, rgba(20, 32, 24, .55) 42%, rgba(20, 32, 24, .18) 68%, rgba(20, 32, 24, .35) 100%),
    linear-gradient(100deg, rgba(20, 32, 24, .55) 0%, transparent 55%);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 150px 28px 74px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .eyebrow {
  color: var(--clay-soft);
  opacity: 0;
  animation: fadeUp .7s ease .1s forwards;
}

.hero .eyebrow::before {
  background: var(--clay-soft);
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  letter-spacing: -.01em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp .8s ease .22s forwards;
}

.hero p.lead {
  font-size: 1.35rem;
  max-width: 560px;
  margin-top: 18px;
  color: var(--stone-dark);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp .8s ease .34s forwards;
}

.hero p.sub {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(246, 241, 231, .82);
  opacity: 0;
  animation: fadeUp .8s ease .46s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  opacity: 0;
  animation: fadeUp .8s ease .58s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-chip {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 100px;
  padding: 9px 18px 9px 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .85rem;
  color: var(--white);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeUp .7s ease .5s forwards;
}

.weather-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

@keyframes spinSlow {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.weather-chip.loading .weather-chip-icon svg {
  animation: spinSlow 1.4s linear infinite;
}

@media(max-width:640px) {
  .weather-chip {
    top: 16px;
    right: 16px;
    padding: 7px 14px 7px 11px;
    font-size: .72rem;
  }

  .hero-inner {
    padding-top: 120px;
  }
}

@media(max-width:480px) {
  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 104px 20px 56px;
  }

  .hero-ctas {
    gap: 10px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Quick access cards ---------- */
.quick {
  margin-top: -52px;
  position: relative;
  z-index: 5;
}

.quick-grid {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-card {
  padding: 34px 28px;
  border-right: 1px solid var(--stone-dark);
  min-width: 0;
  transition: background .25s ease;
}

.quick-card:last-child {
  border-right: none;
}

.qc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  transition: transform .3s ease;
  flex: none;
}

.qc-icon svg {
  width: 21px;
  height: 21px;
}

.quick-card:hover .qc-icon {
  transform: scale(1.1) rotate(-6deg);
}

.qc-text {
  min-width: 0;
}

.quick-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.quick-card p {
  font-size: .9rem;
  color: var(--mist);
  margin-bottom: 16px;
}

.qc-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  flex: none;
}

.qc-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform .25s ease;
}

.quick-card:hover .qc-arrow {
  background: var(--clay);
  color: var(--white);
}

.quick-card:hover .qc-arrow svg {
  transform: translateX(3px);
}

.quick-card:active {
  background: var(--stone-dark);
}

@media(max-width:900px) {
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-card {
    border-bottom: 1px solid var(--stone-dark);
  }

  .quick-card:nth-child(2n) {
    border-right: none;
  }
}

@media(max-width:560px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-right: none;
  }

  .qc-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
  }

  .qc-icon svg {
    width: 18px;
    height: 18px;
  }

  .quick-card h3 {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .quick-card p {
    font-size: .82rem;
    margin-bottom: 0;
    line-height: 1.4;
  }

  .qc-arrow {
    width: 28px;
    height: 28px;
  }

  .qc-arrow svg {
    width: 13px;
    height: 13px;
  }
}

section {
  padding: 100px 0;
}

@media(max-width:760px) {
  section {
    padding: 64px 0;
  }
}

@media(max-width:480px) {
  section {
    padding: 52px 0;
  }

  .wrap {
    padding: 0 18px;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

@media(max-width:480px) {
  .section-head {
    margin-bottom: 32px;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

@media(prefers-reduced-motion:reduce) {

  .reveal,
  .reveal-child,
  .hero .eyebrow,
  .hero h1,
  .hero p.lead,
  .hero p.sub,
  .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ---------- About split ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-copy {
  background: var(--stone-dark);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  font-size: 1.85rem;
  margin-bottom: 18px;
}

.about-copy p {
  color: #41493D;
  margin-bottom: 14px;
  font-size: .98rem;
}

.about-copy p.small {
  font-size: .88rem;
  color: var(--mist);
}

.about-photo {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
}

.about:hover .about-photo img {
  transform: scale(1.05);
}

.about-photo .tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(30, 50, 38, .78);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.about-photo .tag svg {
  width: 14px;
  height: 14px;
}

@media(max-width:860px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: 280px;
    order: -1;
  }
}

@media(max-width:480px) {
  .about-copy {
    padding: 34px 24px;
  }

  .about-copy h2 {
    font-size: 1.5rem;
  }

  .about-photo {
    min-height: 220px;
  }
}

/* ---------- Experiences ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.exp-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.exp-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 34px -22px rgba(30, 50, 38, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(30, 50, 38, .5);
}

.exp-card:active {
  transform: translateY(-2px) scale(.99);
}

.exp-photo {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.exp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.exp-card:hover .exp-photo img {
  transform: scale(1.08);
}

.exp-icon {
  position: absolute;
  left: 16px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 3px solid var(--white);
  z-index: 2;
  box-shadow: 0 6px 14px -4px rgba(30, 50, 38, .4);
}

.exp-icon svg {
  width: 18px;
  height: 18px;
}

.exp-body {
  padding: 28px 20px 22px;
}

.exp-body h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.exp-body p {
  font-size: .86rem;
  color: var(--mist);
}

.exp-card.logo-card .exp-photo {
  background: var(--stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exp-card.logo-card .exp-photo img {
  width: auto;
  height: 100%;
  max-width: 70%;
  object-fit: contain;
}

@media(max-width:900px) {

  .exp-grid,
  .exp-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:768px) {

  .exp-grid,
  .exp-grid-2 {
    grid-template-columns: 1fr;
  }

  ;
}

/* ---------- Stats ---------- */
.stats {
  padding: 0 0 10px;
  margin-top: 100px;
}

@media(max-width:760px) {
  .stats {
    margin-top: 56px;
  }
}

.stats-card {
  background: var(--stone-dark);
  border-radius: 22px;
  box-shadow: 0 14px 34px -24px rgba(30, 50, 38, .35);
  overflow: hidden;
}

.stats-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 32px 28px;
  border-right: 1px solid rgba(30, 50, 38, .12);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.stat .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 50, 38, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--forest);
}

.stat .ic svg {
  width: 18px;
  height: 18px;
}

.stat:last-child {
  border-right: none;
}

.stat .txt {
  min-width: 0;
}

.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--forest-deep);
  display: block;
  word-break: break-word;
}

.stat .label {
  font-size: .8rem;
  color: var(--mist);
  display: block;
}

@media(max-width:860px) {
  .stats-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-bottom: 1px solid rgba(30, 50, 38, .12);
    border-right: none;
    padding: 26px 20px;
  }

  .stat:nth-child(2n) {
    border-left: 1px solid rgba(30, 50, 38, .12);
  }
}

@media(max-width:480px) {
  .stats-wrap {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: none !important;
    padding: 22px 20px;
  }

  .stat .num {
    font-size: 1.35rem;
  }
}

/* ---------- Agenda ---------- */
.agenda-list {
  display: grid;
  gap: 16px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 10px 26px -20px rgba(30, 50, 38, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}

.agenda-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(30, 50, 38, .5);
}

.agenda-date {
  background: var(--forest);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
}

.agenda-date .d {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  display: block;
}

.agenda-date .m {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}

.agenda-item h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.agenda-item p {
  font-size: .85rem;
  color: var(--mist);
}

.agenda-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clay);
  background: #F3E3D3;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

@media(max-width:640px) {
  .agenda-item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 18px 18px;
  }

  .agenda-tag {
    grid-column: 1/-1;
    justify-self: start;
  }

  .agenda-date {
    padding: 8px 0;
  }

  .agenda-date .d {
    font-size: 1.2rem;
  }
}

.agenda-note {
  margin-top: 22px;
  font-size: .86rem;
  color: var(--mist);
}

/* ---------- Ayuntamiento ---------- */
.ayto {
  background: var(--forest-deep);
  color: var(--white);
  border-radius: 28px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.ayto::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 121, 74, .22), transparent 70%);
  animation: floatBlob 9s ease-in-out infinite;
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-14px, 14px);
  }
}

.ayto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.ayto h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.ayto p {
  color: rgba(246, 241, 231, .78);
  margin-bottom: 26px;
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-row .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.info-row .ic svg {
  width: 17px;
  height: 17px;
}

.info-row .label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 2px;
}

.info-row .value {
  font-weight: 600;
}

.info-row .value small {
  display: block;
  font-weight: 400;
  color: rgba(246, 241, 231, .7);
  font-size: .82rem;
  margin-top: 2px;
}

@media(max-width:860px) {
  .ayto {
    padding: 40px 26px;
  }

  .ayto-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media(max-width:480px) {
  .ayto {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .ayto h2 {
    font-size: 1.5rem;
  }

  .ayto .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Sede electronica banner ---------- */
.sede {
  margin-top: 80px;
  border-radius: 24px;
  padding: 54px 56px;
  background: linear-gradient(120deg, var(--clay) 0%, #9C6539 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow);
}

.sede-text .eyebrow {
  color: rgba(255, 255, 255, .85);
}

.sede-text .eyebrow::before {
  background: rgba(255, 255, 255, .85);
}

.sede h2 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.sede p {
  color: rgba(255, 255, 255, .88);
  max-width: 480px;
  font-size: .95rem;
}

.sede-list {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.sede-list span {
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .92);
}

.sede-list svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.sede-cta {
  flex: none;
}

.sede .btn-outline {
  border-color: rgba(255, 255, 255, .7);
}

@media(max-width:760px) {
  .sede {
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 28px;
    margin-top: 56px;
  }
}

@media(max-width:480px) {
  .sede {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .sede h2 {
    font-size: 1.3rem;
  }

  .sede-cta {
    width: 100%;
  }

  .sede-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--forest-deep);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--stone-dark);
  background: var(--stone);
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--forest-soft);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info .info-row .ic {
  background: var(--stone-dark);
  color: var(--forest);
}

.contact-info .info-row .label {
  color: var(--clay);
}

.contact-info .info-row .value {
  color: var(--forest-deep);
}

.contact-info .info-row .value small {
  color: var(--mist);
}

.map-block {
  margin-top: 8px;
  border-radius: 16px;
  height: 180px;
  background:
    linear-gradient(155deg, var(--forest-soft), var(--forest-deep));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.map-block svg {
  width: 26px;
  height: 26px;
  opacity: .85;
}

@media(max-width:860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media(max-width:480px) {
  .contact-card {
    padding: 26px 22px;
    border-radius: 18px;
  }
}

/* ---------- Bottom contact CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--forest-deep) 0%, var(--forest) 100%);
  border-radius: 24px;
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 121, 74, .25), transparent 70%);
  animation: floatBlob 8s ease-in-out infinite;
}

.cta-band h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.cta-band p {
  color: rgba(246, 241, 231, .78);
  font-size: .92rem;
  max-width: 380px;
  position: relative;
  z-index: 2;
}

.cta-band .btn {
  position: relative;
  z-index: 2;
  flex: none;
}

@media(max-width:760px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 26px;
  }
}

@media(max-width:480px) {
  .cta-band {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Institutional bar ---------- */
.institutional {
  background: var(--white);
  border-top: 1px solid var(--stone-dark);
  padding: 38px 0;
}

.institutional-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.institutional .lbl {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 700;
  flex: none;
}

.inst-logos {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}

.inst-badge {
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}

.inst-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.inst-badge img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

@media(max-width:760px) {
  .institutional-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media(max-width:480px) {
  .inst-badge img {
    height: 34px;
  }
}

/* ---------- Footer ---------- */
footer {
  background: var(--forest-deep);
  color: rgba(246, 241, 231, .75);
  padding: 60px 0 110px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.foot-brand img.shield {
  height: 38px;
  width: auto;
}

.foot-brand img.wordmark {
  height: 20px;
  width: auto;
}

footer h4 {
  color: var(--white);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: .9rem;
}

footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease;
}

footer a svg {
  width: 14px;
  height: 14px;
  opacity: .8;
}

footer a:hover {
  color: var(--clay-soft);
  transform: translateX(3px);
}

.foot-bottom {
  border-top: 1px solid rgba(246, 241, 231, .14);
  padding-top: 24px;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media(max-width:760px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  footer {
    padding: 44px 0 44px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .foot-bottom span {
    flex-direction: column;
    text-align: center;
  }
}

.developed-by {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* ---------- Bottom mobile nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--stone-dark);
  padding: 10px 6px 14px;
}

.mobile-nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: .64rem;
  font-weight: 600;
  color: var(--mist);
  transition: color .2s ease, transform .2s ease;
}

.mobile-nav a svg {
  width: 19px;
  height: 19px;
  transition: transform .2s ease;
}

.mobile-nav a.active {
  color: var(--forest);
}

.mobile-nav a.active svg {
  transform: translateY(-2px);
}

.mobile-nav a:active {
  transform: scale(.92);
}

@media(max-width:900px) {
  .mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 65px;
  }

  .quick {
    margin-top: -30px;
  }

  .ayto {
    border-radius: 20px;
  }
}