:root {
  --wine: #70193a;
  --wine-dark: #4f1027;
  --wine-deep: #2a0715;
  --wine-soft: #efe3e6;
  --ink: #171315;
  --text: #2c2528;
  --muted: #6c6265;
  --paper: #fffef7;
  --surface: #f8f7f4;
  --line: #ded8d2;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(42, 7, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 247, 0.94);
  border-bottom: 1px solid rgba(112, 25, 58, 0.14);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-grid;
  line-height: 1;
  color: var(--wine);
}

.brand span {
  font-size: 1.65rem;
  font-weight: 900;
}

.brand strong {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

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

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

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(112, 25, 58, 0.22);
  border-radius: 8px;
  background: var(--white);
  color: var(--wine);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(86svh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #2a0715 0%, #3b091b 46%, #70193a 100%);
}

.hero-picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-picture::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    linear-gradient(rgba(42, 7, 21, 0.24), rgba(42, 7, 21, 0.24)),
    url("assets/images/fachada-definitiva.webp") center center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.46;
  transform: scale(1.04);
}

.hero-image {
  display: none;
  position: absolute;
  top: 50%;
  right: max(30px, calc((100vw - 1180px) / 2));
  z-index: 2;
  width: min(34vw, 500px);
  height: auto;
  max-height: calc(100% - clamp(42px, 6vw, 82px));
  object-fit: contain;
  object-position: center center;
  transform: translateY(-50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background:
    linear-gradient(90deg, rgba(42, 7, 21, 0.42), rgba(42, 7, 21, 0.04)),
    linear-gradient(0deg, rgba(42, 7, 21, 0.28), rgba(255, 255, 255, 0.04));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0 96px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

h1 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: 5rem;
  line-height: 0.96;
  letter-spacing: 0;
  color: inherit;
}

h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--white);
  color: var(--wine);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 92px 0;
}

#quienes-somos,
#propuesta,
#servicios,
#contacto {
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 58px;
  align-items: center;
}

.copy-block {
  max-width: 760px;
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.rich-text p,
.pillar-card p,
.value-card p,
.service-card p,
.service-card li,
.schedule p,
address {
  color: var(--muted);
  font-size: 1rem;
}

.rich-text p:last-child,
.service-card p:last-child,
.schedule p:last-child {
  margin-bottom: 0;
}

.image-panel {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--wine-soft);
}

.image-panel img,
.photo-band img,
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillars-section {
  background: var(--surface);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
  position: relative;
  padding-left: 18px;
}

.section-heading::before {
  position: absolute;
  top: 6px;
  bottom: 8px;
  left: 0;
  width: 4px;
  border-radius: 8px;
  background: var(--wine);
  content: "";
}

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

.pillar-card,
.value-card,
.service-card,
.schedule {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pillar-card {
  padding: 28px;
  box-shadow: 0 10px 30px rgba(42, 7, 21, 0.06);
}

.photo-band {
  display: grid;
  place-items: center;
  padding: 78px 20px;
  background: var(--paper);
}

.photo-band-single {
  grid-template-columns: 1fr;
}

.photo-band img {
  width: min(900px, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.value-section {
  background: var(--paper);
}

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

.value-layout .copy-block {
  grid-column: 1 / -1;
}

.value-card {
  padding: 32px;
}

.value-card h3 {
  color: var(--wine);
}

.image-panel-wide {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-height: 100%;
}

.services-section {
  padding-bottom: 48px;
  background: var(--surface);
}

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

.service-card {
  padding: 30px;
}

.service-card-large,
.service-card-accent {
  background: var(--wine);
  color: var(--white);
}

.service-card-large h3,
.service-card-large p,
.service-card-large li,
.service-card-accent h3,
.service-card-accent p,
.service-card-accent li {
  color: var(--white);
}

.service-card h3 {
  color: var(--wine);
}

.service-card-large h3,
.service-card-accent h3 {
  color: var(--white);
}

.service-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.service-card li {
  margin-bottom: 8px;
}

.service-image {
  width: min(680px, 100%);
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--wine-soft);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-section {
  padding: 96px 0;
  color: var(--white);
  background: var(--wine-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr) minmax(220px, 0.58fr);
  gap: 22px;
  align-items: center;
}

.contact-copy h2,
.contact-copy .section-kicker,
.schedule h3 {
  color: var(--white);
}

.contact-copy h2 {
  margin-bottom: 28px;
}

address {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

address a,
address span {
  width: fit-content;
}

address a:hover,
address a:focus-visible {
  color: var(--white);
}

.schedule {
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.schedule p {
  color: rgba(255, 255, 255, 0.82);
}

.schedule .hours {
  white-space: nowrap;
}

.contact-photo {
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  padding: 28px 20px;
  color: var(--white);
  text-align: center;
  background: #18040c;
}

.footer p {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

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

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1120px) {
  .hero-image {
    right: max(18px, calc((100vw - 980px) / 2));
    width: min(37vw, 430px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(42, 7, 21, 0.46), rgba(42, 7, 21, 0.08)),
      linear-gradient(0deg, rgba(42, 7, 21, 0.32), rgba(255, 255, 255, 0.04));
  }

  h1 {
    max-width: 500px;
    font-size: 4.5rem;
  }

  .hero-subtitle {
    max-width: 520px;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .split-layout,
  .value-layout,
  .contact-layout,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .image-panel-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 520px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, 1180px);
    min-height: 66px;
  }

  .brand span {
    font-size: 1.35rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(112, 25, 58, 0.14);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 10px;
  }

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

  .hero {
    min-height: calc(82svh - 66px);
  }

  .hero-picture::before {
    display: none;
  }

  .hero-image {
    display: block;
    inset: 0;
    z-index: auto;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .hero-overlay {
    display: block;
    background:
      linear-gradient(90deg, rgba(42, 7, 21, 0.9), rgba(42, 7, 21, 0.42)),
      linear-gradient(0deg, rgba(42, 7, 21, 0.7), rgba(42, 7, 21, 0.12));
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding: 72px 0 54px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h1 span {
    display: block;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1.06rem;
  }

  .section {
    padding: 64px 0;
  }

  #quienes-somos,
  #propuesta,
  #servicios,
  #contacto {
    scroll-margin-top: 78px;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .image-panel,
  .image-panel-wide {
    min-height: 430px;
  }

  .photo-band {
    grid-template-columns: 1fr;
    padding: 48px 14px;
  }

  .photo-band img {
    width: 100%;
    min-height: 0;
  }

  .service-card,
  .pillar-card,
  .value-card,
  .schedule {
    padding: 22px;
  }

  .service-card-laboral {
    order: 1;
  }

  .service-card-fiscal {
    order: 2;
  }

  .service-card-juridicos {
    order: 3;
  }

  .service-card-contable {
    order: 4;
  }

  .service-image {
    width: 100%;
  }

  .contact-section {
    padding: 72px 0;
  }

  .services-section {
    padding-bottom: 40px;
  }

  .schedule .hours {
    white-space: normal;
  }

  .contact-photo {
    height: auto;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.58rem;
  }

  .button {
    width: 100%;
  }

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

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

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