*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --orange: #f5a623;
  --nav-height: 72px;
  --letter-spacing-body: -.017em;
}html{
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}
body {
  font-family: 'Playfair Display', Georgia, serif;
  background-color: var(--white);
  color: var(--black);
  letter-spacing: var(--letter-spacing-body);
  overflow: visible;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
}

/* ── NAVBAR ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

header.scrolled {
  border-color: rgba(0, 0, 0, 0.08);
}

/* ── LOGO ── */
.logo {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0em;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.logo-grupo { letter-spacing: 0em; }
.logo-space { display: inline-block; width: 0.38em; }
/* "A" → comprime el espacio que la separa de la "R" */
.logo-a     { letter-spacing: -0.10em; font-style: italic;}
/* "R" → comprime el espacio que la separa de la "C" */
.logo-r     { letter-spacing: -0.017em; }
.logo-carii { letter-spacing: 0em; }

/* ── NAV LINKS ── */
nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: var(--black);
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }

/* ── HAMBURGER ── */
/*
  Dos capas superpuestas con crossfade:
    .icon-bars  → 3 líneas (estado por defecto)
    .icon-close → × (estado menú abierto)
*/
.hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 300;
}

.icon-bars,
.icon-close {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.icon-bars {
  gap: 6px;
  opacity: 1;
}

.icon-bars span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
}

.icon-close {
  opacity: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  letter-spacing: 0;
}

.hamburger.is-open .icon-bars  { opacity: 0; }
.hamburger.is-open .icon-close { opacity: 1; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  display: block;
}

.mobile-menu a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: var(--black);
  text-decoration: none;
  text-align: center;
}

/* ── HERO ── */
main {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}

/* LEFT */
.hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 80px calc(48px + 2rem);
}

.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--letter-spacing-body);
  color: var(--black);
  max-width: 680px;
  animation: fadeUp 0.8s ease 0.15s both;
}

/* RIGHT */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 48px;
}

.hero-video {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--nav-height) - 80px);
  width: auto;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ── FOOTER ── */
footer {
  background-color: var(--black);
  height: 80px;
  width: 100%;
  flex-shrink: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .hero-heading { font-size: clamp(52px, 6.5vw, 88px); }
}

@media (max-width: 1024px) {
  header { padding: 0 32px; }

  .hero-left {
    padding: 60px 32px;
    justify-content: flex-start;
  }

  .hero-right   { padding: 60px 32px; }
  .hero-heading { font-size: clamp(44px, 5.5vw, 80px); }
}

@media (max-width: 768px) {
  nav          { display: none; }
  .hamburger   { display: flex; }
  .mobile-menu { display: flex; }

  header { padding: 0 24px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100vh - var(--nav-height));
  }

  .hero-left {
    padding: 60px 24px 32px;
    justify-content: center;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-heading {
    font-size: clamp(40px, 9vw, 72px);
    max-width: 100%;
  }

  .hero-right {
    padding: 0 24px 60px;
    order: 2;
  }

  .hero-video {
    max-width: min(380px, 88vw);
    max-height: none;
  }
}

@media (max-width: 480px) {
  .hero-heading { font-size: clamp(36px, 10.5vw, 56px); }
  .logo         { font-size: 27px; }
}

.services {
  background-color: #000;
  padding: 80px 0 64px;
  position: relative;
}

/* Header */
.services-header {
  padding: 0 72px;
  margin-bottom: 56px;
}

.services-eyebrow {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.services-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: #ffffff;
  line-height: 1.1;
}

/* Track wrapper — clips the overflow for the carousel */
.services-track-wrapper {
  padding: 0 72px;
}

/* Track — flex row, scroll driven by JS transform */
.services-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Card */
.service-card {
  flex: 0 0 420px;
  background: #ffffff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.service-card-title {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #000;
}

.service-card-desc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: var(--letter-spacing-body);
  color: #000;
}

/* Nav arrows */
.services-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 40px 72px 0;
}

.services-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  line-height: 1;
}

.services-arrow:hover {
  color: #ffffff;
}

.services-arrow:disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

/* ── RESPONSIVE: stack vertically, no carousel ── */
@media (max-width: 768px) {
  .services {
    padding: 64px 0 56px;
  }

  .services-header {
    padding: 0 24px;
    margin-bottom: 40px;
  }

  .services-title {
    font-size: clamp(28px, 7vw, 44px);
  }

  /* Disable carousel behaviour */
  .services-track-wrapper {
    padding: 0 24px;
  }

  .services-track {
    flex-direction: column;
    transform: none !important;
    transition: none;
    gap: 20px;
  }

  .service-card {
    flex: none;
    width: 100%;
    padding: 32px 28px;
    min-height: unset;
  }

  /* Hide arrows on mobile */
  .services-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .services-header {
    padding: 0 20px;
  }

  .services-track-wrapper {
    padding: 0 20px;
  }

  .service-card {
    padding: 28px 22px;
  }
}

