/* =============================================
   ARKH STUDIO — PREMIUM ARCHITECTURAL VISUALIZATION
   Design System: Warm & Creative Palette
   ============================================= */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --cream:        #FFFFFF;
  --cream-dark:   #F5F5F5;
  --terracotta:   #000000;
  --terra-light:  #333333;
  --terra-dark:   #000000;
  --charcoal:     #111111;
  --charcoal-mid: #222222;
  --charcoal-soft:#444444;
  --sand:         #E0E0E0;
  --sand-light:   #F0F0F0;
  --white:        #FFFFFF;
  --gold:         #000000;

  --font-display: 'Montserrat', sans-serif;
  --font-ui:      'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med:  0.4s var(--ease-smooth);
  --transition-slow: 0.7s var(--ease-out-expo);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 100px 0; }

/* ---- REVEAL ANIMATIONS ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 0.9rem 0;
}
.navbar.scrolled .nav-links a,
.navbar.scrolled .logo-studio {
  color: var(--charcoal);
}
.navbar.scrolled .hamburger span {
  background-color: var(--charcoal);
}
.navbar.scrolled .nav-links a {
  background-color: transparent;
}
.navbar.scrolled .nav-links a:hover {
  color: var(--terracotta);
}
.navbar.scrolled .nav-logo-img {
  filter: invert(0); /* Black original logo */
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav-logo-img {
  width: auto;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: invert(1) brightness(100); /* Makes the black logo white */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.footer-logo-img {
  width: auto;
  height: 65px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: invert(1) brightness(100);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.logo-ark {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--terracotta);
}
.logo-studio {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--cream);
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sand-light);
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width var(--transition-med);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  background: var(--terracotta) !important;
  color: var(--cream) !important;
  border-radius: 3px;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}
.nav-cta:hover { background: var(--terra-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(30, 27, 24, 0.98);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}
.mobile-menu.open { 
  max-height: 500px; 
  padding: 1.5rem 2rem 2rem; 
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--terracotta); }
.mobile-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: var(--terracotta);
  color: var(--cream) !important;
  border-radius: 4px;
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
}
.lang-switch a {
  color: var(--charcoal-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.lang-switch a:hover, .lang-switch a.active {
  color: var(--terracotta);
}
.lang-switch .divider {
  color: rgba(0,0,0,0.2);
  font-weight: 300;
}
.mobile-menu .lang-switch {
  margin-top: 2rem;
  justify-content: center;
  font-size: 1.1rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img, .hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease-smooth) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 24, 0.82) 0%,
    rgba(30, 27, 24, 0.55) 50%,
    rgba(30, 27, 24, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: #FFFFFF;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-subtitle strong { color: #FFFFFF; font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: #25D366;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(247, 243, 238, 0.35);
  border-radius: 4px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(247,243,238,0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sand);
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(247,243,238,0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--sand));
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--sand);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   MARQUEE BAND
   ============================================= */
.tagline-band {
  background: var(--charcoal);
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(196,113,74,0.3);
  border-bottom: 1px solid rgba(196,113,74,0.3);
}
.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-light);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--terracotta); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--charcoal);
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-desc {
  font-size: 1rem;
  color: var(--charcoal-soft);
  margin-top: 1.25rem;
  line-height: 1.7;
}

/* =============================================
   SERVICIOS
   ============================================= */
.servicios { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -10px rgba(30,27,24,0.08);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  background: var(--charcoal);
}
.service-card.featured h3 { color: var(--cream); }
.service-card.featured p { color: var(--sand); }
.service-card.featured .service-icon { 
  background: rgba(187, 86, 61, 0.15); 
  color: var(--terracotta); 
}
.service-card.featured .service-link { color: var(--terra-light); border-bottom-color: rgba(215, 128, 106, 0.3); }
.service-card.featured:hover .service-link { border-bottom-color: var(--terra-light); }
.service-card.featured::before { background: linear-gradient(90deg, var(--gold), var(--terracotta)); }

.service-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--terracotta), #9c432d);
  color: var(--cream);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(187, 86, 61, 0.3);
}

.service-icon {
  width: 64px; height: 64px;
  background: rgba(187, 86, 61, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  margin-bottom: 2rem;
  transition: transform var(--transition-fast);
}
.service-card:hover .service-icon {
  transform: scale(1.05);
}
.service-icon svg {
  width: 28px; height: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(187, 86, 61, 0.3);
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.service-card:hover .service-link {
  gap: 0.8rem;
  border-bottom-color: var(--terracotta);
}

/* =============================================
   PORTAFOLIO
   ============================================= */
.portafolio { background: #FFFFFF; }
.portafolio .section-title { color: var(--charcoal); }
.portafolio .section-desc { color: var(--charcoal-soft); }

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #FFFFFF;
}

.portfolio-grid {
  column-count: 3;
  column-gap: 1rem;
  width: 100%;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.portfolio-img-wrap {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}
.portfolio-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
}
.portfolio-item:hover .portfolio-img-wrap img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,24,0.9) 0%, rgba(30,27,24,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity var(--transition-med);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.portfolio-overlay p {
  font-size: 0.8rem;
  color: var(--sand);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.portfolio-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  align-self: flex-start;
  transition: background var(--transition-fast);
}
.portfolio-btn:hover { background: var(--terra-dark); }

.portfolio-cta {
  text-align: center;
  margin-top: 3.5rem;
}
.portfolio-cta p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* =============================================
   PROCESO
   ============================================= */
.proceso { background: #FFFFFF; }

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.process-connector {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--terracotta), transparent);
  margin: 0.5rem 0 0.5rem 38px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  min-width: 80px;
  opacity: 0.35;
}
.step-content { padding-top: 0.25rem; }
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.step-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal-soft);
  max-width: 580px;
}

