/* =========================================================
   SIRESICAT y suplementos
   Diseño responsivo sin dependencias externas
   ========================================================= */

:root {
  --bg: #f5f1e7;
  --surface: #fffdf8;
  --surface-soft: #ebe7dc;
  --ink: #17231d;
  --ink-soft: #536058;
  --green-950: #111a16;
  --green-900: #17231d;
  --green-800: #24342a;
  --green-700: #354b3c;
  --gold: #d6b967;
  --gold-light: #f7e8ae;
  --gold-deep: #a88634;
  --red: #c6422d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 28, 22, .14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: 1180px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(214,185,103,.13), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--green-950);
  background: var(--gold-light);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(214,185,103,.13), transparent 24rem),
    linear-gradient(145deg, #111a16, #1d2b23 58%, #101713);
}

.section-soft {
  background:
    linear-gradient(120deg, rgba(255,255,255,.6), transparent 35%),
    var(--surface-soft);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--green-950);
  background: var(--gold-light);
  border-radius: 9px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-dark .eyebrow,
.section-heading.light .eyebrow {
  color: var(--gold-light);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  letter-spacing: -.055em;
}

h1 span {
  display: block;
  color: var(--gold-light);
  font-size: .44em;
  font-style: italic;
  letter-spacing: -.02em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  letter-spacing: -.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

p {
  color: var(--ink-soft);
}

.section-dark p,
.section-heading.light p {
  color: rgba(255,255,255,.72);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered .eyebrow::after {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-heading p:last-child {
  max-width: 670px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.section-heading.centered p:last-child {
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  color: var(--white);
  background: rgba(16, 24, 20, .76);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(16, 24, 20, .94);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(247,232,174,.34);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--gold-light);
  font-size: .92rem;
  letter-spacing: .16em;
}

.brand-text small {
  margin-top: 5px;
  color: rgba(255,255,255,.66);
  font-size: .72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255,255,255,.72);
  font-size: .83rem;
  font-weight: 700;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}

.header-cta {
  margin-left: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(214,185,103,.2);
  font-size: .91rem;
  font-weight: 850;
  letter-spacing: .015em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(214,185,103,.27);
}

.button-small {
  min-height: 42px;
  padding: 9px 18px;
  font-size: .82rem;
}

.button-ghost {
  color: var(--white);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  box-shadow: none;
}

.button-outline {
  color: var(--green-900);
  background: transparent;
  border-color: rgba(23,35,29,.22);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 80px) 0 96px;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  padding-top: 26px;
}

.hero-definition {
  max-width: 690px;
  margin-bottom: 20px;
  color: var(--gold-light) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

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

.hero-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  font-size: .9rem;
}

.hero-contact span {
  color: rgba(255,255,255,.52);
}

.hero-contact a {
  color: var(--white);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.triangle-frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.triangle-line {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 76%;
  height: 76%;
  border-top: 2px solid rgba(247,232,174,.72);
  border-left: 2px solid rgba(247,232,174,.72);
  filter: drop-shadow(0 0 14px rgba(247,232,174,.3));
  transform: translateX(-50%) rotate(45deg) skew(-7deg, -7deg);
}

.logo-orbit {
  position: relative;
  z-index: 2;
  width: 72%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(247,232,174,.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(247,232,174,.035),
    0 0 0 34px rgba(247,232,174,.025),
    0 40px 90px rgba(0,0,0,.35);
}

.logo-orbit::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
}

.logo-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}

.hero-glow-one {
  top: 14%;
  right: 8%;
  width: 340px;
  height: 340px;
  background: rgba(214,185,103,.16);
}

.hero-glow-two {
  bottom: -110px;
  left: 6%;
  width: 310px;
  height: 310px;
  background: rgba(198,66,45,.08);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255,255,255,.44);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--gold-light), transparent);
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
}

.profile-photo {
  position: relative;
  margin: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255,255,255,.45);
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.05);
}

.photo-frame img {
  width: 100%;
  height: auto;
}

