:root {
  --bg: #f6f1e8;
  --bg-soft: #fffaf3;
  --card: rgba(255, 250, 243, 0.92);
  --ink: #2f241f;
  --muted: #6f6057;
  --accent: #cc6b49;
  --accent-dark: #a74f31;
  --line: rgba(73, 50, 39, 0.14);
  --shadow: 0 18px 45px rgba(69, 42, 26, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 170, 0.5), transparent 30%),
    linear-gradient(180deg, #f3e7d5 0%, var(--bg) 42%, #efe4d5 100%);
}

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

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

header,
section {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 26px;
}

header {
  padding: 42px 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(248, 231, 214, 0.9));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

section {
  padding: 28px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

section h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.8rem;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(204, 107, 73, 0.15));
}

section p {
  color: var(--muted);
}

#video-promocional video {
  width: min(100%, 420px) !important;
  margin: 0 auto;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(60, 39, 25, 0.12);
  border: 4px solid rgba(255, 255, 255, 0.75);
  background: #241b17;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#video-promocional video:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(60, 39, 25, 0.18);
}

#podcast audio {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6ec, #f8e8d9);
  box-shadow: 0 10px 28px rgba(60, 39, 25, 0.12);
}

#podcast p {
  margin-top: 16px;
  text-align: center;
}

.carousel {
  max-width: 460px;
  margin: 0 auto;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(63, 38, 24, 0.18);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.carousel:hover img.active {
  transform: scale(1.02);
  filter: saturate(1.04);
}

#mapa iframe {
  width: min(100%, 560px);
  height: 320px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(60, 39, 25, 0.12);
  border: 4px solid rgba(255, 255, 255, 0.75);
}

.infografia {
  width: min(100%, 520px);
  margin: 0 auto;
  position: relative;
}

.infografia img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(63, 38, 24, 0.16);
}

.hotspot {
  width: 56px;
  height: 56px;
  background: rgba(204, 107, 73, 0.78);
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(91, 43, 28, 0.2);
}

.tooltip {
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffaf3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.5;
}

.site-header {
  padding: 24px 20px 10px;
}

.top-nav,
.hero,
.page-shell,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 26px 0 30px;
}

.hero-copy,
.hero-card,
.content-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.video-controls button,
.volume-buttons button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-primary:hover,
.button-secondary:hover,
.video-controls button:hover,
.volume-buttons button:hover,
.carousel button:hover,
.dot:hover {
  transform: translateY(-2px);
}

.hero-card {
  padding: 28px;
  align-self: center;
}

.hero-card h2,
.content-card h2,
.info-card h2 {
  margin-top: 0;
  font-size: 1.55rem;
}

.hero-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.page-shell {
  display: grid;
  gap: 24px;
  padding-bottom: 38px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.content-card {
  padding: 28px;
}

.info-card p,
.section-heading p,
.audio-help,
.site-footer {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.video-player video,
.map-frame,
.podcast-panel,
.infografia img {
  border-radius: 20px;
}

.video-player {
  width: min(100%, 560px);
  margin: 0 auto;
}

.video-player video,
.map-frame,
.infografia img {
  box-shadow: 0 12px 30px rgba(60, 39, 25, 0.12);
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 560px;
}

.video-controls input {
  cursor: pointer;
}

.video-controls button,
.volume-buttons button {
  background: #fff7ef;
  border-color: var(--line);
}

#volume-control {
  width: min(220px, 100%);
  accent-color: var(--accent);
}

.volume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.volume-status {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff7ef;
  color: var(--accent-dark);
}

.audio-help {
  width: 100%;
  margin: 4px 0 0;
}

.podcast-panel {
  padding: 26px;
  background: linear-gradient(135deg, #fff4e7, #f8eadb);
  border: 1px solid var(--line);
}

.podcast-panel audio {
  width: 100%;
}

.carousel {
  position: relative;
  height: clamp(260px, 48vw, 460px);
  overflow: hidden;
  border-radius: 22px;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.carousel img.active {
  opacity: 1;
  transform: scale(1);
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 22, 17, 0.62);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

.carousel button:hover {
  background: rgba(167, 79, 49, 0.92);
}

.carousel button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(109, 83, 67, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.map-frame {
  min-height: 360px;
  border: 0;
}

.infografia {
  width: min(800px, 100%);
  margin: 0 auto;
  position: relative;
}

.hotspot {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(204, 107, 73, 0.78);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(91, 43, 28, 0.18);
  animation: pulse 2.2s infinite;
}

.hotspot:hover {
  background: rgba(167, 79, 49, 0.95);
}

section:hover {
  box-shadow: 0 22px 48px rgba(69, 42, 26, 0.16);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hotspot-services {
  top: 20%;
  left: 30%;
}

.hotspot-values {
  top: 50%;
  left: 60%;
}

.tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffaf3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateX(-50%);
  z-index: 10;
}

.infografia-intro {
  max-width: 720px;
  margin-bottom: 24px;
}

.infografia-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.infografia-sidebar {
  display: grid;
  gap: 14px;
}

.info-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.95), rgba(247, 234, 220, 0.88));
  box-shadow: 0 10px 22px rgba(69, 42, 26, 0.08);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.info-node:hover,
.info-node.active {
  transform: translateY(-4px);
  border-color: rgba(167, 79, 49, 0.28);
  box-shadow: 0 18px 34px rgba(69, 42, 26, 0.14);
  background: linear-gradient(135deg, rgba(255, 242, 229, 1), rgba(245, 224, 204, 0.96));
}

.info-node-number {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.info-node-copy {
  display: grid;
  gap: 4px;
}

.info-node-copy strong {
  font-size: 1.04rem;
  color: var(--ink);
}

.info-node-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.infografia-board {
  display: grid;
  gap: 18px;
}

.infografia-panel,
.metric-card,
.flow-step {
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 14px 30px rgba(69, 42, 26, 0.08);
}

.infografia-panel {
  min-height: 220px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(204, 107, 73, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 248, 239, 0.98), rgba(251, 240, 227, 0.95));
}

.panel-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(204, 107, 73, 0.12);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.infografia-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.infografia-panel p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.8;
}

.panel-animate {
  animation: panelReveal 0.35s ease;
}

.infografia-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  border-radius: 20px;
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.metric-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(111, 96, 87, 0.14);
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #e19959);
  animation: growBar 1.1s ease;
}

.infografia-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.flow-step {
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.flow-step p {
  margin: 0;
  line-height: 1.6;
}

.flow-line {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(204, 107, 73, 0.9), rgba(204, 107, 73, 0.2));
}

.site-footer {
  padding: 0 0 36px;
  text-align: center;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes panelReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growBar {
  0% {
    width: 0;
  }
}

@media (max-width: 900px) {
  .hero,
  .intro-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .top-nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .infografia-layout,
  .infografia-metrics,
  .infografia-flow {
    grid-template-columns: 1fr;
  }

  .flow-line {
    width: 3px;
    height: 26px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(204, 107, 73, 0.9), rgba(204, 107, 73, 0.2));
  }
}

@media (max-width: 640px) {
  header,
  section {
    width: min(100% - 20px, 920px);
    padding: 22px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .top-nav,
  .hero,
  .page-shell,
  .site-footer {
    width: min(100% - 12px, 1120px);
  }

  .hero-copy,
  .hero-card,
  .content-card,
  .info-card {
    padding: 22px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .carousel {
    height: 260px;
  }

  .infografia-panel,
  .metric-card,
  .flow-step,
  .info-node {
    padding: 18px;
  }
}
