/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFD60A;
  --black: #0A0A0A;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-500: #737373;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #fff;
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.4);
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 48px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.header__logo img { height: 28px; border-radius: 6px; }

.header__nav {
  display: flex;
  gap: 36px;
}

.header__nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000;
  transition: color var(--transition);
}

.header__nav a:hover { color: var(--gray-500); }

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 823px;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}


.hero__cta {
  border-radius: 999px;
}

.hero__video-wrap {
  border-radius: 40px;
  overflow: hidden;
  height: 480px;
  margin-right: 2rem;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CARRUSEL ===== */
.carrusel {
  padding: 56px 0;
  background: #fff;
}

.carrusel__inner {
  position: relative;
}

.carrusel__track-wrap {
  overflow: hidden;
  width: 100%;
  contain: layout style;
}

.carrusel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carrusel__slide {
  flex: none;
  height: clamp(180px, 20vw, 260px);
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
}

.carrusel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.carrusel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition), background var(--transition);
}

.carrusel__btn:hover {
  background: var(--gray-100);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.carrusel__btn--prev { left: -22px; }
.carrusel__btn--next { right: -22px; }

.carrusel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carrusel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carrusel__dot.active {
  background: var(--black);
  transform: scale(1.35);
}

/* ===== SERVICIOS ===== */
.servicios {
  padding: 80px 0;
  background: var(--gray-100);
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}


/* ===== PRESUPUESTOS ===== */
.presupuestos {
  padding: 80px 0;
  background: var(--gray-100);
}

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

.presupuestos__photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.presupuestos__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}

.presupuestos__intro {
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.7;
}

.presupuestos__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.presupuestos__list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.list-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--yellow);
  min-width: 40px;
  line-height: 1;
  padding-top: 2px;
}

.presupuestos__list strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.presupuestos__list p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== TESTIMONIO ===== */
.testimonio {
  padding: 80px 0;
}

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

.testimonio__quote {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
}

.testimonio__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow);
  border-radius: 2px;
}

.testimonio__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonio__author-info strong {
  display: block;
  font-weight: 800;
}

.testimonio__author-info span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.testimonio__photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}


/* ===== CONNECT ===== */
.connect {
  padding: 100px 0;
}

.connect__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.connect__inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

.connect__inner p {
  color: var(--gray-500);
  max-width: 420px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: #fff;
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo img { border-radius: 4px; }

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.9rem;
  color: #a3a3a3;
  transition: color var(--transition);
}

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

.footer__copy {
  font-size: 0.85rem;
  color: #737373;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ===== RESPONSIVE ≤768px — tablet + mobile ===== */
@media (max-width: 768px) {

  /* Header — logo tablet */
  .header__logo img { height: 36px; width: auto; max-width: 150px; }

  /* Header — hamburger */
  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .header__nav.open { display: flex; }
  .header__hamburger { display: flex; }

  /* Section padding */
  .servicios,
  .presupuestos,
  .testimonio { padding: 56px 0; }
  .connect { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }

  /* Hero — una columna */
  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 52px;
    align-items: flex-start;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__video-wrap {
    width: 100%;
    height: 260px;
    border-radius: 32px;
    margin-right: 0;
  }

  /* Carrusel — flechas adentro */
  .carrusel__btn--prev { left: 8px; }
  .carrusel__btn--next { right: 8px; }
  .carrusel__btn { background: rgba(255, 255, 255, 0.92); }

  /* Servicios — 2 columnas si entra, sino 1 */
  .servicios__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Presupuestos */
  .presupuestos__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .presupuestos__photo img { height: 280px; }

  /* Testimonio */
  .testimonio__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .testimonio__photo { order: -1; }
  .testimonio__photo img { height: 260px; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__nav { justify-content: center; }

  /* WA float */
  .wa-float {
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ===== RESPONSIVE ≤480px — mobile ===== */
@media (max-width: 480px) {

  .container { padding: 0 16px; }
  .header__inner { height: 79px; }
  .header__logo img { height: 18px; width: auto; max-width: 78px; }
  .section-title { font-size: 1.5rem; margin-bottom: 24px; }

  /* Hero */
  .hero { padding-top: 99px; padding-bottom: 32px; }
  .hero__title { font-size: clamp(1.35rem, 6.5vw, 1.65rem); margin-bottom: 14px; }
  .hero__cta { padding: 11px 22px; font-size: 0.85rem; }
  .hero__video-wrap { height: 200px; border-radius: 24px; }

  /* Carrusel */
  .carrusel { padding: 36px 0; }

  /* Servicios */
  .servicios { padding: 40px 0; }
  .servicios__grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }

  /* Presupuestos */
  .presupuestos { padding: 40px 0; }
  .presupuestos__content h2 { font-size: 1.75rem; }
  .presupuestos__intro { margin-bottom: 24px; }
  .presupuestos__photo img { height: 220px; }

  /* Testimonio */
  .testimonio { padding: 40px 0; }
  .testimonio__quote { font-size: 1rem; }
  .testimonio__photo img { height: 220px; }

  /* Connect */
  .connect { padding: 48px 0; }
  .connect__inner h2 { font-size: 1.75rem; }

  /* Footer */
  .footer { padding: 32px 0; }

  /* WA float */
  .wa-float {
    bottom: 16px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
  .wa-float svg { width: 24px; height: 24px; }
}
