/* ============================================
   UMBRAL Design Studio - Landing Page Styles
   ============================================ */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties */
:root {
  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-black: #000000;
  --color-dark-overlay: rgba(0, 0, 0, 0.25);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-black); }
::-webkit-scrollbar-thumb { background: rgba(200, 170, 120, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 170, 120, 0.6); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10%);
}

.preloader__text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--color-white);
  margin-bottom: 24px;
  opacity: 0;
  animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.preloader__line {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.preloader__line-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(200, 170, 120, 1);
  animation: load-line 2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes load-line {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
  width: 12px;
  height: 12px;
  background: rgba(200, 170, 120, 1);
}

.cursor-follower.hover {
  width: 48px;
  height: 48px;
  border-color: rgba(200, 170, 120, 0.8);
  background: rgba(200, 170, 120, 0.1);
}

.cursor.view-hover {
  opacity: 0;
}

.cursor-follower.view-hover {
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border-color: var(--color-white);
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-follower.view-hover::after {
  content: "VER";
  color: #000;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Hide default cursor only on desktop to avoid issues on mobile */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content {
  position: relative;
  z-index: 2;
  background: var(--color-black);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

/* Background Image Container */
.hero__bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  will-change: transform;
  transform-origin: center center;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  filter: contrast(1.15) saturate(1.1) brightness(1.05) drop-shadow(0 0 10px rgba(0,0,0,0.1));
}

/* Dark gradient overlay for readability */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.05) 30%,
      rgba(0, 0, 0, 0.0) 50%,
      rgba(0, 0, 0, 0.15) 80%,
      rgba(0, 0, 0, 0.5) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.6s var(--transition-smooth);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
  transition: all 0.4s var(--transition-smooth);
  opacity: 0;
  transform: translateX(-20px);
}

.logo-link.loaded {
  opacity: 1;
  transform: translateX(0);
}

.logo-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--color-white);
  line-height: 1;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 5.5px;
  color: var(--color-white-70);
  line-height: 1;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  position: relative;
  color: var(--color-white-90);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
}

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

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white-10);
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--transition-smooth);
}

.nav__link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.4s var(--transition-smooth);
}

.nav__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.6s var(--transition-smooth);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator__text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-white-70);
}

.scroll-indicator__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-white-50);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator__wheel {
  width: 4px;
  height: 8px;
  background: var(--color-white-70);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   SPACERS & CONTENT
   ============================================ */
.hero-push {
  height: 100vh;
  position: relative;
  z-index: 1;
}

.content-spacer {
  height: 100vh;
  position: relative;
  z-index: 1;
}

.nosotros-section {
  position: relative;
  z-index: 2;
  background: var(--color-black);
  padding: 180px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.nosotros-section::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.3) 25%,
    rgba(10, 10, 10, 0.7) 60%,
    var(--color-black) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.nosotros__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.section-header--nosotros {
  margin-bottom: 0;
}

.nosotros__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 2px solid rgba(200, 170, 120, 0.4);
  padding: 40px 48px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 0 24px 24px 0;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.nosotros__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.nosotros__text--lead {
  font-size: 22px;
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 968px) {
  .nosotros__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .nosotros__content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 48px;
  }
}

/* ============================================
   INTERIOR SECTION & TRANSITION
   ============================================ */
.interior-section {
  position: relative;
  height: 250vh; /* Extra height to allow scrolling while sticky */
  background: var(--color-black);
  z-index: 2;
}

.interior__bg {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  will-change: opacity, transform;
}

.interior__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.interior__vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 85%, var(--color-black) 100%);
  pointer-events: none;
  z-index: 2;
}

.interior__content {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.static-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 12px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 4;
  pointer-events: none;
}

.horizontal-text {
  font-family: var(--font-heading);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  white-space: nowrap;
  letter-spacing: 4px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  opacity: 0;
}

.horizontal-text--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-white-70);
  text-shadow: none;
}

.vertical-reveal-text {
  position: absolute;
  bottom: 15%; /* Colocado mucho más abajo */
  left: 50%;
  transform: translate(-50%, 0); /* Base transform, Y offset added via JS */
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 12px;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* ============================================
   VIGNETTE EFFECT
   ============================================ */
.hero__vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HERO CENTER TEXT
   ============================================ */
.hero__center-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(384px, 80vw, 960px);
  font-weight: 700;
  letter-spacing: 144px;
  color: var(--color-white-50);
  text-shadow: 0 32px 240px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  transform-origin: center center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .header--scrolled {
    padding: 12px 20px;
  }

  .logo-text {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .logo-subtitle {
    font-size: 7px;
    letter-spacing: 4px;
  }

  .header__nav {
    gap: 4px;
  }

  .nav__link {
    font-size: 11px;
    padding: 8px 12px;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .logo-subtitle {
    font-size: 6px;
    letter-spacing: 3px;
  }

  .nav__link {
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.8px;
  }
}

/* ============================================
   SHARED SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: 64px;
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200, 170, 120, 0.9);
  margin-bottom: 16px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 4px;
  color: var(--color-white);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
}

.section-header__line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 170, 120, 0.9), transparent);
  margin-top: 24px;
}

/* ============================================
   PROYECTOS SECTION
   ============================================ */
.proyectos-section {
  position: relative;
  z-index: 2;
  /* background: var(--color-black); */
  padding: 120px 0 0;
  overflow: hidden;
}

.proyectos__bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.proyectos__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 6s ease;
  transform: scale(1.05);
}

.proyectos__bg.active {
  opacity: 0.25;
  transform: scale(1);
}

.proyectos__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-black) 0%, transparent 20%, transparent 80%, var(--color-black) 100%);
  z-index: 1;
}

