:root {
  --ink: #090d10;
  --ink2: #11171b;
  --paper: #f4f3ef;
  --white: #fff;
  --muted: #737b80;
  --accent: #ff4b32;
  --accent2: #00a9e8;
  --wa: #25d366;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}

/* ─── HEADER & NAVBAR ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: 0.3s;
}

.site-header.scrolled {
  background: rgba(8, 11, 13, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
  margin-right: 20px;
  flex-shrink: 0;
}

.brand-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.86;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-phone {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
}

.header-phone span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  background: #050708;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#inicio,
.hero {
  scroll-margin-top: 90px; /* Compensación para la altura del header */
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Alineada a la derecha y arriba para mostrar contexto */
  background: url('../img/hero.jpg') right top / cover no-repeat;
  filter: brightness(0.70); /* Integra mejor el fondo con el texto */
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;




  /*position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') right top / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;*/
}

@keyframes kenburns {
  from { transform: scale(1) translate(0); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4, 7, 9, 0.97) 0%, rgba(4, 7, 9, 0.82) 43%, rgba(4, 7, 9, 0.28) 77%, rgba(4, 7, 9, 0.5) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  padding-top: 145px;
  padding-bottom: 90px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.eyebrow.dark {
  color: var(--accent);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-family: 'Oswald', sans-serif;
  color: #fff;
  font-size: clamp(4rem, 7.1vw, 7rem);
  line-height: 0.89;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 0.83rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 75, 50, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ff5c45;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-card {
  background: rgba(11, 15, 17, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-top: 3px solid var(--accent);
  padding: 30px;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.32);
}

.card-label {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.hero-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  margin: 14px 0;
}

.hero-card p {
  color: #aeb5ba;
  font-size: 0.92rem;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hero-card-row span {
  color: #c9ced1;
}

.hero-card-link {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-card-link b {
  color: var(--accent);
  font-size: 1.2rem;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 30px;
  color: #fff;
  writing-mode: vertical-rl;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.scroll-cue span {
  color: var(--accent);
  margin-top: 8px;
}

/* ─── QUICK STRIP ─── */
.quick-strip {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}

.quick-grid b {
  font-family: 'Oswald', sans-serif;
  color: var(--accent);
  font-size: 1.1rem;
}

.quick-grid span {
  font-weight: 700;
  font-size: 0.88rem;
}

/* ─── SERVICES ─── */
.section {
  padding: 105px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-head h2, .coverage h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.section-head h2 span, .coverage h2 span {
  color: var(--accent);
}

.section-head p, .coverage-copy p {
  color: var(--muted);
  max-width: 650px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 390px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.service-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-photo:hover img {
  transform: scale(1.06);
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 6, 7, 0.92), rgba(4, 6, 7, 0.05) 70%);
}

.service-copy {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 24px;
  color: #fff;
}

.service-card small {
  font-family: 'Oswald', sans-serif;
  color: var(--accent);
  font-weight: 700;
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1;
  margin: 9px 0;
}

.service-card p {
  font-size: 0.9rem;
  color: #c3c8cb;
  margin: 0;
}

.service-dark, .service-accent {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-dark {
  background: #11171b;
  color: #fff;
}

.service-accent {
  background: var(--accent);
  color: #fff;
}

.service-accent small {
  color: #fff;
}

.service-icon {
  font-size: 4rem;
  margin: auto 0;
  color: rgba(255, 255, 255, 0.15);
}

.service-dark a, .service-accent a {
  margin-top: 25px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ─── GALERÍA DE TRABAJOS REALES ─── */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #11171b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.gallery-item img {
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  border: 1px solid #e7eaec;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.gallery-maps-action {
  text-align: center;
  margin-top: 40px;
}

.btn-maps {
  background: #11171b;
  color: #fff;
  border: 1px solid #28333d;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.btn-maps b {
  color: var(--accent);
  font-size: 1.1rem;
}

.btn-maps:hover {
  background: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── CÓMO TRABAJAMOS (3 COLUMNAS HORIZONTALES) ─── */
.how {
  background: #090d10;
  color: #fff;
  padding: 110px 0;
}

.how-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.how-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.how-header p {
  color: #9aa3a8;
  font-size: 1.05rem;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 36px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: 'Oswald', sans-serif;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 16px;
}

.step-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
}

.step-box p {
  color: #9aa3a8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.how-cta {
  text-align: center;
  margin-top: 50px;
}

/* ─── COBERTURA ─── */
.coverage {
  background: var(--paper);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.coverage-note {
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.coverage-links {
  margin-top: 16px;
}

.text-link.maps-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link.maps-link:hover {
  text-decoration: underline;
}

.neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.neighborhoods span {
  padding: 14px 18px;
  border: 1px solid #d9d9d5;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: 0.2s ease;
}

.neighborhoods span:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ─── CONTACTO ─── */
.contact {
  background: var(--ink2);
  padding: 100px 0;
  color: #fff;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.contact-copy h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 4.2rem;
  line-height: 1;
}

.contact-copy p {
  max-width: 430px;
  color: #aeb5ba;
}

.phone-big {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-decoration: none;
  color: #fff;
}

.mini-form {
  background: #fff;
  color: var(--ink);
  padding: 32px;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-form label {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.mini-form input, .mini-form textarea {
  width: 100%;
  border: 1px solid #d9dcde;
  background: #f7f7f5;
  padding: 13px;
  border-radius: 8px;
  font: inherit;
}

.mini-form input:focus, .mini-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.mini-form small {
  color: #747b80;
}

.input-error {
  border-color: #c40000 !important;
  background-color: #fff8f8 !important;
}

/* ─── FOOTER (SIN LOGO REPETIDO Y CON ENLACE A MAPS) ─── */
.footer {
  background: #080b0d;
  color: #fff;
  padding: 60px 0 26px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.footer-brand-info h3 b {
  color: var(--accent);
}

.footer-brand-info p {
  color: #a4adb3;
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.footer-brand-info small {
  color: #69747c;
  display: block;
  font-size: 0.8rem;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav strong, .footer-contact strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #bcc6ce;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.footer a {
  text-decoration: none;
  color: #8f9aa2;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-maps {
  color: var(--accent) !important;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #727b81;
  font-size: 0.78rem;
}
/* Redes sociales en footer */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #bcc6ce;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #8f9aa2;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  flex-shrink: 0;
  fill: currentColor;
  transition: fill 0.2s ease;
}

.social-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.social-link:hover svg {
  fill: var(--accent);
}


/* ─── FLOATING WHATSAPP ─── */
.floating-wa {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  z-index: 60;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  transition: 0.2s ease;
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-wa svg {
  width: 31px;
  fill: #062411;
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible, .hero .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .header-phone { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 35px; }
  .hero-card { max-width: 520px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 20px; }
  .coverage-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1240px); }
  .nav { height: 84px; }
  .brand { padding: 4px o; margin-right: 12px; }
  .brand-img { max-height: 60px; width: auto; object-fit: contain; }
  .menu-toggle { 
    display: block; 
    margin-left: auto;
    z-index: 60; 
  }
  .nav-links {
    position: fixed;
    top: 84px;
    left: 14px;
    right: 14px;
    background: #0b0f12;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px 20px;
    display: none;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 55;
  }
  .nav.open .nav-links {
    display: flex;
  }
  .nav-links.open { display: flex; }
  .hero-layout { padding-top: 115px; padding-bottom: 65px; }
  .hero-content h1 { font-size: clamp(3.4rem, 17vw, 5.4rem); }
  .hero-card { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid div { padding: 17px 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  .section { padding: 75px 0; }
  .how { padding: 80px 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact { padding: 75px 0; }
  .contact-copy h2 { font-size: 3.2rem; }
  .scroll-cue { display: none; }
}