:root {
  --red: #8f1d2c;
  --red-dark: #6e1522;
  --red-light: #c0394a;
  --gold: #c69a5c;
  --gold-light: #e6c079;
  --gold-dark: #a87f43;
  --ink: #131417;
  --charcoal: #1c1e22;
  --charcoal-2: #262931;
  --charcoal-border: #383c44;
  --white: #ffffff;
  --offwhite: #f7f5f0;
  --border-light: #e6e2d8;
  --text-dark: #1c1e22;
  --text-dark-soft: #5c584f;
  --text-light: #f4f2ec;
  --text-light-soft: rgba(244, 242, 236, 0.68);
  --shadow: 0 20px 40px -20px rgba(19, 20, 23, 0.35);
  --shadow-lg: 0 30px 70px -24px rgba(19, 20, 23, 0.5);
  --radius: 18px;
  --font-head: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --heading: var(--red);
  --body-text: var(--text-dark-soft);
  --eyebrow: var(--gold-dark);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--offwhite);
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--heading);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--body-text); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--eyebrow);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .5em;
}

.section-lead {
  max-width: 640px;
  font-size: 1.08rem;
}

/* Surfaces */
.surface-light { background: var(--offwhite); color: var(--text-dark); --heading: var(--red); --body-text: var(--text-dark-soft); --eyebrow: var(--gold-dark); }
.surface-dark {
  background: var(--charcoal);
  color: var(--text-light);
  --heading: var(--gold-light);
  --body-text: var(--text-light-soft);
  --eyebrow: var(--gold-light);
}
.surface-light, .surface-dark { padding: 96px 0; }

section[id], [id="portal"] { scroll-margin-top: 84px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .95em 1.8em;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.btn-group .btn { white-space: nowrap; }

.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.14); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 20px 40px -18px rgba(198,154,92,.6); border: none; }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 24px 50px -16px rgba(198,154,92,.75); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 226, 216, .6);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(247, 245, 240, .96);
  box-shadow: 0 8px 30px -18px rgba(19,20,23,.35);
  border-bottom-color: var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.main-nav a { position: relative; padding: 4px 0; color: var(--text-dark); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right .22s ease;
}
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after { right: 0; }

.main-nav a.nav-highlight {
  background: var(--red);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  text-align: center;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.main-nav a.nav-highlight::after { content: none; }
.main-nav a.nav-highlight:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.nav-cta { margin-left: 0; padding: .6em 1.1em; font-size: .76rem; white-space: nowrap; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,18,21,.6) 0%, rgba(17,18,21,.72) 55%, rgba(17,18,21,.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding-top: 120px; padding-bottom: 90px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--gold-light);
  margin-bottom: .7em;
  font-size: .92rem;
}
.hero h1 { color: var(--white); }
.hero-sub { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.8em; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 1.5rem;
  z-index: 2;
  animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(8px);} }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-text { order: 1; }
.split.reverse .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 520px;
}

.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-duo img { max-height: 340px; }
@media (max-width: 640px) {
  .media-duo { grid-template-columns: 1fr; }
  .media-duo img { max-height: 280px; }
}

.media-stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) {
  .media-stack img { max-height: 380px; }
}

.media-with-inset { position: relative; }
.media-with-inset .inset-photo {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 38%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  border: 5px solid var(--charcoal);
  box-shadow: 0 18px 36px -12px rgba(0,0,0,.6);
}