.proyectos__inner {
  padding-left: 48px; /* Align with other sections, but slider bleeds right */
}

@media (max-width: 968px) {
  .proyectos__inner {
    padding-left: 20px;
  }
}

.proyectos__slider-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 80px;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
}

.proyectos__slider-container::-webkit-scrollbar {
  display: none;
}

.proyectos__slider-container:active {
  cursor: grabbing;
}

.proyectos__slider {
  display: flex;
  gap: 40px;
  padding-right: 48px; /* Padding at end of scroll */
  width: max-content;
}

/* Project Card */
.proyecto-card {
  position: relative;
  width: 600px;
  height: 800px;
  border-radius: 16px;
  overflow: hidden;
  group: hover;
}

@media (max-width: 968px) {
  .proyecto-card {
    width: 80vw;
    height: 60vh;
  }
}

.proyecto-card__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.proyecto-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--transition-smooth);
}

.proyecto-card:hover .proyecto-card__image {
  transform: scale(1.08);
}

.proyecto-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  transition: opacity 0.6s var(--transition-smooth);
}

.proyecto-card:hover .proyecto-card__overlay {
  opacity: 0.8;
}

.proyecto-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 48px;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.6s var(--transition-smooth);
}

.proyecto-card:hover .proyecto-card__content {
  transform: translateY(0);
}

.proyecto-card__category {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(200, 170, 120, 0.9);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-smooth) 0.1s;
}

.proyecto-card:hover .proyecto-card__category {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-card__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.proyecto-card__location {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-white-70);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-smooth) 0.15s;
}

.proyecto-card:hover .proyecto-card__location {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-card__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-smooth) 0.2s;
}

.proyecto-card:hover .proyecto-card__link {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-card__link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--transition-bounce);
}

.proyecto-card__link:hover svg {
  transform: translateX(6px);
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */
.servicios-section {
  position: relative;
  z-index: 2;
  background: var(--color-black);
  padding: 120px 0 140px;
  overflow: hidden;
}

.servicios-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 170, 120, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.servicios__bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.servicios__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--transition-smooth), transform 4s linear;
}

.servicios__bg.active {
  opacity: 1;
  transform: scale(1);
}

.servicios__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* Dark overlay to make text readable */
  z-index: 1;
}

.servicios__inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}

/* List Layout */
.servicios__list-container {
  margin-top: 40px;
}

.servicios__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.servicio-item {
  position: relative;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  transition: border-color 0.4s var(--transition-smooth);
}

.servicio-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.servicio-item:hover {
  border-color: rgba(200, 170, 120, 0.5);
}

.servicio-item__header {
  display: flex;
  align-items: center;
  gap: 40px;
}

.servicio-item__number {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white-50);
  transition: color 0.4s var(--transition-smooth);
}

.servicio-item:hover .servicio-item__number {
  color: rgba(200, 170, 120, 1);
}

.servicio-item__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  color: var(--color-white);
  text-transform: uppercase;
  transition: transform 0.6s var(--transition-smooth), color 0.4s var(--transition-smooth);
  will-change: transform;
}

.servicio-item:hover .servicio-item__title {
  transform: translateX(30px);
  color: rgba(200, 170, 120, 1);
}

.servicio-item__content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--transition-smooth);
}

.servicio-item.active .servicio-item__content,
.servicio-item:hover .servicio-item__content {
  opacity: 1;
  transform: translateY(0);
}

.servicio-item__description {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-white-90);
  max-width: 500px;
}

@media (max-width: 968px) {
  .servicio-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  
  .servicio-item__title {
    font-size: 40px;
  }
  
  .servicio-item:hover .servicio-item__title {
    transform: translateX(12px);
  }
  
  .servicio-item__content {
    display: none; /* Mobile optimization: can be expanded via JS if desired, or just show */
  }
  
  .servicio-item.active .servicio-item__content,
  .servicio-item:hover .servicio-item__content {
    display: block;
    margin-left: 56px; /* align with text */
  }
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */
.architecture-section {
  position: relative;
  height: 100vh;
  background: var(--color-black);
  z-index: 2;
  overflow: hidden;
}

.architecture__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.architecture__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  filter: blur(4px);
}

