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

:root {
  --gold:      #C9A84C;
  --gold-light:#E2C97E;
  --dark:      #0E0E0E;
  --dark2:     #1A1A1A;
  --dark3:     #242424;
  --light:     #F7F4EF;
  --light2:    #EDE9E1;
  --white:     #FFFFFF;
  --gray:      #888;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
em { font-style: italic; color: var(--gold); }
p { font-size: 0.95rem; color: #bbb; max-width: 60ch; line-height: 1.8; }
strong { color: var(--gold); font-weight: 600; }
a { text-decoration: none; color: inherit; }

.section-eyebrow {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  color: var(--light);
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(247,244,239,0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.btn-ghost-sm:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.btn-full { width: 100%; text-align: center; }

/* ===== LAYOUT ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 7rem 0; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 5%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0) 100%);
  transition: background 0.4s, padding 0.4s;
}
.navbar.scrolled {
  background: linear-gradient(to bottom, rgba(14,14,14,0.82) 0%, rgba(14,14,14,0.35) 100%);
  backdrop-filter: blur(14px);
  padding: 0.6rem 5%;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--light);
}
.logo-k { color: var(--gold); font-weight: 600; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.9);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border: 1px solid var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  border-color: var(--gold-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--light);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  background-color: var(--dark);
  /* ── Foto hero: pon tu imagen en images/hero.jpg y se verá aquí ── */
  background-image:
    linear-gradient(to right, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.55) 55%, rgba(8,8,8,0.25) 100%),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -100px; right: -150px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #4a6741;
  bottom: 0; left: -100px;
  opacity: 0.08;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--gold);
  bottom: 30%; right: 20%;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 6rem;
}

.hero-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-title {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero-title em { font-style: italic; color: var(--light); }
.hero-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: rgba(247,244,239,0.65);
  max-width: 50ch;
}
.hero-desc strong { color: var(--gold-light); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem; left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gray), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== STATS ===== */
.stats-band {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 5%;
}
.stat {
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-num::after { content: '+'; font-size: 0.6em; }
.stat:last-child .stat-num::after { content: '%'; }
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.3rem;
}

/* ===== FILOSOFÍA ===== */
.filosofia { background: var(--dark); }

.filosofia-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.visual-block {
  aspect-ratio: 4 / 5;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}

/* Slides del carrusel de filosofía */
.filo-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.filo-slide.active { opacity: 1; }

/* Overlay oscuro sobre las slides */
.filo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.45);
  pointer-events: none;
  z-index: 1;
}

.vb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.vb-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.vb-circle {
  width: 80px; height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
}
.vb-circle::after {
  content: 'K';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
}
.vb-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.filosofia-text p { margin-bottom: 1.2rem; }
.filosofia-text .btn { margin-top: 1rem; }

/* ===== PROYECTOS ===== */
.proyectos { background: var(--dark2); }

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  overflow: visible;
}

.proyecto-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s,
              z-index 0s;
  z-index: 1;
}
.proyecto-card:hover {
  transform: scale(1.35);
  z-index: 20;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  overflow: visible;
}
.proyecto-featured { grid-column: 1 / 8; grid-row: 1 / 2; }
.proyectos-grid .proyecto-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
.proyectos-grid .proyecto-card:nth-child(3)  { grid-column: 1 / 5;  grid-row: 2 / 3; }
.proyectos-grid .proyecto-card:nth-child(4)  { grid-column: 5 / 13; grid-row: 2 / 4; } /* GRANDE: top-right */
.proyectos-grid .proyecto-card:nth-child(5)  { grid-column: 1 / 5;  grid-row: 3 / 4; }
.proyectos-grid .proyecto-card:nth-child(6)  { grid-column: 1 / 5;  grid-row: 4 / 5; }
.proyectos-grid .proyecto-card:nth-child(7)  { grid-column: 5 / 9;  grid-row: 4 / 5; }
.proyectos-grid .proyecto-card:nth-child(8)  { grid-column: 9 / 13; grid-row: 4 / 5; }

