/* ==========================================================================
   DAHUTHI REFORMA Y REPARA — Hoja de Estilos Principal
   Identidad corporativa: Azul intenso, Azul marino, Blanco, Gris oscuro, Verde (jardinería)
   ========================================================================== */

:root {
  /* Colores corporativos */
  --navy-900: #08172b;
  --navy-800: #0b1f3a;
  --navy-700: #133159;
  --blue-600: #0052b4;
  --blue-500: #0a66d1;
  --blue-100: #e6f0fc;
  --charcoal-800: #2f353b;
  --charcoal-700: #424950;
  --green-700: #1f6323;
  --green-600: #2e7d32;
  --green-100: #e8f5e9;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Neutros */
  --white: #ffffff;
  --bg-tinted: #f4f7fb;
  --border-light: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #526071;

  /* Tipografías */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', Georgia, serif;

  /* Sombras y radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.16);
  --transition: 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);

  --header-height: 78px;
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--navy-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-md {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 0.98rem;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 82, 180, 0.28);
}

.btn--primary:hover {
  background-color: var(--navy-800);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.32);
}

.btn--green {
  background-color: var(--green-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.25);
}

.btn--green:hover {
  background-color: var(--green-700);
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-dark);
}

.btn--white {
  background-color: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  background-color: var(--blue-100);
}

.btn--outline-dark {
  background-color: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--outline-dark:hover {
  background-color: var(--navy-800);
  color: var(--white);
}

.btn--ghost-wa {
  background-color: #eefbf3;
  color: #167a3b;
  border-color: #c6efd6;
}

.btn--ghost-wa:hover {
  background-color: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--white);
}

/* ==========================================================================
   CABECERA (HEADER)
   ========================================================================== */
.top-bar {
  background-color: var(--navy-800);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  padding: 8px 0;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__phrase {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__phrase svg {
  color: #5bb0ff;
}

.top-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.top-bar__phone:hover {
  color: #7cc2ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.10);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
}

/* Logotipo DAHUTHI */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.brand__mark {
  width: 84px;
  height: auto;
  margin-bottom: 2px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.08em;
  color: var(--navy-800);
}

.brand__sub {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--blue-600);
  margin-top: -1px;
}

.brand--light .brand__name {
  color: var(--white);
}

.brand--light .brand__sub {
  color: #6ab7ff;
}

/* Navegación */
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--blue-600);
  border-radius: 2px;
  transition: width var(--transition);
}

.main-nav__link:hover,
.main-nav__link.active {
  color: var(--blue-600);
}

.main-nav__link:hover::after,
.main-nav__link.active::after {
  width: 100%;
}

.main-nav__mobile-cta {
  display: none;
}

.header__cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--blue-100);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color var(--transition), color var(--transition);
}

.header__phone-pill svg {
  color: var(--blue-600);
}

.header__phone-pill:hover {
  background-color: var(--navy-800);
  color: var(--white);
}

.header__phone-pill:hover svg {
  color: #6ab7ff;
}

/* Botón menú móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle__line {
  width: 100%;
  height: 2.5px;
  background-color: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   PORTADA PRINCIPAL (HERO)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 23, 43, 0.95) 0%, rgba(11, 31, 58, 0.84) 52%, rgba(0, 82, 180, 0.38) 100%),
    url('../img/hero-reforma.jpg') center right / cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 88px 20px 76px;
}

.hero__text {
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e6f2ff;
  margin-bottom: 22px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #46a6ff;
  box-shadow: 0 0 0 4px rgba(70, 166, 255, 0.28);
}

.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
  margin-bottom: 16px;
}

.hero__brand-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: 0.05em;
  color: var(--white);
}

.hero__brand-sub {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  color: #6ab7ff;
  margin-top: 2px;
}

.hero__slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.hero__description {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__quick-call {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  background: rgba(0, 82, 180, 0.55);
  border: 1px solid rgba(106, 183, 255, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color var(--transition), transform var(--transition);
}

.hero__phone-link:hover {
  background-color: var(--blue-600);
  transform: translateY(-1px);
}

/* Barra de valores al pie del Hero */
.hero-trust-bar {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.hero-trust-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--blue-600);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section--tinted {
  background-color: var(--bg-tinted);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  background-color: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-tag--light {
  background-color: rgba(255, 255, 255, 0.14);
  color: #8ccaff;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy-800);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.section-header--light .section-title {
  color: var(--white);
}

.section-header--light .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SOBRE NOSOTROS
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.about__img-wrap img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.about__floating-card {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--navy-800);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--blue-500);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__floating-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ccaff;
  font-weight: 700;
}

