/* ============================================
   GO CONSTRUCTORA — STYLE.CSS
   Paleta: #C45725 (naranja), #4D4948 (gris)
   Tipografía: Josefin Sans (similar Levenim MT)
   ============================================ */

/* ---- VARIABLES ---- */
:root {
  --orange: #C45725;
  --orange-dark: #a3451c;
  --orange-light: #e06830;
  --gray: #4D4948;
  --gray-light: #7a7676;
  --gray-muted: #b0aba9;
  --dark: #111111;
  --dark-2: #1a1916;
  --dark-3: #222220;
  --light: #f7f3ef;
  --white: #ffffff;
  --cream: #faf6f2;

  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --shadow-orange: 0 8px 32px rgba(196, 87, 37, 0.3);
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ---- CURSOR PERSONALIZADO ---- */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.25s, height 0.25s, opacity 0.25s;
  opacity: 0.5;
}

body:hover .cursor {
  opacity: 1;
}

a:hover~.cursor,
button:hover~.cursor {
  width: 20px;
  height: 20px;
}

/* ---- CONTENEDOR ---- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ---- TEXTOS ACCENT ---- */
.text-accent {
  color: var(--orange);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---- SECCIONES ---- */
.section {
  padding: 6rem 0;
}

.dark-section {
  background: var(--dark-2);
  color: var(--light);
}

.dark-section .section-title {
  color: var(--white);
}

.dark-section .section-subtitle {
  color: var(--gray-muted);
}

.dark-section .section-tag {
  color: var(--orange);
}

/* ---- BOTONES ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary:hover {
  box-shadow: var(--shadow-orange);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(196, 87, 37, 0.08);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   ANIMACIONES REVEAL
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo {
  height: 55px;
  filter: brightness(0) invert(1); /* Hace que el logo sea blanco para el fondo oscuro del footer */
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s, box-shadow 0.25s;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  background-image: url('Fotos/LOCALES%20COMERCIALES%20TORREMOLINOS/TORREMOLINOS%20LISTO.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.blueprint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.40) 50%,
      rgba(0, 0, 0, 0.52) 100%);
}

/* Línea decorativa naranja lateral */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.br-hide {
  display: none;
}

@media (min-width: 768px) {
  .br-hide {
    display: inline;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  width: fit-content;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: 2px;
  line-height: 1;
  vertical-align: top;
  display: inline;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 4%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
  cursor: pointer;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(196, 87, 37, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  color: var(--orange);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  background: var(--orange);
}

.service-card:hover .service-icon svg {
  color: white;
  transform: scale(1.1);
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(196, 87, 37, 0.07);
  line-height: 1;
  transition: color 0.3s;
}

.service-card:hover .service-number {
  color: rgba(196, 87, 37, 0.15);
}

/* ============================================
   BACKGROUND PARALLAX TEXT
   ============================================ */
/* Eliminamos originial parallax en nosotros y lo cambiamos a galeria */
.bg-parallax-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bg-parallax-text {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 12vw, 15rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  letter-spacing: -2px;
  line-height: 1.1;
  /* Aumentado para que no recorte la fuente */
  text-transform: uppercase;
  flex-shrink: 0;
  width: max-content;
  padding-bottom: 0.5em;
  /* Padding para prevenir cortes visuales en la caja */
}

.bg-parallax-text.line-1 {
  animation: bg-scroll 60s linear infinite;
}

.bg-parallax-text.line-2 {
  animation: bg-scroll-reverse 60s linear infinite;
  margin-left: -20vw;
}

@keyframes bg-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes bg-scroll-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Ensure content stays above the background text */
.contacto {
  position: relative;
  overflow: hidden;
}

.contacto .container {
  position: relative;
  z-index: 2;
}

/* ============================================
   NOSOTROS
   ============================================ */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-visual {
  position: relative;
}

.nosotros-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.nosotros-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(196, 87, 37, 0.2);
}

/* Decoración detrás de la imagen */
.nosotros-img-wrap::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -24px;
  inset-block: auto;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(196, 87, 37, 0.25);
  border-radius: var(--radius-lg);
  z-index: 0;
  top: 24px;
  left: 24px;
  pointer-events: none;
}

