@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --burgundy: #650d1b;
  --burgundy-dark: #230006;
  --white: #ffffff;
  --black: #111111;
  --header-height: 88px;
  --content-width: 1180px;
}

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

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

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--burgundy);
  color: var(--white);
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-family: "Montserrat", Arial, sans-serif;
}

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

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* HEADER */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: var(--header-height);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(35, 0, 10, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(25, 0, 6, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.logo,
.hero-name {
  font-family: "athena", "Times New Roman", serif;
  font-weight: 400;
}

.logo {
  flex-shrink: 0;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 36px);
}

nav a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav a:not(.language-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.25s ease;
}

nav a:not(.language-btn):hover::after,
nav a:not(.language-btn):focus-visible::after {
  width: 100%;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.language-btn:hover {
  background: var(--white);
  color: var(--burgundy);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 90px) 7% 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--burgundy);
  background-image: url("images/fondo-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 0, 7, 0.12), rgba(28, 0, 7, 0.42)),
    radial-gradient(circle at center, rgba(101, 13, 27, 0.04), rgba(20, 0, 5, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
}

.hero-kicker {
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: rise-up 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-name {
  font-size: clamp(70px, 11vw, 170px);
  line-height: 0.76;
  letter-spacing: 0.01em;
  margin-bottom: 38px;
  animation: rise-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  margin-bottom: 20px;
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: clamp(0.2em, 0.8vw, 0.36em);
  text-transform: uppercase;
  animation: rise-up 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: clamp(15px, 1.4vw, 18px);
  animation: rise-up 1s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise-up 1s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--white);
  color: var(--burgundy);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  animation: float-down 1.8s infinite;
}

/* BACKGROUND LIBRARY */

.featured-services {
  background-image:
    linear-gradient(rgba(45, 0, 10, 0.2), rgba(45, 0, 10, 0.2)),
    url("images/Cover 5 imagenes-01.jpg");
}

.services-section {
  background-image:
    linear-gradient(rgba(55, 0, 12, 0.2), rgba(55, 0, 12, 0.2)),
    url("images/Cover 5 imagenes-02.jpg");
}

.about-section {
  background-image:
    linear-gradient(rgba(52, 0, 12, 0.18), rgba(52, 0, 12, 0.18)),
    url("images/Cover 5 imagenes-03.jpg");
}

.quote-section {
  background-image:
    linear-gradient(rgba(58, 0, 12, 0.18), rgba(58, 0, 12, 0.18)),
    url("images/Cover 5 imagenes-04.jpg");
}

.socials-section {
  background-image:
    linear-gradient(rgba(50, 0, 10, 0.18), rgba(50, 0, 10, 0.18)),
    url("images/Cover 5 imagenes-05.jpg");
}

.featured-services,
.services-section,
.about-section,
.quote-section,
.socials-section {
  background-color: var(--burgundy);
  background-size: cover;
  background-position: center;
}

/* FEATURED SERVICES */

.featured-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 78px max(6%, calc((100% - var(--content-width)) / 2));
}

.featured-box {
  position: relative;
  padding: 32px 38px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.featured-box:last-child {
  border-right: 0;
}

.featured-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.featured-number,
.card-number {
  display: block;
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.featured-box h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.featured-box p {
  max-width: 350px;
  margin-inline: auto;
  font-size: 15px;
}

/* GENERAL SECTIONS */

.services-section,
.about-section,
.quote-section,
.socials-section {
  padding: 100px max(7%, calc((100% - var(--content-width)) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.services-section h2,
.about-section h2,
.quote-section h2,
.socials-section h2 {
  margin-bottom: 10px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
}

.section-subtitle {
  max-width: 680px;
  font-size: 17px;
}

/* SERVICES */

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

.service-card {
  position: relative;
  min-height: 215px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
}

/* ABOUT */

.about-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.about-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(20, 0, 5, 0.25);
}

.about-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-wrap:hover .about-image {
  transform: scale(1.025);
}

.about-content {
  max-width: 680px;
}

.about-content p:not(.eyebrow) {
  margin-bottom: 18px;
  font-size: 17px;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: white;
  transform-origin: left;
  transition: transform 0.25s ease;
}

.text-link:hover::after {
  transform: scaleX(0.5);
}

/* FORM */

form {
  max-width: 900px;
}

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

.field-group {
  display: flex;
  flex-direction: column;
}

label {
  margin: 16px 0 7px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--burgundy-dark);
  font-size: 15px;
}

textarea {
  resize: vertical;
  min-height: 145px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

form button {
  min-height: 50px;
  margin-top: 28px;
  padding: 14px 28px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

form button:hover {
  background: var(--white);
  color: var(--burgundy);
  transform: translateY(-2px);
}

form button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.form-status.success,
.form-status.error {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
}

/* SOCIALS */

.social-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  max-width: 960px;
}

.social-group {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.social-group h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.social-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 9px 10px 0;
  padding: 11px 22px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-group a:hover {
  background: var(--white);
  color: var(--burgundy);
  transform: translateY(-2px);
}

/* FOOTER */

footer {
  padding: 34px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ANIMATIONS */

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(70px);
  }

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

@keyframes float-down {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(7px) rotate(45deg);
  }
}

/* TABLET */

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding-inline: 5%;
  }

  .logo {
    font-size: 18px;
  }

  nav {
    gap: 17px;
  }

  nav a {
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  .hero-name {
    font-size: clamp(66px, 14vw, 125px);
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-image-wrap {
    max-width: 500px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 14px 5%;
  }

  .logo {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .menu-toggle {
    display: block;
    z-index: 2;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(25, 0, 6, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  nav.open {
    max-height: 460px;
    padding-top: 14px;
    padding-bottom: 22px;
  }

  nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
  }

  nav a:not(.language-btn)::after {
    display: none;
  }

  .language-btn {
    width: fit-content;
    min-height: 40px;
    margin-top: 14px;
    padding: 8px 18px;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 78px) 6% 80px;
  }

  .hero-kicker {
    letter-spacing: 0.18em;
  }

  .hero-name {
    font-size: clamp(54px, 19vw, 88px);
    line-height: 0.82;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: clamp(17px, 5vw, 23px);
    letter-spacing: 0.16em;
  }

  .featured-services {
    grid-template-columns: 1fr;
    padding: 60px 8%;
  }

  .featured-box {
    padding: 30px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .featured-box:last-child {
    border-bottom: 0;
  }

  .services-section,
  .about-section,
  .quote-section,
  .socials-section {
    padding: 76px 7%;
  }

  .form-grid,
  .social-columns {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .logo {
    max-width: 220px;
    white-space: normal;
    line-height: 1.15;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: min(100%, 290px);
  }

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

  .service-card {
    min-height: auto;
  }

  .social-group {
    padding: 24px;
  }
}

/* REDUCED MOTION */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