.proyecto-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.proyecto-featured .proyecto-img { min-height: 420px; }

.img-residencia {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), url('images/residencia.jpg');
  background-size: cover;
  background-position: center;
}
.img-verdugo {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), url('images/img-residencia.jpg');
  background-size: cover;
  background-position: center;
}
.img-comercial {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), url('images/comercial.jpg');
  background-size: cover;
  background-position: center;
}
.img-cultural   { background: linear-gradient(135deg, #3a2a1e 0%, #2a1a0e 100%); }
.img-urbano     { background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2a 100%); }
.img-interior {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), url('images/interior.jpg');
  background-size: cover;
  background-position: center;
}

.proyecto-card:hover .proyecto-img { transform: scale(1.03); }

.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.4s;
}
.proyecto-card:hover .proyecto-overlay { opacity: 1; }

.proyecto-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(40, 160, 60, 0.2);
  border: 1px solid rgba(60, 200, 80, 0.65);
  color: #7ee89a;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.proyecto-lugar {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.proyecto-cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.proyecto-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.2;
}
.proyecto-overlay p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  max-width: 40ch;
  display: none;
}
.proyecto-card:hover .proyecto-overlay p { display: block; }

.proyectos-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== SERVICIOS — WHEEL ===== */
.servicios { background: var(--dark); }

.wheel-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 3rem;
}

.wheel {
  position: relative;
  width: min(690px, 90vw);
  height: min(690px, 90vw);
  overflow: visible;
}

/* Segments – each fills the full wheel box, clipped to its 60° wedge */
.wheel-segment {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--dark3);
  transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s;
  transform-origin: 50% 50%;
  z-index: 1;
}

/* ::before — imagen de fondo que rellena toda la cuña (elimina triángulos negros) */
.wheel-segment::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--dark3);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.4);
  transition: filter 0.5s ease;
  z-index: 0;
}
.wheel-segment:hover::before {
  filter: grayscale(0%) brightness(0.6);
}

/* Misma imagen que seg-img para rellenar el área sobrante */
.seg-1::before { background-image: url('images/servicio-diseno.jpg?v=2'); }
.seg-2::before { background-image: url('images/servicio-comercial.jpg'); }
.seg-3::before { background-image: url('images/servicio-bim.jpg'); }
.seg-4::before { background-image: url('images/servicio_interiorismo.jpg'); }
.seg-5::before { background-image: url('images/servicio-maquetas.jpg'); }
.seg-6::before { background-image: url('images/servicio-consultoria.jpg'); }

/* ── seg-img: imagen centrada dentro de la cuña ──
   Posicionado en el centro visual de cada sector (65% del radio).
   Tamaño 36% del círculo ≈ ancho visible de la cuña.
   background-size: cover + center muestra la imagen completa centrada.
   Para foto real: .seg-N .seg-img { background-image: url('images/tuFoto.jpg'); } */
.seg-img {
  position: absolute;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.5s ease;
  z-index: 1;
}
.wheel-segment:hover .seg-img {
  filter: grayscale(0%) brightness(0.88);
}

/* Posición + rotación sobre el eje radial de cada cuña */
.seg-1 .seg-img { left: 66%;   top: 22%; transform: translate(-50%, -50%) rotate(-60deg); background-image: url('images/servicio-diseno.jpg?v=2'); }
.seg-2 .seg-img { left: 82.5%; top: 50%; transform: translate(-50%, -50%) rotate(0deg); background-image: url('images/servicio-comercial.jpg'); }
.seg-3 .seg-img { left: 66%;   top: 78%; transform: translate(-50%, -50%) rotate(60deg); background-image: url('images/servicio-bim.jpg'); }
.seg-4 .seg-img { left: 34%;   top: 78%; transform: translate(-50%, -50%) rotate(-60deg); background-image: url('images/servicio_interiorismo.jpg'); }
.seg-5 .seg-img { left: 17.5%; top: 50%; transform: translate(-50%, -50%) rotate(0deg);   background-image: url('images/servicio-maquetas.jpg'); }
.seg-6 .seg-img { left: 34%;   top: 22%; transform: translate(-50%, -50%) rotate(60deg); background-image: url('images/servicio-consultoria.jpg'); }

