:root {
  --blue: #0077d9;
  --blue-dark: #0050a4;
  --blue-soft: #eaf5ff;
  --black: #07111f;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --cream: #f8f6f2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}
.brand-mark { width: 48px; height: auto; }
.brand-text { display: grid; line-height: 1; letter-spacing: 0.03em; }
.brand-text small { color: var(--muted); text-transform: uppercase; font-size: 0.68rem; }
.brand-text strong { color: var(--blue); text-transform: uppercase; font-size: 1.25rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--blue); }
.header-whatsapp,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-whatsapp,
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 12px 28px rgba(0, 119, 217, .25);
}
.header-whatsapp:hover,
.btn:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--blue-dark); background: var(--white); }
.btn-glass { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.btn-light { background: white; color: var(--blue-dark); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--blue-soft);
  border-radius: 12px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  margin: 5px auto;
}

.hero {
  min-height: 740px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: url('../images/fachada-dia.webp') center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,10,22,.82), rgba(3,10,22,.36), rgba(3,10,22,.08));
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(3,10,22,.72), transparent);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding-top: 72px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .78rem;
}
.eyebrow.light { color: #bfe0ff; }
.hero .eyebrow { color: #bfe0ff; }
h1, h2, h3 { margin: 0; line-height: 1.06; color: var(--black); }
.hero h1 {
  max-width: 660px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.07em;
  color: white;
}
.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.28rem;
  color: rgba(255,255,255,.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 42px;
  z-index: 2;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.8);
  padding: 18px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--black);
}

.quick-contact {
  background: var(--blue-dark);
  color: white;
}
.quick-grid {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.quick-grid strong { display: block; font-size: 1.18rem; }
.quick-grid span { color: rgba(255,255,255,.75); }
.quick-phone { font-size: 1.3rem; font-weight: 900; }

.section { padding: 92px 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2,
.highlight-content h2,
.about-content h2,
.contact-info h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.045em;
}
.section-heading p,
.highlight-content p,
.about-content p,
.contact-info p,
.cta-band p { color: var(--muted); font-size: 1.07rem; }

.features { background: linear-gradient(180deg, #fff, #f8fbff); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.feature-icon {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-soft);
  font-size: 1.7rem;
  margin-bottom: 22px;
}
.feature-card h3 { font-size: 1.17rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); margin: 0; }

.highlight { background: var(--cream); }
.highlight-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: center;
}
.highlight-image img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.check-list {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: .88rem;
  font-weight: 900;
}
.highlight-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 18px;
}
.gallery-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(15,23,42,.08);
}
.gallery-card img { width: 100%; height: 330px; object-fit: cover; }
.gallery-card.large { grid-row: span 2; }
.gallery-card.large img { height: 720px; }
.gallery-card.wide { grid-column: span 2; }
.gallery-card figcaption {
  padding: 16px 18px;
  font-weight: 800;
  color: var(--black);
}

.about {
  background: linear-gradient(135deg, #edf7ff 0%, #ffffff 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 48px;
  align-items: center;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.trust-grid div {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.trust-grid strong { display: block; color: var(--blue-dark); }
.trust-grid span { color: var(--muted); }
.about-card {
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}
.about-card img { max-width: 310px; margin: 0 auto 18px; }
.about-card p { color: var(--muted); margin: 0; }


.location {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.location-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.location-content h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.045em;
}
.location-content p {
  color: var(--muted);
  font-size: 1.07rem;
}
.location-content strong {
  color: var(--black);
}
.location-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0;
}
.location-cards div {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.location-cards strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.location-cards span {
  color: var(--muted);
}
.map-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 430px;
  background: var(--blue-soft);
}
.map-card iframe {
  width: 100%;
  height: 430px;
  display: block;
}

.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
}

.contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 56px;
}
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--black);
  font-weight: 800;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fbfdff;
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 8px; font-weight: 800; color: var(--black); }
.contact-form label:nth-child(3),
.contact-form label:nth-child(4),
.contact-form button { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  outline: none;
  background: white;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,119,217,.12); }
.contact-form textarea { resize: vertical; }

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(34,197,94,.35);
}

.site-footer {
  background: #050b14;
  color: rgba(255,255,255,.8);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .75fr 1fr .65fr;
  gap: 42px;
}
.footer-logo { max-width: 240px; background: white; border-radius: 14px; padding: 8px; margin-bottom: 18px; }
.site-footer h3 { color: white; margin-bottom: 16px; }
.site-footer a { display: block; margin: 7px 0; color: rgba(255,255,255,.72); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 44px;
  padding: 22px 20px;
  text-align: center;
  font-size: .9rem;
}

.reveal { animation: rise .7s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .header-content { min-height: 74px; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 12px; }
  .header-whatsapp { display: none; }
  .brand { min-width: auto; }
  .quick-grid,
  .highlight-grid,
  .about-grid,
  .location-grid,
  .cta-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card.large { grid-row: auto; }
  .gallery-card.large img { height: 360px; }
  .gallery-card.wide { grid-column: span 2; }
  .hero { min-height: 680px; }
  .hero-badges { left: 20px; right: 20px; bottom: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand-text strong { font-size: 1rem; }
  .brand-mark { width: 40px; }
  .hero { min-height: 640px; background-position: center; }
  .hero h1 { font-size: 3.3rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section { padding: 64px 0; }
  .quick-grid { text-align: center; padding: 20px 0; }
  .feature-grid,
  .gallery-grid,
  .trust-grid,
  .contact-form { grid-template-columns: 1fr; }
  .gallery-card.wide { grid-column: span 1; }
  .gallery-card img,
  .gallery-card.large img { height: 330px; }
  .contact-form label:nth-child(3),
  .contact-form label:nth-child(4),
  .contact-form button { grid-column: auto; }
  .floating-whatsapp { left: 16px; right: 16px; bottom: 14px; }
}


.hero-project-logo {
  width: min(280px, 72vw);
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-project-logo img {
  width: 100%;
  border-radius: 14px;
}
.project-logo-card {
  width: min(270px, 100%);
  padding: 12px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #fffaf0;
  border: 1px solid rgba(148, 131, 95, .25);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}
.project-logo-card img {
  width: 100%;
  border-radius: 16px;
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .hero-project-logo { width: min(230px, 72vw); }
  .project-logo-card { width: min(230px, 100%); }
}
