:root {
  --orange: #E8621A;
  --orange-light: #F07E3A;
  --orange-dark: #C44F0E;
  --gray-dark: #1C1C1C;
  --gray-mid: #3A3A3A;
  --gray-light: #6B6B6B;
  --gray-bg: #F4F2EF;
  --white: #FDFCFA;
  --border: #D8D4CE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--gray-dark);
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

section {
  scroll-margin-top: 92px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(28,28,28,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,98,26,0.25);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--orange); }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B0ACA6;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  padding: 10px 24px;
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--orange-dark); color: var(--white) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--gray-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 8% 80px 8%;
  position: relative; z-index: 2;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 2rem;
}
.hero-tag::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--orange);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900; line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--orange); }

.hero-subtitle {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: #9A9590; max-width: 480px; margin-bottom: 2.8rem;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; }

.btn-primary {
  padding: 15px 36px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  padding: 15px 36px;
  border: 1px solid #4A4A4A;
  color: #9A9590;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.hero-stats {
  margin-top: 4rem;
  display: flex; gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #2E2E2E;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--orange); }
.stat-label {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6B6565; margin-top: 4px;
}

.hero-right {
  position: relative; overflow: hidden;
}

.hero-img-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr 1fr; gap: 3px;
}
.hero-img-grid div {
  background-size: cover; background-position: center;
  position: relative;
}
.hero-img-grid div::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(28,28,28,0.35);
}
.img-top { background-image: url('Obras/6.jpg'); }
.img-bottom { background-image: url('Obras/7.jpg'); }

.hero-badge {
  position: absolute; bottom: 40px; left: -20px; z-index: 3;
  background: var(--orange);
  color: var(--white);
  padding: 18px 28px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--orange-dark);
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 1rem;
}
.section-tag::before, .section-tag::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--orange);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--gray-dark);
}
.section-sub {
  margin-top: 1rem; font-size: 1rem; font-weight: 300;
  color: var(--gray-light); max-width: 560px; margin-inline: auto;
  line-height: 1.7;
}

/* ── SERVICES ── */
.services {
  padding: 100px 8%;
  background: var(--white);
}

.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.25s;
  cursor: default;
}
.service-card:hover { background: var(--gray-dark); }

.service-icon {
  width: 52px; height: 52px;
  border: 1.5px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.8rem;
  transition: background 0.25s;
}
.service-card:hover .service-icon { background: var(--orange); }

.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg rect,
.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg line,
.service-card:hover .service-icon svg polyline { stroke: #fff; }

.service-num {
  position: absolute; top: 2rem; right: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  color: var(--border); transition: color 0.25s;
}
.service-card:hover .service-num { color: #2A2A2A; }

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--gray-dark); margin-bottom: 0.8rem;
  transition: color 0.25s;
}
.service-card:hover .service-name { color: var(--white); }

.service-desc {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--gray-light); transition: color 0.25s;
}
.service-card:hover .service-desc { color: #7A7670; }

/* ── NOSOTROS ── */
.about {
  padding: 100px 8%;
  background: var(--gray-bg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 7%;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-main {
  width: 100%; aspect-ratio: 4/5;
  background: url('Obras/8.jpg') center/cover;
  position: relative;
}
.about-img-accent {
  width: 55%;
  aspect-ratio: 1;
  background: url('Obras/9.jpg') center/cover;
  position: absolute; bottom: -36px; right: -36px;
  border: 6px solid var(--gray-bg);
}
.about-orange-bar {
  position: absolute; top: 0; left: -16px;
  width: 6px; height: 60%;
  background: var(--orange);
}

.about-content .section-header { text-align: left; margin-bottom: 2rem; }
.about-content .section-tag { justify-content: flex-start; }
.about-content .section-tag::before { display: none; }

.about-text {
  font-size: 0.97rem; line-height: 1.8; color: var(--gray-light);
  margin-bottom: 1.2rem;
}

.about-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem;
}
.about-value {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 1rem; background: var(--white);
}
.value-dot {
  width: 8px; height: 8px; background: var(--orange);
  border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.value-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-dark); }
.value-sub { font-size: 0.8rem; color: var(--gray-light); margin-top: 2px; }

/* ── PORTFOLIO ── */
.portfolio {
  padding: 100px 8%;
  background: var(--white);
}

/* ══════════════════════════════
   PORTFOLIO — SLIDER DE GALERÍA
══════════════════════════════ */

/* Botones prev/next */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--orange); transform: translateY(-50%) scale(1.08); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* SLIDER CENTRAL DE GALERÍA */
.central-gallery {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

.central-slider-wrap {
  position: relative; overflow: hidden;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  aspect-ratio: 16/9;
  max-height: 78vh;
  width: min(100%, 920px);
  margin: 0 auto;
  border: none;
}
.central-slider-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--orange); z-index: 5;
}