/* ── Dark overlay layer (::after) — mejora legibilidad del texto ── */
.wheel-segment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  transition: background 0.45s ease;
  z-index: 1;
}

/* Hover — imagen a color + overlay más ligero + crece 35% + brillo dorado */
.wheel-segment:hover {
  transform: scale(1.35);
  z-index: 10;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.45));
}
.wheel-segment:hover::after {
  background: rgba(0,0,0,0.22);
}

/* Normal clip-paths (arc approx. con 6 puntos por arco de 60°) */
.seg-1 { clip-path: polygon(50% 50%, 50% 0%, 60.4% 1.1%, 70.4% 4.3%, 79.4% 9.6%, 87.2% 16.6%, 93.3% 25%); }
.seg-2 { clip-path: polygon(50% 50%, 93.3% 25%, 97.6% 34.6%, 99.75% 44.75%, 99.75% 55.25%, 97.6% 65.4%, 93.3% 75%); }
.seg-3 { clip-path: polygon(50% 50%, 93.3% 75%, 87.2% 83.4%, 79.4% 90.4%, 70.4% 95.7%, 60.4% 98.9%, 50% 100%); }
.seg-4 { clip-path: polygon(50% 50%, 50% 100%, 39.6% 98.9%, 29.6% 95.7%, 20.6% 90.4%, 12.8% 83.4%, 6.7% 75%); }
.seg-5 { clip-path: polygon(50% 50%, 6.7% 75%, 2.4% 65.4%, 0.25% 55.25%, 0.25% 44.75%, 2.4% 34.6%, 6.7% 25%); }
.seg-6 { clip-path: polygon(50% 50%, 6.7% 25%, 12.8% 16.6%, 20.6% 9.6%, 29.6% 4.3%, 39.6% 1.1%, 50% 0%); }

/* Content — encima de seg-img (z:1), ::after (z:2) */
.seg-content {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 140px;
  pointer-events: none;
  z-index: 3;
  padding: 0.6rem 0.75rem;
  background: transparent;
  transition: background 0.35s ease;
}
.wheel-segment:hover .seg-content {
  background: rgba(30, 30, 30, 0.82);
  border-radius: 8px;
}
.seg-1 .seg-content { left: 66%;   top: 22%;  }
.seg-2 .seg-content { left: 82.5%; top: 50%;  }
.seg-3 .seg-content { left: 66%;   top: 78%;  }
.seg-4 .seg-content { left: 34%;   top: 78%;  }
.seg-5 .seg-content { left: 17.5%; top: 50%;  }
.seg-6 .seg-content { left: 34%;   top: 22%;  }

.seg-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
  line-height: 1;
  transition: color 0.3s, transform 0.35s;
}
.wheel-segment:hover .seg-icon {
  color: var(--gold-light);
  transform: scale(1.15);
}

.seg-content h3 {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.seg-desc {
  font-size: 0.57rem;
  color: rgba(247,244,239,0.75);
  line-height: 1.5;
  max-width: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s 0.08s, transform 0.3s 0.08s;
}
.wheel-segment:hover .seg-desc {
  opacity: 1;
  transform: none;
}

/* SVG overlay: divisores + hub K — z:15 para siempre quedar encima del segmento activo */
.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* Mobile: revert to simple list */
@media (max-width: 520px) {
  .wheel-wrap { display: none; }
  .wheel-mobile-grid { display: grid !important; }
}
.wheel-mobile-grid { display: none; }

/* ===== TESTIMONIOS ===== */
.testimonios { background: var(--dark2); }

.testimonios-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 1rem;
}
.testimonios-carousel::-webkit-scrollbar { display: none; }