.profile-photo figcaption {
  position: absolute;
  right: -18px;
  bottom: 22px;
  padding: 13px 19px;
  color: var(--green-950);
  background: var(--gold-light);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  font-size: .8rem;
  font-weight: 850;
}

.profile-content {
  max-width: 650px;
}

.large-copy {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.45;
}

.definition-card {
  position: relative;
  margin: 34px 0;
  padding: 30px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(140deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.definition-card::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(247,232,174,.2);
  transform: rotate(45deg);
}

.definition-card h3 {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

.definition-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.area-highlight {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 20px;
  padding: 13px 20px 13px 13px;
  background: var(--surface);
  border: 1px solid rgba(23,35,29,.1);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(23,35,29,.07);
}

.area-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--green-950);
  background: var(--gold-light);
  border-radius: 50%;
  font-weight: 900;
}

.area-highlight div {
  display: grid;
}

.area-highlight small {
  color: var(--ink-soft);
}

.area-highlight strong {
  color: var(--ink);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(23,35,29,.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 55px rgba(23,35,29,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 65px rgba(23,35,29,.13);
}

.service-card.featured {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 5%, rgba(214,185,103,.19), transparent 15rem),
    linear-gradient(145deg, var(--green-900), var(--green-700));
}

.service-card.featured p {
  color: rgba(255,255,255,.72);
}

.service-card h3 {
  max-width: 390px;
  margin-top: 36px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
}

.service-card p {
  max-width: 470px;
  font-size: 1.05rem;
}

.card-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(23,35,29,.12);
  font-family: Georgia, serif;
  font-size: 3.5rem;
}

.featured .card-index {
  color: rgba(255,255,255,.12);
}

.service-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--gold-deep);
  background: var(--gold-light);
  border-radius: 22px;
}

.service-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--gold-deep);
  font-weight: 850;
}

.featured .text-link {
  color: var(--gold-light);
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

/* Process */
.process {
  overflow: hidden;
}

.process::before {
  position: absolute;
  top: 0;
  right: -180px;
  width: 500px;
  height: 500px;
  content: "";
  border: 1px solid rgba(247,232,174,.08);
  transform: rotate(45deg);
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-track::before {
  position: absolute;
  top: 43px;
  right: 12%;
  left: 12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(247,232,174,.52), transparent);
}

.process-step {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}

.step-number {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(214,185,103,.17);
  font-weight: 900;
}

.process-step h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.process-step p {
  margin-bottom: 0;
  font-size: .94rem;
}

/* Video */
.media-section {
  overflow: hidden;
}

.media-section::before {
  position: absolute;
  top: 40%;
  left: -130px;
  width: 310px;
  height: 310px;
  content: "";
  background: rgba(214,185,103,.12);
  border-radius: 50%;
  filter: blur(70px);
}

.video-shell {
  position: relative;
  width: min(100%, 650px);
  margin-inline: auto;
  padding: 14px;
  background: var(--green-950);
  border: 1px solid rgba(214,185,103,.38);
  border-radius: 34px;
  box-shadow: 0 36px 85px rgba(18,28,22,.26);
}

.video-shell video {
  width: 100%;
  max-height: 78svh;
  background: #000;
  border-radius: 23px;
}

.video-accent {
  position: absolute;
  inset: -13px;
  z-index: -1;
  border: 1px solid rgba(168,134,52,.24);
  border-radius: 44px;
}

/* Catalog */
.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.catalog-header .section-heading {
  margin-bottom: 0;
}

.catalog-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(23,35,29,.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pdf-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--green-900);
}

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

.pdf-title strong {
  overflow: hidden;
  font-size: .91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-dot {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(214,185,103,.12);
}

.pdf-badge {
  padding: 5px 9px;
  color: var(--green-950);
  background: var(--gold-light);
  border-radius: 7px;
  font-size: .69rem;
  font-weight: 900;
}

.pdf-shell iframe {
  width: 100%;
  height: min(78svh, 860px);
  background: #d7d7d7;
  border: 0;
}

.pdf-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: #f8f5ed;
  border-top: 1px solid rgba(23,35,29,.08);
  font-size: .84rem;
}