.about__floating-phone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--white);
}

.about__lead {
  font-size: 1.08rem;
  color: var(--navy-800);
  margin-bottom: 14px;
}

.about__text {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.about__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-tinted);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.pillar-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-item__icon svg {
  width: 20px;
  height: 20px;
}

.pillar-item__icon--green {
  background-color: var(--green-100);
  color: var(--green-600);
}

.pillar-item h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 2px;
}

.pillar-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__media {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
}

.service-card__icon {
  position: absolute;
  bottom: 14px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

/* Identificadores de color por servicio (fieles a la imagen de marca) */
.service-card--blue .service-card__icon {
  background-color: var(--blue-600);
}
.service-card--blue {
  border-top: 4px solid var(--blue-600);
}

.service-card--dark .service-card__icon {
  background-color: var(--charcoal-800);
}
.service-card--dark {
  border-top: 4px solid var(--charcoal-800);
}

.service-card--green .service-card__icon {
  background-color: var(--green-600);
}
.service-card--green {
  border-top: 4px solid var(--green-600);
}
.service-card--green .service-card__title {
  color: var(--green-700);
}

.service-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-800);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.service-card__lead {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--blue-600);
  margin-bottom: 10px;
}

.service-card--green .service-card__lead {
  color: var(--green-600);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.service-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.service-card__actions .btn:first-child {
  flex: 1;
}

/* ==========================================================================
   POR QUÉ ELEGIRNOS (BLOQUE OSCURO CORPORATIVO)
   ========================================================================== */
.why-us {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--charcoal-800) 100%);
  color: var(--white);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.value-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(106, 183, 255, 0.45);
}

.value-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 82, 180, 0.35);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--white);
}

.value-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Banner intermedio */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cta-banner__eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: #b7dcff;
  margin-bottom: 4px;
}

.cta-banner__text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-bottom: 6px;
}

.cta-banner__text p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   GALERÍA DE TRABAJOS
   ========================================================================== */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.filter-btn--green:hover,
.filter-btn--green.active {
  background-color: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}


/* Bloques agrupados por categoría en la galería */
.gallery__groups {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.gallery-group.is-hidden {
  display: none;
}

.gallery-group__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border-light);
}

.gallery-group__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.gallery-group__subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.gallery-group__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-600);
  background-color: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-800);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item__btn {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item__btn:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 23, 43, 0.92) 0%, rgba(8, 23, 43, 0.35) 55%, rgba(8, 23, 43, 0.08) 100%);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  transition: background var(--transition);
}

.gallery-item__overlay--green {
  background: linear-gradient(to top, rgba(22, 74, 26, 0.92) 0%, rgba(22, 74, 26, 0.35) 55%, rgba(22, 74, 26, 0.08) 100%);
}

.gallery-item__cat {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8ccaff;
}

.gallery-item__overlay--green .gallery-item__cat {
  color: #a5e6a9;
}

.gallery-item__overlay strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.gallery-item__zoom {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}

.contact-card__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7cc2ff;
  margin-bottom: 8px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.contact-card__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact-phone-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  transition: background-color var(--transition);
}

.contact-phone-box:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-phone-box__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-phone-box__icon svg {
  width: 24px;
  height: 24px;
}

.contact-phone-box__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-phone-box__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.contact-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.location-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 16px;
}

.location-box__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(106, 183, 255, 0.16);
  color: #7cc2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-box__icon svg {
  width: 20px;
  height: 20px;
}

.location-box h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.location-box p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Formulario */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.contact-form__hint {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}