.architecture__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
}

/* ============================================
   CONTACTO SECTION
   ============================================ */
.contacto-section {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--color-black) 0%, #080808 100%);
  padding: 120px 0 140px;
  overflow: hidden;
}

.contacto-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 170, 120, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.contacto__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto__intro {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-white-50);
  margin-top: 32px;
  max-width: 420px;
}

/* Contact Info */
.contacto__info {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto__info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacto__info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(200, 170, 120, 0.7);
}

.contacto__info-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white-50);
  margin-bottom: 2px;
}

.contacto__info-value {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white-90);
}

/* Form */
.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  transition: border-color 0.4s var(--transition-smooth);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-bottom-color: rgba(200, 170, 120, 0.6);
}

.form-label {
  position: absolute;
  top: 16px;
  left: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white-50);
  pointer-events: none;
  transition: all 0.3s var(--transition-smooth);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(200, 170, 120, 0.8);
}

.form-label--select {
  top: -8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(200, 170, 120, 0.8);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 170, 120, 0.8), rgba(200, 170, 120, 0.2));
  transition: width 0.5s var(--transition-smooth);
}

.form-input:focus ~ .form-line {
  width: 100%;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #111;
  color: var(--color-white);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

/* Submit Button */
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-black);
  background: linear-gradient(135deg, rgba(200, 170, 120, 1), rgba(180, 150, 100, 1));
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  align-self: flex-start;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s var(--transition-smooth);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 170, 120, 0.3);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit__icon {
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--transition-smooth);
}

.form-submit:hover .form-submit__icon {
  transform: translateX(4px);
}

.form-submit__icon svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.form-submit--loading {
  opacity: 0.8;
  cursor: wait;
}
.form-submit--loading .form-submit__icon svg {
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.form-submit--success {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.5);
  color: #fff;
}
.form-submit--success:hover {
  background: rgba(40, 167, 69, 0.3);
  transform: none;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background: #050505;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--color-white);
  line-height: 1;
}

.footer__logo-subtitle {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--color-white-50);
}

.footer__logo-group {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(200, 170, 120, 0.9);
  margin-top: 6px;
  text-transform: uppercase;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-white-50);
  margin-top: 16px;
  font-style: italic;
  max-width: 250px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-white-70);
  margin-bottom: 8px;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-white-50);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
}

.footer__link:hover {
  color: rgba(200, 170, 120, 0.9);
  transform: translateX(4px);
}

.footer__link--small {
  font-size: 12px;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 48px 0 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Directional slide-in */
[data-reveal-direction="left"] {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
  will-change: transform, opacity;
}

[data-reveal-direction="right"] {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
  will-change: transform, opacity;
}

[data-reveal-direction].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE — NEW SECTIONS
   ============================================ */
@media (max-width: 968px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer__top {
    flex-direction: column;
    gap: 48px;
  }

  .footer__links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .servicios-section,
  .contacto-section {
    padding: 80px 0 100px;
  }

  .servicios__inner,
  .contacto__inner,
  .footer__inner {
    padding: 0 24px;
  }

  .servicio-card {
    padding: 36px 28px;
  }

  .servicio-card__number {
    font-size: 48px;
    top: 24px;
    right: 24px;
  }

  .section-header__title {
    font-size: clamp(32px, 8vw, 60px);
  }

  .footer__links {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .servicio-card {
    padding: 28px 20px;
  }

  .servicio-card__icon {
    width: 44px;
    height: 44px;
  }

  .servicio-card__title {
    font-size: 20px;
  }

  .form-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--transition-smooth);
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.gallery-modal__close {
  position: absolute;
  top: 40px;
  right: 48px;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.4s var(--transition-bounce);
}

.gallery-modal__close:hover {
  transform: scale(1.2) rotate(90deg);
}

.gallery-modal__close svg {
  width: 40px;
  height: 40px;
}

.gallery-modal__content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 1400px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.gallery-modal__info {
  margin-bottom: 32px;
  text-align: center;
}

.gallery-modal__category {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200, 170, 120, 0.9);
  margin-bottom: 8px;
}

.gallery-modal__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-white);
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 968px) {
  .gallery-modal__grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.gallery-modal__item {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 968px) {
  .gallery-modal__item {
    height: 40vh;
  }
}

.gallery-modal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.gallery-modal__item:hover img {
  transform: scale(1.05);
}

/* Zoom in from top to hide Gemini watermark in bottom-right corner */
.gallery-modal__item img.crop-watermark {
  transform: scale(1.22);
  transform-origin: center top;
  object-position: center top;
}

.gallery-modal__item:hover img.crop-watermark {
  transform: scale(1.28);
}