.central-slider {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
}
.gallery-slide.slide-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.gallery-slide.slide-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  border-radius: 6px;
}
.gallery-slide.slide-video {
  background: transparent;
  padding: 24px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slide.slide-video video {
  width: min(100%, 860px);
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  margin: 0 auto;
  border-radius: 6px;
}

.gallery-badge {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  background: rgba(0,0,0,0.7);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; border-radius: 25px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Responsive portfolio */
@media (max-width: 900px) {
  .central-gallery {
    padding: 0 0.5rem;
  }
  .central-slider-wrap {
    aspect-ratio: 4 / 5;
    max-height: 72vh;
    min-height: 320px;
    width: min(100%, 680px);
  }
  .gallery-slide.slide-img {
    padding: 0;
  }
  .gallery-slide.slide-video {
    padding: 10px;
  }
  .gallery-slide.slide-video video {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  .gallery-slide.slide-img img,
  .gallery-slide.slide-video video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }
  .slider-btn {
    width: 48px;
    height: 48px;
  }
  .gallery-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

/* ── CONTACT ── */
.contact {
  padding: 100px 8%;
  background: var(--gray-dark);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8%;
  align-items: start;
}

.contact-info .section-header { text-align: left; margin-bottom: 2rem; }
.contact-info .section-tag { justify-content: flex-start; }
.contact-info .section-tag::before { display: none; }
.contact-info .section-title { color: var(--white); }
.contact-info .section-sub { margin-inline: 0; }

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid #3A3A3A;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--orange); }
.contact-detail-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-light); margin-bottom: 3px;
}
.contact-detail-val {
  font-size: 0.95rem; color: #C0BBB5;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-light);
}
.form-input, .form-textarea {
  background: #252525; border: 1px solid #3A3A3A;
  color: var(--white); font-family: 'Barlow', sans-serif;
  font-size: 0.92rem; padding: 13px 16px;
  border-radius: 2px; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--orange); }
.form-textarea { resize: vertical; min-height: 130px; }
::placeholder { color: #555; }

.form-submit {
  margin-top: 0.5rem;
  padding: 15px 36px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; border: none; cursor: pointer;
  border-radius: 2px; align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: #111;
  padding: 2rem 8%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #222;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 900; color: var(--white);
}
.footer-logo span { color: var(--orange); }
.footer-copy {
  font-size: 0.8rem; color: #555;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag  { animation: fadeUp 0.6s 0.1s both; }
.hero-title { animation: fadeUp 0.7s 0.25s both; }
.hero-subtitle { animation: fadeUp 0.7s 0.4s both; }
.hero-actions { animation: fadeUp 0.7s 0.55s both; }
.hero-stats { animation: fadeUp 0.7s 0.7s both; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }
  .hero-left {
    padding: 110px 6% 40px 6%;
  }
  .hero-right { height: 320px; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    margin-top: 2rem;
  }
  .about {
    grid-template-columns: 1fr;
    padding: 80px 6%;
  }
  .about-img-wrap { display: none; }
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 80px 6%;
  }
  .services {
    padding: 80px 6%;
  }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .proj-card:first-child { grid-column: auto; }
  nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
    padding: 10px 5% 12px;
    height: auto;
  }
  .nav-logo img {
    width: 140px;
    height: auto;
  }
  .nav-links {
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 0.74rem;
  }
  .nav-cta {
    padding: 8px 14px;
  }
  .section-header { margin-bottom: 2.5rem; }
  .hero-badge {
    left: 12px;
    bottom: 12px;
    padding: 14px 18px;
    box-shadow: none;
  }
  .about-img-accent {
    right: 0;
    bottom: -14px;
    width: 48%;
  }
  .contact-info .section-header,
  .contact-info .section-sub {
    text-align: left;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