.form-group input[type='text'],
.form-group input[type='tel'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: #fbfdff;
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 82, 180, 0.12);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc2626;
}

.form-group textarea {
  resize: vertical;
  min-height: 115px;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 5px;
  min-height: 16px;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}

.link-inline {
  background: none;
  border: none;
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status--success {
  background-color: #ecfdf3;
  border: 1px solid #86efac;
  color: #14532d;
}

.form-status--error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status__wa-btn {
  margin-top: 12px;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 68px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.1fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand-col .brand {
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer__brand-col .brand__text {
  align-items: flex-start;
}

.footer__slogan {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #7cc2ff;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.74);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__mini {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 14px;
}

.footer__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.footer__legal-btn:hover {
  color: var(--white);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP, VOLVER ARRIBA Y BARRA MÓVIL
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 950;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform var(--transition), background-color var(--transition);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-dark);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  background-color: var(--navy-800);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 940;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--navy-800);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background-color var(--transition);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top:hover {
  background-color: var(--blue-600);
  transform: translateY(-3px);
}

.mobile-action-bar {
  display: none;
}

/* ==========================================================================
   MODALES (LIGHTBOX Y AVISO LEGAL)
   ========================================================================== */
.lightbox[hidden],
.legal-modal[hidden] {
  display: none;
}

.lightbox,
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox__backdrop,
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 23, 43, 0.88);
  backdrop-filter: blur(5px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  background: var(--navy-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.lightbox__figure img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  background: #06101e;
}

.lightbox__caption {
  padding: 18px 22px;
  color: var(--white);
}

.lightbox__caption h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.lightbox__caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox__close,
.legal-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy-800);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.lightbox__nav:hover {
  background: var(--blue-600);
}

.lightbox__nav--prev {
  left: -58px;
}

.lightbox__nav--next {
  right: -58px;
}

.legal-modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.legal-modal__close {
  top: 14px;
  right: 14px;
  background: var(--bg-tinted);
}

.legal-modal__content h3 {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: 1.35rem;
  margin-bottom: 16px;
  padding-right: 36px;
}

.legal-modal__body p {
  margin-bottom: 12px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.legal-modal__body h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  margin: 18px 0 8px;
}

/* ==========================================================================
   ANIMACIONES AL HACER SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================================
   DISEÑO RESPONSIVE (TABLET Y MÓVIL)
   ========================================================================== */
@media (max-width: 1080px) {
  .header__phone-pill {
    display: none;
  }
  .services__grid,
  
/* Bloques agrupados por categoría en la galería */
.gallery__groups {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.gallery-group.is-hidden {
  display: none;
}

.gallery-group__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border-light);
}

.gallery-group__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.gallery-group__subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.gallery-group__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-600);
  background-color: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox__nav--prev {
    left: 10px;
  }
  .lightbox__nav--next {
    right: 10px;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .header__cta-group {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 18px;
  }

  .main-nav__link {
    display: block;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }

  .main-nav__link:hover,
  .main-nav__link.active {
    background-color: var(--blue-100);
  }

  .main-nav__link::after {
    display: none;
  }

  .main-nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__floating-card {
    right: 14px;
    bottom: 14px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }

  .cta-banner__actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero__content {
    padding: 58px 20px 52px;
  }

  .hero-trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-trust-bar__item {
    justify-content: flex-start;
    font-size: 0.8rem;
  }

  .about__pillars,
  .services__grid,
  .why-us__grid,
  .gallery__grid,
  .form-row,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-card {
    padding: 26px 20px;
  }

  /* Barra móvil inferior de llamada + WhatsApp */
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -4px 18px rgba(8, 23, 43, 0.18);
  }

  .mobile-action-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--white);
  }

  .mobile-action-bar__btn--call {
    background-color: var(--blue-600);
  }

  .mobile-action-bar__btn--wa {
    background-color: var(--whatsapp-dark);
  }

  .whatsapp-float {
    bottom: 70px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }

  .back-to-top {
    bottom: 132px;
    right: 19px;
    width: 44px;
    height: 44px;
  }

  .site-footer {
    padding-bottom: 60px;
  }
}
