@charset "UTF-8";

:root {
  --brand-green: #50ad3c;
  --brand-green-hover: #438f32;
  --brand-blue: #075a94;
  --brand-blue-hover: #054877;
  --navy: #173c58;
  --ink: #253743;
  --muted: #667781;
  --line: #e2e8eb;
  --surface: #f5f7f7;
  --white: #ffffff;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: "Manrope", "Inter", Arial, sans-serif;
  --panel-radius: 8px;
  --panel-shadow: 0 14px 34px rgba(23, 60, 88, 0.07);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: clamp(15px, 0.95rem + 0.2vw, 16.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(7, 90, 148, 0.4);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 30;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 190px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: clamp(14px, 0.88rem + 0.1vw, 15px);
  font-weight: 500;
  color: #405561;
}

.main-nav a:not(.nav-cta) {
  transition: color 0.18s ease;
  padding: 8px 0;
}

.main-nav a:not(.nav-cta):hover,
.main-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--brand-green-hover);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  color: white;
  background: var(--brand-green);
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(14px, 0.86rem + 0.15vw, 15px);
  min-height: 44px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(80, 173, 60, 0.25);
}

.nav-cta span {
  font-size: 16px;
  line-height: 1;
}

.menu-toggle {
  display: none;
}

/* Home: Hero Full Section */
.home-page .hero-full {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: clamp(540px, 52vw, 760px);
  overflow: hidden;
  background: #e8edef;
}

.hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.82) 25%,
    rgba(255, 255, 255, 0.66) 40%,
    rgba(255, 255, 255, 0.32) 52%,
    rgba(255, 255, 255, 0.06) 62%,
    transparent 68%
  );
}

.home-page .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(var(--container), calc(100% - 64px));
  height: 100%;
  padding-top: 72px;
  padding-bottom: 32px;
}

.home-page .hero-copy {
  width: min(600px, 58%);
  padding: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-blue);
  font-size: clamp(11.5px, 0.7rem + 0.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-green);
}

.home-page .hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.home-page .hero-copy h1 em {
  color: var(--brand-blue);
  font-style: normal;
}

.hero-location {
  margin: 20px 0 6px;
  color: var(--navy);
  font-size: clamp(11.5px, 0.7rem + 0.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.walk-distance {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 0 18px;
  color: #4a5c66;
  font-size: clamp(14px, 0.85rem + 0.2vw, 15.5px);
  line-height: 1.5;
  font-weight: 500;
}

.walk-distance img {
  width: 17px;
  height: 28px;
  object-fit: contain;
  flex: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.hero-brochure-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(23, 60, 88, 0.18);
  border-radius: 4px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 0.82rem + 0.1vw, 14px);
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero-brochure-link:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 60, 88, 0.34);
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: clamp(14px, 0.86rem + 0.15vw, 15px);
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  border: 0;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button-primary {
  color: white;
  background: var(--brand-green);
}

.button-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(80, 173, 60, 0.3);
}

.button-secondary {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: #eaeff2;
  border-color: #ccd7dc;
}

.button-whatsapp {
  color: white;
  background: #25D366;
}

.button-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}

.button-ghost {
  color: var(--navy);
  background: transparent;
  border: 1px dashed var(--line);
}

.button-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Hero Bottom Bar */
.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 64px));
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(23, 60, 88, 0.12);
}

.hero-bottom > span {
  font-size: clamp(11.5px, 0.72rem + 0.15vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--navy);
  text-transform: uppercase;
}

/* Página reservada para el brochure, pendiente de sus páginas finales. */
.brochure-page {
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 7vw, 84px) 0;
  background: linear-gradient(180deg, #f5f7f7 0%, #ffffff 360px);
}

.brochure-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.brochure-heading .eyebrow {
  justify-content: center;
}

.brochure-heading h1 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.brochure-heading h1 em {
  color: var(--brand-blue);
  font-style: normal;
}

.brochure-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

.brochure-viewer {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.brochure-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 10px;
  padding: 44px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--panel-shadow);
  text-align: center;
}

.brochure-empty h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.25;
}

.brochure-empty p {
  max-width: 510px;
  margin: 0 auto;
  color: var(--muted);
}

