/* ========== RESET & FUENTE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', sans-serif;
}

/* ========== EFECTO MÁQUINA DE ESCRIBIR ========== */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid #fff;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink-caret 0.7s step-end infinite;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.typewriter-visible {
  opacity: 1;
}
#typewriter::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 4px;
  color: white;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fff; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== EFECTOS TARJETAS ========== */
.tarjeta-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  will-change: transform, box-shadow;
}
.tarjeta-hover:hover,
.tarjeta-hover:active {
  transform: translateY(-12px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8);
}

/* ========== EFECTO FLOTANTE ========== */
@keyframes flotarSuave {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.img-flotante {
  animation: flotarSuave 6s ease-in-out infinite;
  will-change: transform;
}

/* ========== ANIMACIONES EN SCROLL ========== */
.animate-up, .titulo-ubicacion {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.animate-up.show, .titulo-ubicacion.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MODAL ========== */
#modalImagen,
#modalCarrusel {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== CARRUSEL CARDS ========= */
.cardSwiper .swiper-slide {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
}
.cardSwiper .swiper-slide:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ========== FLECHAS PERSONALIZADAS ========== */
.custom-swiper-prev, .custom-swiper-next,
.multi-prev, .multi-next {
  width: 40px;
  height: 40px;
  background-image: url('./flecha_carrusel.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  cursor: pointer;
  pointer-events: all;
}
.custom-swiper-prev, .multi-prev {
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}
.custom-swiper-next, .multi-next {
  right: 0;
}

/* ========== BOTÓN CTA ========== */
.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('./flecha_carrusel.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.cta-button:hover::after {
  transform: translateY(-50%) translateX(4px);
  filter: brightness(0) invert(1);
}

/* ========== FORMULARIO FLOTANTE ========== */
.formulario-flotante {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  font-family: 'Montserrat', sans-serif;
}
.input-block {
  margin-bottom: 1.5rem;
}
.input-block label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #559F2C;
}
.input-block input,
.input-block select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.input-block input:focus,
.input-block select:focus {
  border-color: #559F2C;
  outline: none;
}
.checkbox-block {
  margin-top: 1.25rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #333;
}
.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 3px;
}
.checkbox-label a {
  color: #559F2C;
  text-decoration: underline;
}
.submit-btn {
  width: 100%;
  background-color: #559F2C;
  color: white;
  font-weight: 700;
  padding: 0.75rem;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: #3f7e22;
}
.confirmation-message {
  text-align: center;
  padding: 1.5rem;
  background-color: #e6f9ed;
  border: 1px solid #b2e2c1;
  border-radius: 0.75rem;
  color: #559F2C;
}

/* ========== FOOTER ========== */
.lp-footer {
  background: #559F2C;
  color: #fff;
  padding-top: 46px;
  font-family: 'Poppins', sans-serif;
}

.lp-footer a {
  color: #fff;
  text-decoration: none;
}

.lp-footer a:hover {
  text-decoration: underline;
}

.lp-footer__shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.lp-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 44px;
  align-items: start;
}

.lp-footer__brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.lp-footer__text p {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: .95;
}

.lp-footer__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
}

.lp-footer__book-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.lp-footer__book-link:hover {
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14));
}

.lp-footer__book-link img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 8px;
}

.lp-footer__book-link span {
  display: grid;
  gap: 4px;
}

.lp-footer__book-link strong {
  font-size: 15px;
  line-height: 1.15;
}

.lp-footer__book-link small {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.88;
}

.lp-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.lp-footer__list li,
.lp-footer__list a,
.lp-footer__list span {
  font-size: 13px;
  opacity: .95;
}

.lp-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.lp-footer__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.lp-footer__icon svg {
  width: 18px;
  height: 18px;
  fill: #559F2C;
}

.lp-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.lp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 13px;
  opacity: .95;
}

.lp-footer__sep {
  opacity: .65;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .formulario-flotante {
    padding: 1.5rem;
  }
  .lp-footer__top {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    padding-bottom: 22px;
  }
  .lp-footer__brand img {
    margin: 0 auto 12px;
  }
  .lp-footer__title {
    text-align: center;
  }
  .lp-footer__book-link {
    justify-content: center;
    text-align: left;
    max-width: 360px;
    margin: 0 auto 16px;
  }
  .lp-footer__list {
    justify-items: center;
  }
  .lp-footer__col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lp-footer__social {
    order: 99;
    margin-top: 18px;
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .cardSwiper .swiper-slide {
    height: 280px;
  }
  .swiper-slide img {
    height: 200px !important;
  }
  .lp-footer__shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .lp-footer__icon {
    width: 36px;
    height: 36px;
  }
  .lp-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

/* FORMULARIO RESPONSIVE PARA MOBILE */
@media (max-width: 1024px) {
  #sticky {
    position: static !important;
    margin-top: 2rem;
    width: 100% !important;
  }
  #sticky .formulario-flotante {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  #sticky .input-block input,
  #sticky .input-block select {
    font-size: 0.95rem;
  }
}
@media (max-width: 640px) {
  .formulario-flotante {
    padding: 1rem;
  }
  .submit-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .checkbox-label {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ========== LIBRO DE RECLAMACIONES ========== */
.footer .footer-book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  margin-top: 15px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: #ffffff;
  color: #0F9B39;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.footer .footer-book-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.plan-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fbf6 0%, #eef5ea 100%);
  border-bottom: 1px solid #dbe8d5;
}

.plan-carousel__hint {
  color: #47614a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.plan-carousel__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.planSwiper {
  background: #f7f7f7;
}

.plan-carousel__image {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.plan-prev,
.plan-next {
  position: static;
  width: 42px;
  height: 42px;
  margin: 0;
}

.plan-prev {
  transform: scaleX(-1);
}

.plan-next {
  transform: none;
}