/*nuestra firma*/
.about {
  background-color: #F7F7FA;
  padding: 100px 0;
}@media (min-width: 769px){
  .about{
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
 
.about-inner {
  padding: 0 72px;
  max-width: 1100px;
  margin: 0 auto;
}
 
.about-title {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #041A34;
  margin-bottom: 32px;
}
 
.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
 
.about-text p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
  max-width: 980px;
}
 
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about { padding: 80px 0; }
 
  .about-inner { padding: 0 32px; }
 
  .about-title { font-size: 32px; }
 
  .about-text p { font-size: 22px; }
}
 
@media (max-width: 768px) {
  .about { padding: 72px 0; }
 
  .about-inner {
    padding: 0 28px;
  }
 
  .about-title {
    font-size: clamp(30px, 8vw, 40px);
    margin-bottom: 28px;
  }
 
  .about-text { gap: 24px; }
 
  .about-text p {
    font-size: clamp(17px, 4.2vw, 20px);
    line-height: 1.6;
  }
}
 
@media (max-width: 480px) {
  .about-inner { padding: 0 24px; }
}
/*contacto*/
.contact {
  background-color: #ffffff;
  padding: 100px 0;
}
 
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 72px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
 
/* ── Left: info ── */
.contact-eyebrow {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: rgba(4, 26, 52, 0.45);
  text-transform: uppercase;
  margin-bottom: 20px;
}
 
.contact-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
  margin-bottom: 28px;
}
 
.contact-title em {
  font-style: italic;
}
 
.contact-desc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-body);
  color: rgba(4, 26, 52, 0.75);
  max-width: 520px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(4, 26, 52, 0.1);
}
 
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
 
.contact-detail {
  display: flex;
  align-items: center;
  gap: 18px;
}
 
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 26, 52, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041A34;
}
 
.contact-icon svg {
  width: 20px;
  height: 20px;
}
 
.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.contact-detail-label {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  color: rgba(4, 26, 52, 0.5);
}
 
.contact-detail-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
}
 
/* ── Right: form card ── */
.contact-form-wrapper {
  position: relative;
  background: #F7F7FA;
  border: 1px solid rgba(4, 26, 52, 0.06);
  border-radius: 4px;
  padding: 48px;
}
 
.form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
  margin-bottom: 8px;
}
 
.form-subtitle {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  color: rgba(4, 26, 52, 0.45);
  margin-bottom: 36px;
}
 
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
 
.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
 
.form-field label {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  color: rgba(4, 26, 52, 0.55);
}
 
.form-field input,
.form-field textarea {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(4, 26, 52, 0.18);
  padding: 4px 0 12px;
  outline: none;
  transition: border-color 0.25s ease;
  resize: none;
}
 
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(4, 26, 52, 0.35);
}
 
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #041A34;
}
 
.form-submit {
  width: 100%;
  background: #000;
  color: #ffffff;
  border: none;
  padding: 20px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease;
  margin-top: 8px;
}
 
.form-submit:hover {
  background-color: #fff;
  border: 2px solid black;
  color: #000;
  padding: 18px;
}
 
/* ── Success overlay ── */
.form-success {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}
 
.form-success.visible {
  opacity: 1;
  pointer-events: all;
}
 
.form-success p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-body);
  color: #041A34;
  max-width: 380px;
}
 
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact { padding: 80px 0; }
 
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 32px;
  }
 
  .contact-title { font-size: 44px; }
 
  .contact-form-wrapper { padding: 36px; }
}
 
@media (max-width: 768px) {
  .contact { padding: 64px 0; }
 
  .contact-inner { padding: 0 24px; }
 
  .contact-title { font-size: clamp(32px, 9vw, 44px); }
 
  .contact-desc {
    font-size: 17px;
    margin-bottom: 36px;
    padding-bottom: 32px;
  }
 
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
 
  .contact-form-wrapper { padding: 28px; }
 
  .form-title { font-size: 26px; }
}
 
@media (max-width: 480px) {
  .contact-inner { padding: 0 20px; }
 
  .contact-form-wrapper { padding: 24px; }
 
  .contact-detail-value { font-size: 16px; }
}

/*footer*/
.site-footer {
  background-color: var(--black);
  width: 100%;
  display: block;
}
 
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 48px 72px;
  max-width: 100%;
  background: #000;
}
 
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
 
/* Logo reusa las clases .logo / .logo-a / .logo-r etc, solo en blanco */
.footer-logo {
  color: #ffffff;
}
 
.footer-legal {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}
 
.footer-social {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 14px;
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-body);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
 
.footer-social:hover {
  opacity: 0.75;
}
 
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 4px;
  color: var(--black);
  flex-shrink: 0;
}
 
.footer-social-icon svg {
  width: 18px;
  height: 18px;
}
 
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 24px;
  }
 
  .footer-social {
    align-self: flex-start;
    font-size: 17px;
  }
}
 
@media (max-width: 480px) {
  .footer-inner {
    padding: 36px 20px;
  }
 
  .footer-logo {
    font-size: 16px;
  }
}#nuestra-firma,
#lo-que-hacemos,
#contactanos {
  scroll-margin-top: var(--nav-height);
}