/* Inner Pages: Banner */
.inner-page .page-banner {
  padding: 64px 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: clamp(11.5px, 0.7rem + 0.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumb span {
  color: #adbcc3;
  margin: 0 6px;
}

.inner-page .page-banner h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.inner-page .page-banner h1 em {
  color: var(--brand-blue);
  font-style: normal;
}

.page-lede {
  max-width: 680px;
  margin: 0;
  color: #4a5c66;
  font-size: clamp(15px, 0.92rem + 0.25vw, 17px);
  line-height: 1.7;
}

.page-content {
  padding: 72px 0 96px;
}

/* Proyectos: Ficha Arquitectónica Showcase ALTIVA */
.project-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-showcase:hover {
  box-shadow: 0 20px 44px rgba(23, 60, 88, 0.12);
}

.showcase-media {
  position: relative;
  background: #e5ecef;
  overflow: hidden;
  min-height: 380px;
}

.showcase-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-showcase:hover .showcase-media img {
  transform: scale(1.02);
}

.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: var(--brand-blue);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(7, 90, 148, 0.35);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 44px 44px 0;
}

.showcase-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12.5px, 0.75rem + 0.15vw, 13.5px);
  font-weight: 700;
  color: var(--brand-green-hover);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.showcase-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.showcase-desc {
  margin: 0 0 24px;
  color: #4a5c66;
  font-size: clamp(14.5px, 0.9rem + 0.15vw, 16px);
  line-height: 1.65;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(13px, 0.82rem + 0.15vw, 14px);
  color: var(--ink);
  line-height: 1.45;
}

.showcase-features li::before {
  content: "✓";
  color: var(--brand-green);
  font-weight: 800;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Nosotros Section */
.about-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.about-brand-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: 44px 36px;
  text-align: center;
}

.about-brand-panel img {
  width: 210px;
  margin: 0 auto 20px;
  display: block;
}

.brand-panel-rule {
  width: 48px;
  height: 2px;
  background: var(--brand-green);
  margin: 0 auto 16px;
}

.about-brand-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-detail h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}

.about-detail h2 em {
  color: var(--brand-blue);
  font-style: normal;
}

.about-lede {
  color: #4a5c66;
  font-size: clamp(15px, 0.92rem + 0.25vw, 17px);
  line-height: 1.7;
  margin: 0 0 36px;
}

.value-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 38px;
}

.value-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: 6px;
  border-left: 3px solid var(--brand-green);
}

.point-number {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}

.value-point h3 {
  margin: 0 0 6px;
  font-size: clamp(15px, 0.92rem + 0.2vw, 17px);
  color: var(--navy);
  font-weight: 700;
}

.value-point p {
  margin: 0;
  font-size: clamp(14px, 0.85rem + 0.15vw, 15px);
  color: #50636e;
  line-height: 1.55;
}

/* Contacto: Detail & Formulario */
.contact-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-aside {
  padding-right: 20px;
}

.aside-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-green);
  margin-bottom: 16px;
}

.contact-aside > span {
  display: block;
  font-size: clamp(11.5px, 0.72rem + 0.15vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.contact-aside > p {
  color: #4a5c66;
  font-size: clamp(15px, 0.92rem + 0.25vw, 17px);
  line-height: 1.7;
  margin: 0 0 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-details a,
.contact-details address {
  font-style: normal;
  display: block;
  color: var(--navy);
  font-size: clamp(14.5px, 0.9rem + 0.15vw, 16px);
  line-height: 1.5;
  transition: color 0.18s ease;
}

.contact-details a:hover {
  color: var(--brand-green-hover);
}

.contact-details span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue) !important;
  font-weight: 600;
  font-size: 13.5px !important;
  margin-top: 6px;
}

.map-link:hover {
  color: var(--brand-blue-hover) !important;
  text-decoration: underline;
}

/* Formulario de Contacto (Blindado anti-zoom con font-size: 16px) */
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: 38px 34px;
  box-shadow: var(--panel-shadow);
}

.contact-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.contact-form label .required {
  color: #e53e3e;
  margin-left: 3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #d9e1e5;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 16px; /* CRÍTICO: 16px evita auto-zoom en iOS Safari */
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa7ad;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(80, 173, 60, 0.16);
}

