/*---------Buttons---------*/

/* ========== Prefers Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Botones base ===== */
.Button__Otros,
.Button__Contacto,
.Button__Whatsapp{
  /* Tipografía */
  font-family: "Work Sans";
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
  white-space: nowrap;
  word-break: keep-all;
  hyphens: none;

  /* Caja */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px;
  border-radius: 16px;
  border: none;
  width: fit-content;
  gap: 0;
  /* Animación */
  transition: background-color 200ms ease-in-out,
    padding 220ms cubic-bezier(0.22, 0.61, 0.36, 1);

  --pad-x: 16px;
  --gap: 8px;
  --arrow-w: 1.1em;
  --space: calc(var(--arrow-w) + var(--gap));

  padding-left: calc(var(--pad-x) + var(--space));
  padding-right: var(--pad-x);
}

/* ===== Botón WhatsApp (Hero / CTA principal) ===== */
.Button__Whatsapp {
  font-family: "Work Sans";
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  --pad-x: 16px;
  --gap: 8px;
  --arrow-w: 1.1em;
  --space: calc(var(--arrow-w) + var(--gap));

  padding-left: calc(var(--pad-x) + var(--space));
  padding-right: var(--pad-x);
  padding-block: 16px;

  border-radius: 16px;
  border: 3px solid #25d366;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;

  transition: background-color 200ms ease-in-out,
    padding 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Button__Whatsapp::after {
  content: "";
  flex: 0 0 var(--arrow-w);
  height: 1em;
  margin-left: var(--gap);
  background: center / 100% 100% no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E");
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Button__Whatsapp:hover,
.Button__Whatsapp:focus-visible {
  padding-left: calc(var(--pad-x) + var(--space) / 2);
  padding-right: calc(var(--pad-x) + var(--space) / 2);
}

.Button__Whatsapp:hover::after,
.Button__Whatsapp:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* ===============================
   HERO – AJUSTE ESPACIADO MOBILE
   =============================== */

@media (max-width: 600px) {

  /* Reduce espacio debajo del texto */
  .TextInicio .lead {
    margin-bottom: 16px;
  }

  /* Controla el bloque de botones */
  .HeroButtons {
    margin-top: 12px;
    gap: 12px;
  }

  /* Reduce altura visual de los botones */
  .HeroButtons a {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}



.Button__Otros {
  background-color: #eef4eb;
  border: 3px solid #b1e723;
  color: #000;
}
.Button__Otros:hover,
.formulario__submit:hover {
  background-color: #b1e723;
}
.Button__Contacto {
  background-color: #62b43c;
  border: 3px solid #62b43c;
  color: #eef4eb;
}

.Button__Otros::after,
.Button__Contacto::after {
  content: "";
  flex: 0 0 var(--arrow-w);
  height: 1em;
  margin-left: var(--gap);
  background: center / 100% 100% no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E");
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Button__Contacto::after {
  color: #fff;
}

.Button__Otros:hover,
.Button__Otros:focus-visible,
.Button__Contacto:hover,
.Button__Contacto:focus-visible {
  padding-left: calc(var(--pad-x) + var(--space) / 2);
  padding-right: calc(var(--pad-x) + var(--space) / 2);
}
.Button__Otros:hover::after,
.Button__Otros:focus-visible::after,
.Button__Contacto:hover::after,
.Button__Contacto:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.Button__Contacto::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .Button__Otros,
  .Button__Contacto {
    transition: background-color 200ms ease-in-out;
  }
  .Button__Otros::after,
  .Button__Contacto::after {
    transition: none;
  }
}

/*---- Caracteristicas flex ----*/

.Caracteristicas__Flex {
  margin-top: 56px;
  display: flex;
  gap: 12px;
}
.Caracteristicas__Grid2--Item {
  background-color: var(--c-bg11);

  border-radius: 8px;
  padding: 40px 24px;
  min-height: 400px;
  min-width: 250px;
  gap: 8px;
  display: grid;
  align-content: start;
}

.Caracteristicas__Grid2--ItemImg {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

/*---- Blue Cards ----*/
.BlueCards {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  padding-inline: var(--px-fluid);
}
.BlueCards__Item {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  color: var(--c-bg11);
  padding: 56px;
  background: linear-gradient(292deg, var(--c-cd11) 0%, var(--c-cd12) 100%);
}
.BlueCards__Item--Title {
  color: var(--c-ppl2);
  margin-bottom: 24px;
}

/*---- Card contacto ----*/
.CardContacto {
  background: linear-gradient(0deg, #165545 0%, #103d32 70%);
  padding-block: 64px;
  padding-inline: var(--px-fluid);
  color: #eef4eb;
}

.CardContacto--TextyButton {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.CardContacto .lead,
.CardContacto h2 {
  max-width: 750px;
}

.CardContacto--TextyButton > a {
  margin-left: auto;
  align-self: flex-end;
}

/*---- Preguntas frecuentes ----*/
.PreguntasFrecuentes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/*---------Faqs---------*/
/* ===== Variables base ===== */
:root {
  --faq-accent: #b1e723;
  --faq-glyph: #000;
  --faq-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --faq-dur: 320ms;
}

/* ===== Tarjeta FAQ ===== */
details {
  text-align: left;
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  color: #000;
  font-family: "Work Sans";
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 24px;
  background: transparent;
  transition: background-color 180ms var(--faq-ease),
    box-shadow 180ms var(--faq-ease);
  overflow: visible;
}
details[open] {
  background: #a9d6d963;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ===== Encabezado ===== */
summary {
  font-family: "Montserrat";
  font-size: 1.5rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  outline-offset: 4px;
  transition: color var(--faq-dur) var(--faq-ease);
}
summary::-webkit-details-marker {
  display: none;
}
details[open] summary {
  color: #5a5a5a;
}

.faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 3px solid var(--faq-accent);
  border-radius: 12px;
  background: #eef4eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: background-color 180ms var(--faq-ease),
    border-color 180ms var(--faq-ease), transform 160ms var(--faq-ease);
}
summary:hover .faq-btn {
  transform: scale(1.05);
}
summary:active .faq-btn {
  transform: scale(0.98);
}

details[open] .faq-btn,
summary:active .faq-btn {
  background: var(--faq-accent);
}

.faq-ico {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--faq-glyph);
  transition: transform var(--faq-dur) var(--faq-ease);
}
.faq-ico::before {
  width: 70%;
  height: 2px;
}
.faq-ico::after {
  width: 2px;
  height: 70%;
}

details[open] .faq-ico::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* ===== Contenido colapsable — controlado por JS ===== */
summary + .faq-wrap {
  height: 0;
  overflow: hidden;
  width: 100%;
}

/* Fade/slide del cuerpo sincronizado con el alto */
.faq-body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--faq-dur) var(--faq-ease),
    transform var(--faq-dur) var(--faq-ease);
  pointer-events: none;
}
details[open] .faq-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
details.is-closing .faq-body {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

/* Preferencias de usuario */
@media (prefers-reduced-motion: reduce) {
  summary + .faq-wrap,
  .faq-body,
  details,
  .faq-btn,
  .faq-ico::before,
  .faq-ico::after {
    transition: none !important;
  }
}

/*------------------ Media queris ---------------- */
/*--------- Portatiles --------- */
@media (min-width: 1025px) and (max-width: 1450px) {
  section {
    margin-bottom: 100px;
  }

  .CardContacto {
    padding: 64px var(--lap-px);
  }
  .CardContacto .lead,
  .CardContacto h2 {
    max-width: 400px;
  }
  .Caracteristicas__Flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .Caracteristicas__Grid2--Item {
    flex: 0 1 calc(50% - 12px);
    min-height: auto;
  }
  .BlueCards {
    padding-inline: var(--lap-px);
  }
}
/*--------- Tablets --------- */
@media (max-width: 1024px) {
  section {
    margin-bottom: 50px;
  }

  .CardContacto,
  .BlueCards {
    padding-inline: var(--tab-px);
  }

  .CardContacto--TextyButton {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .CardContacto {
    text-align: center;
  }

  .CardContacto h2 {
    margin: auto;
  }
  .CardContacto--TextyButton > a {
    margin: auto;
  }

  .Caracteristicas__Flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .Caracteristicas__Grid2--Item {
    flex: 0 1 calc(50% - 12px);
  }

  .BlueCards {
    flex-direction: column;
  }

  .BlueCards__Item {
    text-align: center;
    padding: 40px 24px;
  }
}

/*--------- Telefonos --------- */
@media (max-width: 600px) {
  .CardContacto {
    padding: 40px 24px;
  }
  .Button__Contacto,
  .Button__Otros {
    width: 100%;
  }
  section {
    margin-bottom: 24px;
  }
  .BlueCards {
    margin-top: 24px;
    padding-inline: 24px;
  }
  .CardContacto--TextyButton {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .CardContacto--TextyButton > a {
    margin: auto;
  }

  .Caracteristicas__Flex {
    flex-direction: column;
  }
  .Caracteristicas__Grid2--Item {
    min-height: auto;
  }
}

/* ========== Botón flotante de WhatsApp ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  font-size: 32px;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  background-color: #20ba5a;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 4px;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: background-color 0.2s ease;
  }
  .whatsapp-float:hover {
    transform: none;
  }
}