.nosotros-img-wrap img {
  position: relative;
  z-index: 1;
}

.nosotros-badge-float {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  z-index: 2;
  background: var(--dark);
  border: 1px solid rgba(196, 87, 37, 0.3);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nosotros-badge-float svg {
  width: 32px;
  height: 32px;
}

.nosotros-badge-float span {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
}

.nosotros-years-float {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  z-index: 2;
  background: var(--orange);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-orange);
}

.years-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.years-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.nosotros-text .section-tag {
  display: block;
}

.nosotros-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.nosotros-body {
  font-size: 0.95rem;
  color: var(--gray-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.valor-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.valor-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}

.valor-icon svg {
  width: 100%;
  height: 100%;
}

.valor-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.valor-item p {
  font-size: 0.8rem;
  color: var(--gray-muted);
  line-height: 1.5;
}

/* ============================================
   GALERÍA
   ============================================ */
.galeria {
  background: var(--white);
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.1) 60%, transparent 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.gallery-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.gallery-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.25s;
  cursor: pointer;
}

.gallery-zoom:hover {
  background: var(--orange);
}

.gallery-zoom svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   PROJECT CARDS + CARRUSEL POR PROYECTO
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden {
  display: none;
}

/* ---- CARRUSEL ---- */
.project-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Relación panorámica para evitar recortes laterales (zoom) */
  min-height: 180px; 
  background: var(--dark-3);
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  max-width: none; /* Evita interferencias de resets globales */
}

@media (hover: hover) {
  .project-card:hover .carousel-slide img {
    transform: scale(1.04);
  }
}

/* Flechas prev/next */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0;
}

.project-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--orange);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.carousel-prev {
  left: 0.6rem;
}

.carousel-next {
  right: 0.6rem;
}

/* Contador de fotos */
.carousel-counter {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 4;
}

/* Badge categoría sobre imagen */
.carousel-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

/* Botón expandir */
.carousel-expand {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0;
}

.project-carousel:hover .carousel-expand {
  opacity: 1;
}

.carousel-expand:hover {
  background: var(--orange);
}

.carousel-expand svg {
  width: 14px;
  height: 14px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Info debajo del carrusel */
.project-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.project-photo-count {
  font-size: 0.78rem;
  color: var(--gray-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

/* ---- LIGHTBOX con navegación ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.97);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
  cursor: pointer;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--orange);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#lightboxImg {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}

.lightbox-info {
  text-align: center;
}

.lightbox-cat {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.4rem;
}

#lightboxTitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.lightbox-counter {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(196, 87, 37, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(196, 87, 37, 0.08);
}

/* ---- FORMULARIO ---- */
.contacto-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem; /* Aumentado un poco para dar espacio a la burbuja */
  position: relative;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group select option {
  background: var(--dark-3);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(196, 87, 37, 0.06);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-muted);
  margin-top: 0.75rem;
}

/* Burbujas de error */
.error-bubble {
  position: absolute;
  bottom: -22px;
  right: 0;
  background: #e05c5c;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.error-bubble.active {
  opacity: 1;
  transform: translateY(0);
}

.error-bubble::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 15px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #e05c5c;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-success svg {
  width: 64px;
  height: 64px;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
}

.form-success p {
  color: var(--gray-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.7rem;
}

.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--gray-muted);
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--orange);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact a,
.footer-contact span {
  font-size: 0.88rem;
  color: var(--gray-muted);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nosotros-img-wrap img {
    height: 380px;
  }

  .nosotros-years-float {
    left: 1rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 990;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-link {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    width: 100%;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-item {
    padding: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .nosotros-years-float {
    display: none;
  }

  .nosotros-badge-float {
    display: none;
  }
}