/* ========================================
   CARDA — Estilos v3
   Tipografía más negrita · Logo mejorado · Reformas del hogar
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@700;800;900&display=swap');

:root {
  --teal:        #2abcdc;
  --teal-dark:   #1a9ab8;
  --teal-deeper: #0d6478;
  --teal-light:  #e1f6fb;
  --teal-mid:    #9de4f5;
  --white:       #ffffff;
  --gray-light:  #f1f3f5;
  --gray-mid:    #dde1e8;
  --gray:        #9199a8;
  --dark:        #111418;
  --dark-mid:    #1c2230;
  --text:        #252b35;
  --text-light:  #636b7a;

  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-md:   0 10px 32px rgba(0,0,0,0.12);
  --shadow-teal: 0 8px 28px rgba(42,188,220,0.32);

  --font-head:  'Barlow', 'Segoe UI', sans-serif;
  --font-cond:  'Barlow Condensed', 'Impact', sans-serif;
  --font-body:  'Barlow', 'Segoe UI', sans-serif;

  --header-h: 80px;
  --max-w:    1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.98);
  border-bottom: 1.5px solid var(--gray-mid);
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border-bottom-color: transparent;
}

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

/* ── LOGO ── El logo tiene fondo blanco → le damos contexto visual */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.logo-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--teal-mid);
  box-shadow: 0 2px 10px rgba(42,188,220,0.18);
  background: var(--white);
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-left: 10px;
}
.logo-name {
  font-family: var(--font-cond);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-transform: uppercase;
}
.logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1px;
}

/* Logo footer */
.logo-img--footer {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  display: block;
}
.logo-name--footer { color: var(--white); }
.logo-sub--footer { color: rgba(255,255,255,0.45); }

/* ── NAV ── */
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.22s;
  border-radius: 2px;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.active { color: var(--teal-dark); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--dark); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-teal);
}
.btn--outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--gray-mid); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--white { background: var(--white); color: var(--teal-deeper); border-color: var(--white); font-weight: 800; }
.btn--white:hover { background: var(--teal-light); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.btn--large { padding: 15px 36px; font-size: 0.9rem; }

/* ========================================
   HERO — Split layout
   ======================================== */
.hero {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 54% 46%;
}

.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px max(28px, calc((100vw - var(--max-w)) / 2 + 28px));
  background: var(--white);
  position: relative;
}
/* Línea decorativa izquierda */
.hero__content::before {
  content: '';
  position: absolute;
  left: max(0px, calc((100vw - var(--max-w)) / 2));
  top: 15%; bottom: 15%;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--teal), transparent);
  border-radius: 2px;
}

.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deeper);
  background: var(--teal-light); padding: 6px 14px;
  border-radius: 100px; margin-bottom: 24px; width: fit-content;
}
.hero__tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.hero__title {
  font-family: var(--font-cond);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero__title span { color: var(--teal); }

.hero__text {
  font-size: 1.05rem; font-weight: 500;
  color: var(--text-light);
  max-width: 440px; margin-bottom: 36px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__trust {
  display: flex; align-items: center; gap: 24px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1.5px solid var(--gray-mid);
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-num {
  font-family: var(--font-cond); font-size: 1.8rem;
  font-weight: 900; color: var(--teal); line-height: 1;
}
.hero__trust-label { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.hero__trust-sep { width: 1px; height: 40px; background: var(--gray-mid); }

.hero__image { position: relative; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, transparent 25%);
}
.hero__image-caption {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(17,20,24,0.75); backdrop-filter: blur(8px);
  color: var(--white); padding: 12px 18px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid var(--teal);
}
.hero__image-caption-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ========================================
   STRIP — Franja de especialidades
   ======================================== */
.strip { background: var(--dark-mid); padding: 18px 0; }
.strip__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.strip__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.strip__item svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }
.strip__sep { color: rgba(255,255,255,0.15); font-size: 1.1rem; }

/* ========================================
   ABOUT — Con imagen y badge
   ======================================== */
.about { background: var(--gray-light); padding: 100px 0; }
.about__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.about__image-wrap { position: relative; }
.about__image {
  width: 100%; height: 500px;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }

.about__image-badge {
  position: absolute; bottom: -24px; right: -20px;
  background: var(--teal); color: var(--white);
  border-radius: var(--radius-lg); padding: 22px 26px;
  box-shadow: var(--shadow-teal); text-align: center;
  border: 3px solid var(--white);
}
.about__image-badge-num {
  font-family: var(--font-cond); font-size: 2.6rem; font-weight: 900; line-height: 1;
}
.about__image-badge-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.85; margin-top: 5px;
}

.about__label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.about__label::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--teal); border-radius: 1px;
}

.about__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 900;
  color: var(--dark); line-height: 1.2; margin-bottom: 20px;
}
.about__text {
  font-size: 1rem; font-weight: 500;
  color: var(--text-light); line-height: 1.8; margin-bottom: 36px;
}
.about__stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1.5px solid var(--gray-mid);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat__num {
  font-family: var(--font-cond); font-size: 2.2rem;
  font-weight: 900; color: var(--teal); line-height: 1;
}
.stat__label { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* ========================================
   SERVICES PREVIEW
   ======================================== */
.services-preview { background: var(--white); padding: 100px 0; }

.section__header { margin-bottom: 52px; }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900;
  color: var(--dark); line-height: 1.2; margin-top: 10px;
}

