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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
}

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

/* ================================
   HEADER — Mobile first
================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  min-height: 64px;
  height: auto;
  background-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Título centrado absolutamente */
.header__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  max-width: 40%;
}

.header__title-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(0.55rem, 2.2vw, 0.85rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: normal;
  word-break: break-word;
  display: block;
  line-height: 1.3;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 201;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

/* ================================
   HAMBURGER BUTTON
================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Estado activo: forma una X */
.hamburger.is-active .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   NAVEGACIÓN — Mobile (drawer)
================================ */
.header__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* deja espacio al header aunque crezca */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #e94560;
  border-bottom-color: #e94560;
}

/* ================================
   SECCIONES — Mobile first
================================ */
.section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
}

.section__content {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.section__content h1,
.section__content h2 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Inicio */
.section--inicio {
  background-color: #ffffff;
}

.inicio__titulo {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.inicio__subtitulo {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: #2c2c54;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.inicio__parrafo {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #666;
  line-height: 1.8;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.75rem 1.6rem;
  background-color: #25d366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp__icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

.section--inicio h1 {
  font-size: 2rem;
  color: #1a1a2e;
}

/* Servicios */
.section--servicios {
  background-color: #f0f4ff;
}

.servicios__titulo {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #1a1a2e;
  margin-bottom: 2.5rem;
}

/* Grid de tarjetas — mobile: 1 columna */
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.servicio__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.servicio__icono {
  font-size: 2rem;
  line-height: 1;
}

.servicio__nombre {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.servicio__card p {
  font-size: clamp(0.88rem, 1.8vw, 0.97rem);
  color: #555;
  line-height: 1.75;
  margin: 0;
}

.servicio__cta {
  font-style: italic;
  color: #444 !important;
  border-left: 3px solid #e94560;
  padding-left: 0.8rem;
}

.servicio__garantia {
  font-weight: 600;
  color: #1a7a40 !important;
}

/* CTA final */
.servicios__cta-final {
  background-color: #1a1a2e;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.servicios__cta-pregunta {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
}

.servicios__cta-texto {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: #bbb;
  max-width: 480px;
}

/* Contacto */
.section--contacto {
  background-color: #ffffff;
}

.contacto__titulo {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.contacto__subtitulo {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #777;
  margin-bottom: 2rem;
}

/* Formulario */
.contacto__form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: 0.3px;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background-color: #f8f9ff;
  border: 1.5px solid #d0d7f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form__input:focus {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
  background-color: #fff;
}

.form__input::placeholder {
  color: #aaa;
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 2rem;
  background-color: #1a1a2e;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.25);
}

.form__btn:hover,
.form__btn:focus {
  background-color: #e94560;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
}

.form__btn:active {
  transform: translateY(0);
}

.form__btn-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* ================================
   FOOTER — Mobile first
================================ */
.footer {
  background-color: #1a1a2e;
  color: #ccc;
  padding-top: 3rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.footer__brand {
  text-align: center;
}

.footer__logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.6rem;
}

.footer__description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aaa;
}

.footer__links,
.footer__contact {
  text-align: center;
}

.footer__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links ul li a,
.footer__contact ul li a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer__links ul li a:hover,
.footer__contact ul li a:hover {
  color: #e94560;
}

.footer__contact ul li {
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer__icon {
  font-size: 1rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.8rem;
  color: #666;
}

/* ================================
   BREAKPOINT: Tablet — 640px+
================================ */
@media (min-width: 640px) {
  .header {
    padding: 0 2rem;
  }

  .header__title-text {
    font-size: 1.05rem;
    letter-spacing: 2px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .servicios__grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .section--inicio h1 {
    font-size: 2.4rem;
  }

  .section--servicios h2,
  .section--contacto h2 {
    font-size: 2rem;
  }

  .section__content p {
    font-size: 1.05rem;
  }

  .footer__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 2rem 3rem;
  }

  .footer__brand {
    flex: 1 1 100%;
    text-align: left;
  }

  .footer__links,
  .footer__contact {
    flex: 1 1 160px;
    text-align: left;
  }

  .footer__contact ul li {
    justify-content: flex-start;
  }
}

/* ================================
   BREAKPOINT: Desktop — 1024px+
   El hamburger desaparece aquí
================================ */
@media (min-width: 1024px) {
  /* Ocultar hamburguesa */
  .hamburger {
    display: none;
  }

  /* Restaurar nav como barra horizontal dentro del flex del header */
  .header__nav {
    position: static;
    background: none;
    display: flex;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transform: none;
    height: 100%;
    padding-top: 0;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .nav-list {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
  }

  .header {
    min-height: 70px;
    height: 70px;
    padding: 0 3rem;
    flex-wrap: nowrap;
  }

  .header__title-text {
    font-size: 1.3rem;
    letter-spacing: 3px;
  }

  .section {
    padding: 5rem 3rem;
  }

  .section--inicio h1 {
    font-size: 3rem;
  }

  .section--servicios h2,
  .section--contacto h2 {
    font-size: 2.4rem;
  }

  .section__content p {
    font-size: 1.1rem;
  }

  .footer__brand {
    flex: 1 1 260px;
  }

  .footer__container {
    padding: 0 3rem 3rem;
  }
}

/* ================================
   BREAKPOINT: Wide — 1280px+
================================ */
@media (min-width: 1280px) {
  .section__content {
    max-width: 900px;
  }

  .footer__container {
    max-width: 1200px;
  }
}