.testimonio {
  min-width: 380px;
  flex: 0 0 380px;
  scroll-snap-align: start;
  border: 1px solid rgba(201,168,76,0.15);
  padding: 2.5rem;
  position: relative;
}
.testimonio::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  line-height: 1;
}
.testimonio-texto {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--light);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 1.5rem;
}
.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.autor-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  flex-shrink: 0;
}
.testimonio-autor strong { display: block; font-size: 0.85rem; color: var(--light); }
.testimonio-autor span { font-size: 0.72rem; color: var(--gray); }

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===== CONTACTO ===== */
.contacto { background: var(--dark); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.contacto-info .section-title { margin-bottom: 1rem; }
.contacto-info > p { margin-bottom: 2rem; }

.contacto-datos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contacto-datos li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(247,244,239,0.65);
}
.dato-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

.social-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.social-link svg { flex-shrink: 0; }
.social-link:hover { color: var(--gold); border-color: var(--gold); }

/* Form */
.contacto-form-wrap {
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.5);
}

input, select, textarea {
  background: var(--dark3);
  border: 1px solid rgba(247,244,239,0.08);
  color: var(--light);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  appearance: none;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(247,244,239,0.25); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}
select { cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  max-width: none;
}
.form-feedback.success { color: #6abf7b; }
.form-feedback.error { color: #e07070; }

/* ===== MODALES DE SERVICIOS ===== */

.servicio-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(4px);
}
.servicio-modal.open {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s ease;
}

.modal-inner {
  background: var(--dark2);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(201,168,76,0.18);
  transform: scale(0.04);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.15, 0.64, 1),
              opacity 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark3);
}
.servicio-modal.open .modal-inner {
  transform: scale(1);
  opacity: 1;
}
.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-track { background: var(--dark3); }
.modal-inner::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}
.modal-close:hover {
  background: var(--gold);
  color: var(--dark);
  transform: rotate(90deg);
}

/* Hero del modal */
.modal-hero {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark3);
  display: flex;
  align-items: flex-end;
}
.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 100%);
}
.modal-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
}
.modal-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.modal-hero-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--light);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.modal-hero-content p {
  font-size: 0.9rem;
  color: rgba(247,244,239,0.7);
  max-width: 50ch;
}

/* Cuerpo del modal */
.modal-body {
  padding: 2.5rem;
}
.modal-intro {
  font-size: 1rem;
  color: rgba(247,244,239,0.75);
  line-height: 1.8;
  max-width: 65ch;
  margin-bottom: 2.5rem;
}
.modal-intro strong { color: var(--gold); }

/* Features grid */
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.modal-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(201,168,76,0.1);
  background: var(--dark3);
  transition: border-color 0.3s, background 0.3s;
}
.modal-feature:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.04);
}
.mf-icon {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-feature h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.modal-feature p {
  font-size: 0.8rem;
  color: rgba(247,244,239,0.6);
  line-height: 1.6;
  max-width: none;
}

/* CTA */
.modal-cta {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}

/* Responsive modal */
@media (max-width: 640px) {
  .modal-features { grid-template-columns: 1fr; }
  .modal-body { padding: 1.5rem; }
  .modal-hero-content { padding: 1.5rem; }
}

/* ===== MODALES DE PROYECTOS ===== */
.modal-project-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.meta-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.meta-value {
  font-size: 0.88rem;
  color: var(--light);
  font-family: var(--font-sans);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--light);
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.78rem;
  color: var(--gray);
  max-width: none;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(136,136,136,0.5);
  max-width: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .filosofia-grid { grid-template-columns: 1fr; gap: 3rem; }
  .visual-block { max-width: 300px; margin: 0 auto; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.98);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open a {
    font-size: 1rem;
    color: var(--light);
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .proyecto-featured,
  .proyectos-grid .proyecto-card:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .stats-band { gap: 1.5rem; }
  .stat { min-width: 100px; }

  .testimonio { min-width: 280px; flex: 0 0 280px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .seg-content h3 { font-size: 0.55rem; }
  .seg-icon { font-size: 1.1rem; }
  .seg-desc { display: none; }
}