.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; margin-bottom: 48px;
}
.service-card {
  background: var(--white); border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-lg); padding: 32px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--teal); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--teal-mid); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--teal-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 20px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.service-card__text { font-size: 0.875rem; font-weight: 500; color: var(--text-light); line-height: 1.65; }
.services-preview__cta { text-align: center; }

/* ========================================
   GALLERY STRIP
   ======================================== */
.gallery-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  height: 270px; overflow: hidden;
}
.gallery-strip__item { position: relative; overflow: hidden; }
.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-strip__item:hover img { transform: scale(1.08); }
.gallery-strip__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,100,120,0.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-strip__label {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white);
  opacity: 0; transform: translateY(6px); transition: all 0.3s;
}
.gallery-strip__item:hover .gallery-strip__label { opacity: 1; transform: translateY(0); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative; background: var(--teal-deeper);
  overflow: hidden; padding: 96px 0;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section::after {
  content: ''; position: absolute;
  top: -100px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(42,188,220,0.10);
}
.cta-section__inner { text-align: center; position: relative; z-index: 1; }
.cta-section__content { max-width: 580px; margin: 0 auto; }
.cta-section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900;
  color: var(--white); margin-bottom: 16px; line-height: 1.15;
}
.cta-section__text {
  font-size: 1.05rem; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.7;
}

/* ========================================
   PAGE HERO (servicios.html)
   ======================================== */
.page-hero {
  margin-top: var(--header-h);
  padding: 80px 0 64px;
  position: relative; background: var(--dark);
  overflow: hidden; min-height: 340px; display: flex; align-items: center;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&q=80') center/cover;
  opacity: 0.14;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 700px; }
.about__label--light { color: var(--teal); }
.about__label--light::before { background: var(--teal); }
.page-hero__title {
  font-family: var(--font-cond);
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900;
  line-height: 1.05; color: var(--white); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.page-hero__text {
  font-size: 1.05rem; font-weight: 500;
  color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 520px;
}

/* ========================================
   SERVICES FULL (servicios.html)
   ======================================== */
.services-full { background: var(--white); padding: 90px 0; }
.services-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.service-full-card {
  background: var(--white); border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-full-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.service-full-card__img { width: 100%; height: 210px; overflow: hidden; position: relative; }
.service-full-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-full-card:hover .service-full-card__img img { transform: scale(1.06); }

.service-full-card__body { padding: 28px 28px 32px; }
.service-full-card__num {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.service-full-card__title { font-size: 1.15rem; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.service-full-card__text { font-size: 0.875rem; font-weight: 500; color: var(--text-light); line-height: 1.72; margin-bottom: 20px; }
.service-full-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 800; color: var(--teal-dark);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: gap 0.2s;
}
.service-full-card__link:hover { gap: 10px; }
.service-full-card__link svg { width: 15px; height: 15px; }

/* ========================================
   WHY US
   ======================================== */
.why-us { background: var(--gray-light); padding: 80px 0; }
.why-us__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: center; }
.why-us__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 900;
  color: var(--dark); line-height: 1.25;
}
.why-us__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item__icon {
  width: 38px; height: 38px; background: var(--teal-light);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--teal-dark);
}
.why-item__icon svg { width: 19px; height: 19px; }
.why-item__title { font-size: 0.9rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.why-item__text { font-size: 0.82rem; font-weight: 500; color: var(--text-light); line-height: 1.65; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--dark); }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr auto 1fr;
  align-items: start; gap: 52px;
  padding-top: 64px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__tagline { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.38); max-width: 220px; line-height: 1.6; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 6px;
}
.footer__link { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__link:hover { color: var(--white); }
.footer__contact-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px;
}
.footer__email {
  font-size: 1rem; color: var(--teal); font-weight: 700;
  display: block; margin-bottom: 16px; transition: color 0.2s;
}
.footer__email:hover { color: var(--teal-mid); }
.footer__bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.25); letter-spacing: 0.03em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { padding: 72px 28px; }
  .hero__content::before { display: none; }
  .hero__image { display: none; }
  .about__inner { gap: 52px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-us__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }

  .nav {
    display: none; position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column;
    align-items: flex-start; gap: 0; padding: 12px 0;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }
  .nav.open { display: flex; }
  .nav__link { width: 100%; padding: 15px 28px; font-size: 0.95rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin: 12px 28px 8px; width: calc(100% - 56px); justify-content: center; }
  .hamburger { display: flex; }

  .about__inner { grid-template-columns: 1fr; }
  .about__image { height: 300px; }
  .about__image-badge { right: 12px; bottom: -16px; }
  .about__stats { gap: 24px; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-full-grid { grid-template-columns: 1fr; }

  .gallery-strip { grid-template-columns: 1fr 1fr; height: 300px; }
  .strip__inner { justify-content: center; gap: 10px; }
  .strip__sep { display: none; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .why-us__grid { grid-template-columns: 1fr; }

  .logo-img { height: 54px; width: 54px; }
  .logo-name { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .gallery-strip { grid-template-columns: 1fr 1fr; height: 200px; }
  .hero__trust { flex-wrap: wrap; gap: 16px; }
  .hero__trust-sep { display: none; }
}
