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

:root {
  --clr-brand: #D4401A;
  --clr-brand-dark: #A8300E;
  --clr-brand-light: #F5E8E4;
  --clr-dark: #1A1611;
  --clr-dark2: #2C2420;
  --clr-text: #3D3530;
  --clr-muted: #7A6E68;
  --clr-light: #FAF8F6;
  --clr-border: #E8E0DA;
  --clr-white: #FFFFFF;
  --clr-green: #25D366;
  --ff-display: 'Bebas Neue', sans-serif;
  --ff-serif: 'DM Serif Display', serif;
  --ff-body: 'DM Sans', sans-serif;
  --container: 1160px;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(26,22,17,.10);
  --shadow-lg: 0 12px 48px rgba(26,22,17,.16);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .3px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-brand);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,64,26,.35); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-white { background: #fff; color: var(--clr-brand); font-weight: 600; }
.btn-white:hover { background: var(--clr-brand-light); transform: translateY(-2px); }
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.15); }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION HEADER ===== */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-brand);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--clr-dark);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--clr-brand); }
.section-sub {
  font-size: 17px;
  color: var(--clr-muted);
  max-width: 560px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,.5); }

/* ===== NAV ===== */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-wrap.scrolled {
  background: rgba(26,22,17,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-family: var(--ff-display);
  font-size: 30px;
  color: #fff;
  letter-spacing: 4px;
}
.logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links li a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--clr-brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--clr-brand-dark) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26,22,17,.85) 0%, rgba(26,22,17,.5) 60%, rgba(26,22,17,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeUp .8s .1s both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-brand);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,64,26,.6); }
  50% { box-shadow: 0 0 0 6px rgba(212,64,26,0); }
}
.hero-title {
  display: flex;
  flex-direction: column;
  line-height: .9;
  margin-bottom: 20px;
  animation: fadeUp .8s .2s both;
}
.title-thin {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 6rem);
  color: rgba(255,255,255,.75);
  font-weight: 400;
}
.title-bold {
  font-family: var(--ff-display);
  font-size: clamp(6rem, 18vw, 16rem);
  color: #fff;
  letter-spacing: -2px;
  line-height: .85;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.8);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.6;
  animation: fadeUp .8s .3s both;
}
.hero-desc strong { color: #fff; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeUp .8s .4s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp .8s .5s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 40px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.stat-div { width: 1px; height: 40px; background: rgba(255,255,255,.2); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeUp .8s .8s both;
}
.scroll-arrow {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.3);
  animation: scrollDown 1.5s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--clr-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img-wrap {
  height: 220px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-img-wrap img { transform: scale(1.06); }
.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-num {
  font-family: var(--ff-display);
  font-size: 48px;
  color: var(--clr-brand-light);
  line-height: 1;
  margin-bottom: 8px;
}
.service-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--clr-dark);
  margin-bottom: 10px;
}
.service-body p { color: var(--clr-muted); font-size: 14.5px; flex: 1; }
.service-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--clr-brand);
  font-size: 14px;
  font-weight: 500;
  transition: gap var(--transition);
}
.service-link:hover { letter-spacing: .5px; }

/* ===== TRABAJOS ===== */
.trabajos-section { background: var(--clr-dark); }
.trabajos-section .section-tag { color: rgba(212,64,26,.9); }
.trabajos-section .section-title { color: #fff; }
.trabajos-section .section-sub { color: rgba(255,255,255,.5); }
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--clr-brand);
  color: #fff;
  border-color: var(--clr-brand);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(26,22,17,.85));
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery-item:hover figcaption { transform: translateY(0); }
.gallery-item.hidden { display: none; }

/* ===== NOSOTROS ===== */
.nosotros { background: var(--clr-white); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-img-stack {
  position: relative;
  padding-bottom: 40px;
  padding-right: 40px;
}
.nosotros-img-main {
  border-radius: var(--radius);
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.nosotros-img-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--clr-white);
  box-shadow: var(--shadow);
}
.nosotros-badge {
  position: absolute;
  top: 24px; right: 50px;
  background: var(--clr-brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-years {
  display: block;
  font-family: var(--ff-display);
  font-size: 44px;
  line-height: 1;
}
.badge-label { font-size: 12px; opacity: .85; line-height: 1.3; }
.nosotros-text .section-title { margin-top: 8px; }
.nosotros-text p {
  color: var(--clr-muted);
  margin-bottom: 16px;
  font-size: 16px;
}
.nosotros-text strong { color: var(--clr-dark); }
.checkList { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.checkList li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--clr-text);
}
.checkList li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--clr-brand);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 3px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,64,26,.92) 0%, rgba(168,48,14,.88) 100%);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.cta-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.cta-banner-content h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-banner-content h2 em { font-style: italic; color: rgba(255,255,255,.8); }
.cta-banner-content p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== CONTACTO ===== */
.contacto { background: var(--clr-light); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contacto-info .section-title { margin-top: 8px; }
.contacto-info > p { color: var(--clr-muted); margin-bottom: 36px; font-size: 16px; }
.contact-items { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
a.contact-item:hover {
  border-color: var(--clr-brand);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--clr-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-brand);
  flex-shrink: 0;
}
.contact-icon--green { background: #e8faf0; color: #25D366; }
.contact-label { display: block; font-size: 12px; color: var(--clr-muted); }
.contact-val { display: block; font-size: 15px; font-weight: 500; color: var(--clr-dark); }
.contact-val small { font-size: 12px; color: var(--clr-muted); font-weight: 400; }

.contacto-form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
}
.contacto-form h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--clr-dark);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--clr-dark);
  background: var(--clr-white);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(212,64,26,.1);
}
.form-group textarea { resize: vertical; }
.form-note {
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
  margin-top: 12px;
}
.form-note a { color: var(--clr-brand); }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  background: #e8faf0;
  color: #1a7a46;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer { background: var(--clr-dark); color: rgba(255,255,255,.7); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding: 64px 0 48px;
}
.footer-brand .logo-text { color: #fff; font-size: 36px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; max-width: 280px; line-height: 1.6; margin-bottom: 20px; }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--clr-brand); border-color: var(--clr-brand); color: #fff; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--clr-brand); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-img-col { max-width: 520px; margin: 0 auto; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(26,22,17,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 12px 16px; }
  .nav-cta { text-align: center; border-radius: 8px !important; }
  .nav-toggle { display: flex; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item--wide { grid-column: span 1; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .nosotros-img-secondary { width: 50%; height: 160px; }
  .contacto-form-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .title-bold { font-size: clamp(5rem, 20vw, 8rem); }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .stat-div { width: 40px; height: 1px; }
}