/* =============================================
   NOSOTROS
   ============================================= */
.nosotros { background: var(--cream); overflow: hidden; }
.nosotros-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.nosotros-img {
  position: relative;
  border-radius: 8px;
  overflow: visible;
  height: 580px;
}
.nosotros-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.nosotros-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--terracotta);
  color: var(--cream);
  padding: 1.5rem 2rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(196,113,74,0.4);
}
.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
}
.badge-text {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.5;
}

.nosotros-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin: 1.5rem 0 2.25rem;
}
.nosotros-desc strong { color: var(--charcoal); }

.nosotros-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.nosotros-list li { display: flex; gap: 1.25rem; align-items: flex-start; }
.list-icon {
  width: 26px; height: 26px;
  background: rgba(196,113,74,0.12);
  color: var(--terracotta);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.nosotros-list strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.2rem;
}
.nosotros-list p { font-size: 0.88rem; color: var(--charcoal-soft); line-height: 1.6; }

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios { background: #FFFFFF; overflow: hidden; }
.testimonios .section-title { color: var(--charcoal); }

.testimonios-grid {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-bottom: 2rem;
  margin: 0;
}
.testimonios-grid.carousel-active {
  animation: scrollCarousel 100s linear infinite;
}
.testimonios-grid.carousel-active .testimonio-card {
  opacity: 1 !important;
  transform: none !important;
}
.testimonios-grid.carousel-active:hover {
  animation-play-state: paused;
}
@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}
.testimonio-card {
  flex: 0 0 340px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  transition: background var(--transition-med), border-color var(--transition-med);
}
.testimonio-card.featured {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
}
.testimonio-card:hover { background: rgba(0,0,0,0.04); }

.stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.testimonio-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin-bottom: 1.75rem;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 42px; height: 42px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
}
.testimonio-author strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}
.testimonio-author span {
  font-size: 0.75rem;
  color: var(--charcoal-soft);
}

/* =============================================
   FAQ
   ============================================= */
.faq { background: #FFFFFF; }
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header .section-title { color: var(--charcoal); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: rgba(0,0,0,0.02);
  border: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.faq-btn:hover { background: rgba(0,0,0,0.04); }
.faq-icon {
  width: 20px; height: 20px;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--terracotta);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #FFFFFF;
}
.faq-content p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   CONTACTO CTA
   ============================================= */
.contacto {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,113,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.section-eyebrow.light { color: var(--terra-light); }

.contacto-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.contacto-title em { font-style: italic; color: var(--charcoal-soft); }

.contacto-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-bottom: 2.75rem;
}

/* =============================================
   QUOTE FORM
   ============================================= */
.contacto-header { margin-bottom: 2.5rem; }
.quote-form {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: left;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.form-row .form-group {
  flex: 1;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.quote-form input[type="text"],
.quote-form input[type="number"],
.quote-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  background: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition-fast);
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.radio-card {
  flex: 1;
  cursor: pointer;
}
.radio-card input {
  display: none;
}
.radio-card .card-content {
  display: block;
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  background: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  transition: all var(--transition-fast);
}
.radio-card input:checked + .card-content {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(196,113,74,0.2);
}
.check-pill {
  cursor: pointer;
}
.check-pill input {
  display: none;
}
.check-pill span {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  transition: all var(--transition-fast);
}
.check-pill input:checked + span {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #FFFFFF;
}
.submit-quote {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
  text-align: left;
}
.btn-whatsapp:hover {
  background: #20b558;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.4);
}
.wa-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wa-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

.contacto-info {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(247,243,238,0.08);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--sand);
}
.info-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo-ark { font-size: 1.5rem; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin-top: 1rem;
}
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--charcoal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--charcoal-soft);
}
.footer-bottom em { font-style: italic; }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: waPulse 3s 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,0.6);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0.1); }
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--charcoal);
  border-right: none;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* =============================================
   LIGHTBOX MODAL
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: 4px;
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from {transform:scale(0.9); opacity:0;}
  to {transform:scale(1); opacity:1;}
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--charcoal);
  font-size: 40px;
  font-weight: 300;
  transition: 0.3s;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--terracotta);
  text-decoration: none;
  cursor: pointer;
}
#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--charcoal);
  padding: 15px 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .nosotros-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-img { height: 420px; }
  .nosotros-badge { right: 1rem; bottom: -1rem; }
  .portfolio-grid { column-count: 2; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .navbar { padding: 1rem 0; }
  .nav-logo-img { height: 50px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.75rem; }
  .section-title { font-size: 2.2rem; }
  .portfolio-grid { column-count: 1; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-step { gap: 1.25rem; flex-direction: column; text-align: center; }
  .process-connector { display: none; } /* Hide the connector line on mobile for cleaner look */
  .process-number { margin: 0 auto; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-logo-img { height: 55px; margin: 0 auto; }
  .footer-brand { text-align: center; margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .contacto-info { flex-direction: column; align-items: stretch; gap: 1rem; }
  .contacto-item { justify-content: center; }
  .hero-actions { flex-direction: column; gap: 0.9rem; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; text-align: center; justify-content: center; }
  .quote-form { padding: 1.5rem; }
  .form-row { flex-direction: column; gap: 1rem; }
  .form-row .form-group { width: 100%; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .stat-divider { display: none; }
  .portfolio-filter { flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
  .filter-btn { padding: 0.45rem 0.8rem; font-size: 0.85rem; flex: 1 1 auto; text-align: center; }
  .section-eyebrow { font-size: 0.75rem; }
  .section-title { font-size: 2rem; }
  .btn-primary, .btn-outline { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
}