/* Casilla de Privacidad */
.privacy-box {
  margin: 0 0 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #50636e;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--brand-green);
  cursor: pointer;
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  color: #77868e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Notice Dialog (Modal de confirmación) */
.notice-dialog {
  border: 0;
  border-radius: 8px;
  padding: 34px;
  max-width: 520px;
  width: calc(100% - 32px);
  background: white;
  box-shadow: 0 24px 54px rgba(23, 60, 88, 0.24);
  color: var(--ink);
}

.notice-dialog::backdrop {
  background: rgba(23, 60, 88, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-content {
  position: relative;
}

.dialog-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--navy);
}

.dialog-content h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.dialog-content p {
  color: #50636e;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dialog-footer-text {
  font-size: 12.5px !important;
  color: #8c9ba2 !important;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 0 !important;
}

/* Site Footer */
.site-footer {
  background: #f5f7f7;
  color: var(--navy);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 24px;
  border-bottom: 1px solid #dfe5e8;
}

.brand-footer .brand-logo {
  width: 170px;
  height: 34px;
}

.footer-top > p {
  margin: 0;
  font-size: clamp(13px, 0.8rem + 0.15vw, 14px);
  color: var(--muted);
  font-weight: 500;
}

.back-top {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
  transition: color 0.18s ease;
}

.back-top:hover {
  color: var(--brand-green-hover);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #dfe5e8;
}

.footer-contact > p {
  margin: 0;
  font-size: clamp(13px, 0.8rem + 0.15vw, 14px);
  color: #50636e;
  max-width: 320px;
}

.footer-contact-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  font-size: clamp(13px, 0.8rem + 0.15vw, 14px);
}

.footer-contact-links a,
.footer-contact-links address {
  font-style: normal;
  color: var(--navy);
  transition: color 0.18s ease;
}

.footer-contact-links a:hover {
  color: var(--brand-green-hover);
}

.footer-contact-links span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: clamp(12.5px, 0.78rem + 0.15vw, 13.5px);
  color: var(--muted);
}

.footer-bottom a {
  margin-left: 18px;
  transition: color 0.18s ease;
}

.footer-bottom a:hover {
  color: var(--navy);
}

/* =========================================================
   Botón Flotante WhatsApp 3D Oficial (Ultra-Premium & Táctil)
   ========================================================= */

/* =========================================================
   RESPONSIVE DESIGN (Tablets y Smartphones)
   ========================================================= */

@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }
  .main-nav {
    gap: 20px;
    font-size: 13.5px;
  }
  .home-page .hero-copy {
    width: min(520px, 64%);
  }
  .home-page .hero-copy h1 {
    font-size: clamp(34px, 4.6vw, 42px);
  }
  .project-showcase {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .showcase-info {
    padding: 32px;
  }
  .about-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-contact-links {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 72px;
  }
  .brand-logo {
    width: 155px;
    height: 31px;
  }

  /* Menú Móvil Desplegable */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: auto;
    height: auto;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 28px;
    gap: 16px;
    box-shadow: 0 16px 36px rgba(23, 60, 88, 0.14);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    font-size: 15px;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a:not(.nav-cta) {
    padding: 8px 0;
    border-bottom: 1px solid var(--surface);
  }
  .nav-cta {
    justify-content: center;
    width: 100%;
  }

  /* Home Hero en Móvil (Evitar recortes de fachada Altiva) */
  .home-page .hero-full {
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero-picture {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3713 / 3569;
    height: auto;
    max-height: 440px;
  }
  .hero-image {
    position: absolute;
    inset: 0;
    object-position: center top;
  }
  .hero-shade {
    display: none;
  }
  .home-page .hero-inner {
    padding: 28px 0 20px;
  }
  .home-page .hero-copy {
    width: 100%;
  }
  .home-page .hero-copy h1 {
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.06;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 0 22px;
  }
  .hero-bottom > span {
    text-align: center;
  }
  .showcase-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .showcase-actions {
    flex-direction: column;
  }
  .showcase-actions .button,
  .showcase-actions .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 24px 18px;
  }

  /* Footer en móvil con padding inferior para no tapar WhatsApp */
  .site-footer {
    padding-bottom: 84px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-contact-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom div {
    display: flex;
    gap: 16px;
  }
  .footer-bottom a {
    margin-left: 0;
  }

  
}

@media (max-width: 480px) {
  .home-page .hero-copy .button-primary {
    width: 100%;
    justify-content: center;
  }

  .brochure-page {
    padding-top: 38px;
  }

  .brochure-viewer {
    width: calc(100% - 32px);
  }

  .brochure-empty {
    min-height: 220px;
    padding: 32px 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .hero-brochure-link {
    width: 100%;
  }
}

/* Acceso discreto y constante a WhatsApp. */
.whatsapp-float {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 5px 18px rgba(23, 60, 88, 0.24);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 60, 88, 0.3);
}
.whatsapp-float:active { transform: scale(.97); }
.whatsapp-float-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.whatsapp-float-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  transform: translateY(-50%) translateX(5px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(15,23,42,.96);
  box-shadow: 0 10px 25px rgba(0,0,0,.26);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.whatsapp-float:hover .whatsapp-float-tooltip { transform: translateY(-50%) translateX(0); opacity: 1; }
@media (max-width: 768px) {
  .whatsapp-float {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-tooltip { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