.check-list { list-style: none; padding: 0; margin: 1.3em 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: .65em;
  font-weight: 500;
  color: var(--body-text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--ink);
  background: var(--gold);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Nosotros / dark surface split spacing already inherits .split */

/* Evolucion timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 60px;
  padding-left: 46px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--border-light));
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -55px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--gold);
  border: 4px solid var(--offwhite);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.1);
}
.timeline-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: .3em .9em;
  border-radius: 100px;
  margin-bottom: .8em;
}
.timeline-card h3 { color: var(--red); margin-bottom: .4em; }
.timeline-card p { margin: 0; }

@media (min-width: 900px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline-item { width: 50%; padding-right: 56px; }
  .timeline-item:nth-child(even) { align-self: flex-end; padding-right: 0; padding-left: 56px; }
  .timeline-dot { left: auto; right: -18px; top: 0; }
  .timeline-item:nth-child(even) .timeline-dot { left: -18px; right: auto; }
}

/* Servicios: interactive hover cards (dark surface) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 54px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--charcoal-border);
  cursor: pointer;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  background-image: inherit;
  transition: all .4s ease;
  transform: scale(1.06);
  z-index: -2;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,20,23,.25) 0%, rgba(19,20,23,.55) 55%, rgba(19,20,23,.92) 100%);
  transition: all .4s ease;
  z-index: -1;
}
.service-card--full-photo,
.service-card--full-photo::before {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--charcoal-2);
}
.service-card:hover,
.service-card:focus-within,
.service-card.active {
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(198,154,92,.4);
}
.service-card:hover::before,
.service-card:focus-within::before,
.service-card.active::before {
  transform: scale(1.14);
}
.service-card:hover::after,
.service-card:focus-within::after,
.service-card.active::after {
  background: linear-gradient(180deg, rgba(19,20,23,.35) 0%, rgba(19,20,23,.68) 45%, rgba(19,20,23,.97) 100%);
}

.service-card-title {
  position: relative;
  z-index: 1;
  padding: 28px 26px 0;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  transition: all .4s ease;
}

.service-card-panel {
  position: relative;
  z-index: 1;
  padding: 18px 26px 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .4s ease;
}
.service-card:hover .service-card-panel,
.service-card:focus-within .service-card-panel,
.service-card.active .service-card-panel {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 30px;
}
.service-card-panel p {
  color: rgba(255,255,255,.92);
  font-size: .93rem;
  margin: 0 0 .8em;
}
.service-card-panel p:last-child { margin-bottom: 0; }


/* Cobertura CTA */
.cobertura { position: relative; overflow: hidden; }
.cobertura-inner { position: relative; display: flex; justify-content: center; }
.cobertura-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 140vw);
  height: min(700px, 140vw);
  opacity: .5;
  pointer-events: none;
}
.ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5; transform-origin: 200px 200px; animation: ringPulse 4.5s ease-out infinite; }
.ring-2 { animation-delay: 1s; }
.ring-3 { animation-delay: 2s; }
.ring-dot { fill: var(--gold-light); }
@keyframes ringPulse {
  0% { transform: scale(.7); opacity: .7; }
  80%, 100% { transform: scale(1.15); opacity: 0; }
}
.cobertura-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: center;
}
.cobertura-content .section-lead { margin-left: auto; margin-right: auto; }
.cobertura-content .btn { margin-top: 1.4em; }

/* Picado: technical detail columns, between the intro split and the portal */
.feature-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-col h3 { margin-bottom: .5em; }
.feature-col p { margin: 0; }
.picado-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-dark);
  margin: 2em 0 0;
}

/* Portal de clientes (nested inside .picado, after the intro split) */
.picado .container + .container {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--border-light);
}
.portal-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.portal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.portal-inner .section-lead { margin-left: auto; margin-right: auto; }
.portal-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 2.2em 0 2em;
  flex-wrap: wrap;
}
.portal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 160px;
}
.portal-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-step p { margin: 0; font-size: .88rem; color: var(--text-dark-soft); }
.portal-note {
  margin: .9em 0 0;
  font-size: .82rem;
  color: var(--text-dark-soft);
  opacity: .8;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 54px;
}
.gallery-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 1.7em 0; }
.contact-list li { margin-bottom: 1.1em; display: flex; flex-direction: column; gap: 3px; }
.contact-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; color: var(--gold-light); font-weight: 700; }
.contact-list a { color: var(--white); font-weight: 600; font-size: 1.08rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-link-icon { display: inline-flex; align-items: center; gap: 8px; }
.contact-link-icon svg { flex-shrink: 0; }
.contacto .split-text > p:first-of-type { color: var(--text-light-soft); }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 1.7em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .95em 1.1em;
  border-radius: 10px;
  border: 1px solid var(--charcoal-border);
  font-family: var(--font-body);
  font-size: .98rem;
  background: rgba(255,255,255,.06);
  color: var(--white);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(244,242,236,.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.1); }
.contact-form .btn { align-self: flex-start; }

.map-media { display: flex; flex-direction: column; gap: 14px; }
.map-media iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  filter: grayscale(.15) contrast(1.05);
}
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  align-self: flex-start;
  padding: .75em 1.4em;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--charcoal-border);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .3s ease;
}
.map-cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0; }
.footer-inner { text-align: center; }
.footer-logo { height: 40px; margin: 0 auto 16px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 600; font-size: .95rem; margin-bottom: 18px; transition: color .3s ease; }
.footer-social:hover { color: var(--gold); }
.footer-inner p { color: rgba(255,255,255,.65); margin: .25em 0; font-size: .92rem; }
.footer-copy { font-size: .8rem; opacity: .65; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.5);
  z-index: 60;
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .surface-light, .surface-dark { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 420px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text, .split.reverse .split-media { order: initial; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-columns { grid-template-columns: 1fr; gap: 32px; }
}

/* The nav has 8 links + a highlighted CTA — that only fits inline on wide
   screens, so the hamburger pattern kicks in well above the general tablet
   breakpoint to avoid links overflowing off-screen with no way to reach them. */
@media (max-width: 1240px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--offwhite);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-light);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .cobertura-rings { opacity: .3; }
  .service-card { min-height: 380px; }
  .service-card-title { font-size: 1.2rem; }
}
