/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  position: relative;
}

/* Marca (Logo + Nombre) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__logo {
  width: 200px;
  height: auto;
  display: block;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Navegación (escritorio) */
.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: #333;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 0.95rem;
}

.nav__link:hover,
.nav__link:focus {
  background: #f2f2f2;
  outline: none;
}

.nav__link:active {
  color: #0066cc;
}

/* Botón iniciar sesión */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.login-btn:hover,
.login-btn:focus {
  opacity: 0.7;
  outline: none;
}

.login-btn__icon {
  width: 28px;
  height: auto;
  display: block;
}

/* Botón hamburguesa (oculto en escritorio) */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animación estado activo hamburguesa */
.nav__toggle.is-active .nav__bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active .nav__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle.is-active .nav__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============ RESPONSIVE: MÓVIL ============ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav__menu.nav__menu--open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .login-btn {
    position: relative;
    z-index: 60;
  }
}

/* ============ HERO SECTION ============ */
.hero {
  background: #1a1a1a;
  padding: 100px 16px;
  text-align: center;
  margin: 0 -16px;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 16px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}

/* ============ ABOUT SECTION ============ */
.about {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.about__content {
  padding: 0 16px;
}

.about__title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
  text-align: center;
}

.about__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

@media (max-width: 768px) {
  .about {
    padding: 40px 0;
  }

  .about__title {
    font-size: 1.5rem;
  }

  .about__text {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* ============ VALUES SECTION ============ */
.values {
  padding: 60px 16px;
  background: #fafafa;
  margin: 40px -16px 0;
}

.values__title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 40px;
}

.values__carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.carousel__container {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(.22, .9, .35, 1);
}

/* Cada imagen ocupa exactamente el ancho visible del carrusel */
.carousel__image {
  flex: 0 0 100%;
  width: 100%;
  height: 800px;
  /* ajusta altura deseada */
  object-fit: cover;
  display: block;
}

/* Botones */
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  font-size: 1.4rem;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__prev {
  left: 12px;
}

.carousel__next {
  right: 12px;
}

.carousel__prev:hover,
.carousel__next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Indicadores (opcionales) */
.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 12;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.carousel__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel__image {
    height: 300px;
  }

  .carousel__prev,
  .carousel__next {
    font-size: 1.1rem;
    padding: 8px 10px;
  }
}

/* ============ PROCESS SECTION ============ */
.process {
  padding: 60px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.process__title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 50px;
  padding: 0 16px;
}

.process__step {
  margin-bottom: 60px;
  border-left: 4px solid #222;
  padding-left: 24px;
  padding-right: 16px;
}

.process__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.process__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 24px;
}

.process__images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}


.process__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  display: block;
}

.process__image--contain {
  object-fit: contain;
  background: #fff;
  aspect-ratio: 1 / 1;
  padding: 10px;
  box-sizing: border-box;
}

@supports not (aspect-ratio: 1/1) {
  .process__image {
    height: 200px;
  }
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .process__images {
    grid-template-columns: 1fr;
  }

  .process__image {
    max-height: 450px;
    aspect-ratio: 16 / 9;
  }

  .process__image--contain {
    aspect-ratio: 1 / 1;
  }
}

/* ============ MAIN ============ */
main.container {
  padding: 40px 0;
  min-height: 60vh;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #fafafa;
  border-top: 1px solid #e6e6e6;
  padding: 40px 0;
  margin-top: 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  width: 200px;
  height: auto;
}

.footer__title {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.footer__note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social a:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.social img {
  width: 20px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 16px;
  }

  .footer__logo {
    width: 60px;
  }

  .social {
    gap: 12px;
  }

  .social a {
    width: 32px;
    height: 32px;
  }

  .social img {
    width: 18px;
  }
}

/* Hero específico para sobre.html (no toca index) */
.hero.hero--about {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.35)),
    url('img/fondo.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px;
  min-height: 600px;
  margin: 0 -16px;
  text-align: center;
}

.hero.hero--about .hero__title {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .hero.hero--about {
    padding: 70px 12px;
    min-height: 240px;
  }

  .hero.hero--about .hero__title {
    font-size: 1.5rem;
  }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* Tarjeta */
.catalog-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

/* Imagen centrada y grande */
.catalog-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fafafa;
}

.catalog-image-wrapper img {
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contenido */
.catalog-info {
  padding: 16px;
  text-align: center;
}

.catalog-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.catalog-info p {
  font-size: .95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .catalog-image-wrapper img {
    height: 220px;
  }
}

.cta-whatsapp {
  background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
  padding: 4rem 1rem;
  margin: 4rem 0;
  text-align: center;
  border-radius: 12px;
}

.cta-whatsapp__title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-whatsapp__text {
  color: #d1d1d1;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-whatsapp__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25d366;
  color: #000;
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-whatsapp__btn img {
  width: 24px;
  height: 24px;
}

.cta-whatsapp__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


/* Badge */
.catalog-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 26, 26, .88);
  color: #fff;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .2px;
}


/* Acciones */
.catalog-actions {
  margin-top: 6px;
  display: flex;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: #25d366;
  color: #111;
  font-weight: 800;
  padding: .85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-wa img {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(37, 211, 102, .35);
  filter: saturate(1.05);
}

/* =========================================================
   CARRUSEL: 1 CARD POR VISTA + CARD HORIZONTAL 50/50
   ========================================================= */

/* Contenedor general del carrusel */
.catalog-carousel {
  max-width: 1100px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

/* Ventana: solo muestra 1 card */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track scrolleable */
.carousel-track {
  display: flex;
  gap: 0;
  /* clave: sin espacio entre cards */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* clave: “encaja” de card a card */
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Cada card ocupa 100% del viewport (1 por vista) */
.carousel-track .catalog-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

/* Flechas */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
  user-select: none;
}

.carousel-btn:hover {
  transform: scale(1.06);
}

/* ================= CARD HORIZONTAL 50/50 ================= */

.catalog-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 50/50 */
  border: 1px solid #eaeaea;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

/* Imagen lado izquierdo */
.catalog-media {
  min-height: 440px;
  background: #f6f6f6;
  display: flex;
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* recorta bonito y llena el lado izquierdo */
  display: block;
}

/* Info lado derecho */
.catalog-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.catalog-info h3 {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.1;
}

.catalog-info p {
  margin: 0;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.65;
  max-width: 56ch;
}

/* Botón WhatsApp grande */
.catalog-actions {
  margin-top: 10px;
  display: flex;
}

.btn-wa {
  width: 100%;
  max-width: 440px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: #25d366;
  color: #111;
  font-weight: 900;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 12px 26px rgba(37, 211, 102, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-wa img {
  width: 22px;
  height: 22px;
  display: block;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 211, 102, .35);
  filter: saturate(1.05);
}

/* ============ Responsive: móvil apila (1 card sigue siendo 1 vista) ============ */
@media (max-width: 768px) {
  .catalog-card {
    grid-template-columns: 1fr;
    /* apila */
  }

  .catalog-media {
    min-height: 260px;
  }

  .catalog-info {
    padding: 20px;
  }

  .catalog-info h3 {
    font-size: 1.4rem;
  }

  .btn-wa {
    max-width: 100%;
  }
}

/* Icono previo al logo */
.brand__icon {
  width: 70px;
  height: auto;
  display: block;
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .brand__icon {
    width: 50px;
  }
}