.pdf-fallback p {
  margin: 0;
}

.pdf-fallback a {
  flex-shrink: 0;
  color: var(--gold-deep);
  font-weight: 850;
}

/* Contact */
.contact {
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.contact-copy h2 {
  max-width: 620px;
}

.contact-copy p {
  font-size: 1.12rem;
}

.contact-card {
  overflow: hidden;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 105px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background .2s ease;
}

.contact-row:last-child {
  border-bottom: 0;
}

a.contact-row:hover {
  background: rgba(255,255,255,.055);
}

.contact-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--green-950);
  background: var(--gold-light);
  border-radius: 16px;
  font-size: .87rem;
  font-weight: 950;
}

.contact-row span:nth-child(2) {
  display: grid;
}

.contact-row small {
  color: rgba(255,255,255,.5);
}

.contact-row strong {
  color: var(--white);
  font-size: 1.05rem;
}

.contact-row b {
  color: var(--gold-light);
  font-size: 1.25rem;
}

.contact-glow {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 460px;
  height: 460px;
  background: rgba(214,185,103,.11);
  border-radius: 50%;
  filter: blur(80px);
}

/* Footer */
.site-footer {
  padding: 30px 0;
  color: rgba(255,255,255,.62);
  background: #0a100d;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 13px;
}

.footer-brand span {
  display: grid;
  line-height: 1.1;
}

.footer-brand strong {
  color: var(--gold-light);
  font-size: .83rem;
  letter-spacing: .13em;
}

.footer-brand small {
  margin-top: 4px;
  font-size: .68rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: .78rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: .75rem;
  text-align: right;
}

/* Floating actions */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: #21b85b;
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  transition: transform .2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.back-to-top {
  position: fixed;
  right: 29px;
  bottom: 91px;
  z-index: 890;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--green-950);
  background: var(--gold-light);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* El contenido siempre es visible.
   JavaScript solo añade una animación progresiva cuando carga correctamente. */
.reveal {
  opacity: 1;
  transform: none;
}

.animations-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

.animations-ready .reveal {
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.25,1);
}

.animations-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: .77rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  }

  .hero-visual {
    min-height: 470px;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding: 90px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(12,18,15,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .9rem;
  }

  .main-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 58px);
  }

  .hero-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero-visual {
    min-height: auto;
    padding: 20px 0 45px;
  }

  .triangle-frame {
    width: min(90vw, 470px);
  }

  .logo-orbit {
    width: 64%;
  }

  .scroll-cue {
    display: none;
  }

  .profile-grid {
    gap: 48px;
  }

  .profile-photo {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .profile-content {
    max-width: none;
  }

  .catalog-header {
    display: grid;
    align-items: start;
  }

  .catalog-actions {
    justify-content: flex-start;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-copy .eyebrow {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .hero {
    padding-bottom: 62px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-contact {
    justify-content: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow {
    justify-content: center;
  }

  .services-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 30px;
    border-radius: 28px;
  }

  .profile-photo figcaption {
    right: 12px;
    bottom: 12px;
  }

  .definition-card {
    padding: 25px;
  }

  .area-highlight {
    width: 100%;
    border-radius: 22px;
  }

  .video-shell {
    padding: 8px;
    border-radius: 25px;
  }

  .video-shell video {
    border-radius: 18px;
  }

  .catalog-actions {
    display: grid;
  }

  .catalog-actions .button {
    width: 100%;
  }

  .pdf-toolbar {
    min-height: 58px;
  }

  .pdf-shell iframe {
    height: 68svh;
    min-height: 510px;
  }

  .pdf-fallback {
    display: grid;
    text-align: center;
  }

  .contact-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 18px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .contact-row strong {
    overflow-wrap: anywhere;
    font-size: .95rem;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .back-to-top {
    right: 22px;
    bottom: 83px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .animations-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
