/* =========================
   VARIABLES
   ========================= */
:root {
  --text-main: #141414;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f9fafb;
  --bg-section: #f3f4f6;
  --card-bg: #ffffff;

  --max-width: 1100px;
  --padding: 1.25rem;
  --radius: 8px;
}


/* =========================
   RESET / BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  margin-top: 10vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.footer-img{
  display: flex;
  gap: 5px;
  width: max-content;
  align-items: center;
  justify-items: center;
  color: black;
  cursor: pointer;
}
.footer-img:hover {
  filter: opacity(1);
}
.footer-img img {
  width:  16px;
  height: 16px;
  filter: opacity(.6);
}

.footer-img:hover .fot-img{
  filter: opacity(1);
}
.footer-img:hover .footer-links{
  color: black;

}
/* =========================
   LAYOUT GLOBAL
   ========================= */
header,
main,
footer {
  width: 100%;
}

section {
  padding: 4.5rem var(--padding);
}

section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

section.alt {
  background-color: var(--bg-section);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.75rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  max-width: 60ch;
}

.title{
  background-color: #ffffff;
  z-index: 10;
  border-radius: 4rem;
}

/* =========================
   HERO
   ========================= */
#hero {
  display: grid;
  gap: 3rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.banner{
  display: none;
}

.arrow{
  display: none;
}

.contacto-img{
  filter: invert();
  width: 1.2rem ;
  height: 1.2rem;
  margin-right: .5rem;
}

.btn-primary {
  display: flex;
  margin-top: 2rem;
  width: max-content;
  padding: 0.60rem 1.75rem;
  border-radius: var(--radius);
  background: var(--text-main);
  border: var(--text-main) 2px solid;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  font-size: .95rem;
}

.btn-secondary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.60rem 2rem;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text-main);
  border: var(--text-main) 2px solid;
  font-size: 0.95rem;
  font-weight: bold;
}




/* =========================
   CARDS
   ========================= */
.card-grid {
  display: grid;
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card p {
  font-size: 0.95rem;
}

/* =========================
   SECCIONES ESPECÍFICAS
   ========================= */
#criterio ul,
#servicios ul {
  list-style: none;
  padding: 0;
}

#criterio li,
#servicios li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

#proceso ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

#proceso li {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

#contacto {
  background: var(--bg-soft);
  text-align: center;
}

#contacto a {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}


#problema{
  text-align: center;
}
#criterio li {
  background: #ffffff;
}
#servicios{
  text-align: center;
}
#servicios li {
  background: var(--bg-soft);
}

#servicios a{
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* =========================
   FOOTER
   ========================= */
/* =========================
   FOOTER
   ========================= */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--padding);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer__logo {
  width: 8rem;
  margin-bottom: 1rem;
  filter: opacity(.5);
}

.footer__description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 40ch;
}

.footer__section {
  font-size: 0.9rem;
}

.footer__title {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer__section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__section li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.footer__section a {
  color: var(--text-muted);
}

.footer__section a:hover {
  color: var(--text-main);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--padding);
  text-align: center;
  align-self: center;
  justify-self: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================
   FOOTER RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 80vw;
  }
}


/* =========================
   DESKTOP
   ========================= */
@media (min-width: 900px) {
  

  #hero {
    align-items: center;
    width: 55%;
    margin-left: 4rem;
    height: 100vh;
    margin-top: -6rem;
  }

  .banner{
    display: block;
    position: absolute;
    right: 0;
    width: 80vh;
  }
  .arrow{
  display: block;
  width: 32px;
  position: absolute;
  justify-self: center;
  filter: opacity(.5);
  bottom: 2rem;
  cursor: pointer;
  transition: all 1s ease;
  }
  .arrow:hover{
    filter: opacity(1);
  }


  #criterio ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; 
  }

  #servicios ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #proceso ol {
    grid-template-columns: repeat(3, 1fr);
  }
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .btn-primary:hover, .btn-secondary:hover, .btn-act:hover {
  filter:opacity(.8);
  box-shadow: #02020265 3px 3px 1px;
}
}


.float {
  animation: floatY 2s ease-in-out infinite;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0);
  }
}




/* =========================
   SECCIONES INFORMATIVAS
   ========================= */

#cobertura,
#garantia,
#faq {
  padding: 5rem 1.25rem;
}

#cobertura {
  background-color: var(--bg-soft);
}

#garantia {
  background-color: #ffffff;
}

#faq {
  background-color: var(--bg-section);
}

#cobertura h2,
#garantia h2,
#faq h2 {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

#cobertura > p,
#garantia > p {
  max-width: 60ch;
  margin: 3rem auto 3rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================
   LISTAS EN BLOQUES
   ========================= */

#cobertura ul,
#garantia ul,
#faq ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-width);

  display: grid;
  gap: 2rem;
}

/* cards base */
#cobertura li,
#garantia li,
#faq li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* títulos */
#cobertura h3,
#garantia h3,
#faq h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* texto */
#cobertura li p,
#garantia li p,
#faq li p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================
   FAQ — DIFERENCIACIÓN
   ========================= */

#faq li {
  background: transparent;
}

#faq li h3 {
  font-weight: 500;
}

#faq li p {
  max-width: 65ch;
}

/* =========================
   DESKTOP
   ========================= */

@media (min-width: 900px) {
  #cobertura ul,
  #garantia ul {
    grid-template-columns: repeat(3, 1fr);
  }

  #faq ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   FAQ INTERACTIVO
   ========================= */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin-top: 1rem;
  color: var(--text-muted);
}


#servicios li {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

#servicios li:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  #servicios li:hover {
    transform: none;
    box-shadow: none;
  }
  
}


.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* FADE */
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}


/* vertical */

.reveal-soft {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-soft.visible {
  opacity: 1;
  transform: translateY(0);
}

/* vertical */


.reveal-line {
  position: relative;
}

.reveal-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--border);
  transition: width 0.6s ease;
}

.reveal-line.visible::after {
  width: 40px;
}


.cobertura{
  justify-self: center;
  display: flex;
  justify-content:start;
  align-content: center;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.cobertura img {
  filter: opacity(.5);
  margin-top: 2rem;
  width: 32px;
}

.footer-terminos{
  margin-top: 13px;
}