
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Variables */
:root {
  --primary: #fb9f2ee2;
  --dark: #333;
  --bg: #f0eaea;
  --round: 5px;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.logo {
  height: 65px;
  transition: height 0.3s ease;
  border: 3px solid black;
  border-radius: 8px;
}

header.shrink .logo {
  height: 40px;
}

header.shrink {
  padding: 2px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

nav {
  margin: 5px -70px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1101;
  font-size: 1.5rem;
}

.menu-toggle .bar {
  display: block;
  height: 3px;
  width: 30px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
  margin: 3px 0;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.background-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(0.6);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 10px;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.banner-buttons a {
  display: inline-block;
  padding: 12px 25px;
  margin: 0 10px;
  background-color: #f3a530;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.banner-buttons a:hover {
  background-color: #d58f22;
}

/* Secciones */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
  flex-wrap: wrap;
  background-color: #f2f2f2bb;
  border-radius: 15px;
  margin: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.304);
}

.section.reverse {
  flex-direction: row-reverse;
}

.card, .texto {
  flex: 1 1 400px;
  max-width: 500px;
}

.imagen {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.texto p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.texto a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f3a530;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.texto a:hover {
  background-color: #d58f22;
}

/* Botón scroll to home */
.scrollToHome {
  border-radius: 20px;
  background: linear-gradient(135deg, #f49d32, #ff6b35);
  bottom: 20px;
  color: #ffffff;
  display: none;
  font-size: 20px;
  height: 55px;
  line-height: 55px;
  padding: 0;
  position: fixed;
  right: 20px;
  text-align: center;
  width: 55px;
  z-index: 99999;
  box-shadow: 0 8px 25px rgba(244, 157, 50, 0.4);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease-in-out;
}

.scrollToHome:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #ff6b35, #e8890b);
  box-shadow: 0 12px 35px rgba(244, 157, 50, 0.6);
  color: #ffffff;
}

.scrollToHome:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-weight: 400;
}

.redes-sociales {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.redes-sociales a {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
}

.redes-sociales a:hover {
  color: var(--primary);
  background: rgba(251, 159, 46, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(251, 159, 46, 0.3);
}

/* Responsividad */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.533);
    padding: 30px 20px;
    transition: right 0.6s ease;
    z-index: 1000;
  }

  nav.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 26px;
    right: 12px;
    z-index: 1101;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  body.menu-abierto {
    overflow: hidden;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .banner-content h1 {
    font-size: 2rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .banner-buttons a {
    padding: 10px 18px;
    margin: 8px 5px;
  }

  .section, .section.reverse {
    flex-direction: column;
    text-align: center;
  }

  /* Footer responsivo */
  footer {
    padding: 25px 15px;
  }

  footer p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .redes-sociales {
    gap: 15px;
  }

  .redes-sociales a {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 22px;
    bottom: 15px;
    left: 15px;
  }

  .scrollToHome {
    width: 50px;
    height: 50px;
    font-size: 18px;
    line-height: 50px;
    border-radius: 18px;
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 480px) {
  /* Footer para móviles pequeños */
  footer {
    padding: 20px 10px;
  }

  footer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .redes-sociales {
    gap: 12px;
    flex-wrap: wrap;
  }

  .redes-sociales a {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 12px;
    left: 12px;
  }

  .scrollToHome {
    width: 45px;
    height: 45px;
    font-size: 16px;
    line-height: 45px;
    border-radius: 15px;
    bottom: 15px;
    right: 15px;
  }

  .scrollToHome:hover {
    transform: translateY(-2px) scale(1.03);
  }
}


/* Servicios: grid y tarjetas */
.services-section {
  padding: 40px 0;
}
.services-section h2 {
  text-align: center;
  margin: 0 0 20px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.service-card i {
  font-size: 28px;
  color: var(--primary);
}
.service-card h3 {
  margin: 10px 0;
  font-size: 1.4rem;
}
.service-card p {
  margin: 0 0 10px;
}
.benefits {
  margin: 0 0 16px;
  padding-left: 18px;
}
.benefits li { list-style: disc; }
.cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f3a530;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover { background: #d58f22; }

/* Proceso */
.process-section { padding: 30px 0; }
.process-section h2 { text-align: center; margin-bottom: 12px; }
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}
.process-steps li {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Animación de brillo/resaltado para los pasos */
@keyframes processGlow {
  0% { box-shadow: 0 0 0 rgba(249,145,9,0); border-color: rgba(249,145,9,0.18); transform: translateY(0); }
  45% { box-shadow: 0 0 16px rgba(249,145,9,0.55); border-color: rgba(249,145,9,0.65); transform: translateY(-2px); }
  100% { box-shadow: 0 0 0 rgba(249,145,9,0); border-color: rgba(249,145,9,0.18); transform: translateY(0); }
}

.process-steps li.highlight {
  animation: processGlow 1.6s ease-in-out both;
}

/* Efecto shimmer opcional sobre el paso activo */
@keyframes processShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.process-steps li.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  animation: processShimmer 1.6s linear;
}

/* Respeto de accesibilidad: reducir animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .process-steps li.highlight { animation: none; }
  .process-steps li.highlight::after { animation: none; }
}

/* FAQ */
.faq-section { padding: 30px 0; }
.faq-section h2 { text-align: center; margin-bottom: 16px; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 8px 0 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
}
.faq-item[aria-expanded="true"] { border-color: var(--primary); }
.faq-item i { transition: transform .2s ease; }
.faq-item[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 16px;
}
.faq-panel p { margin: 10px 0 16px; }

/* Animación de revelado */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .process-steps { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}


/* Ajustes finos: accesibilidad y consistencia */
.cta:focus, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 159, 46, 0.45);
}
.faq-item:focus, .faq-item:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 159, 46, 0.35);
}

/* Consistencia de bordes y sombras */
.process-steps li {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.faq-item {
  border-radius: 12px;
}
.faq-panel {
  border-radius: 0 0 12px 12px;
}

/* Ajustes responsive específicos */
@media (max-width: 768px) {
  .services-section { padding: 24px 0; }
  .services-grid { gap: 16px; }
  .service-card { padding: 16px; }
  .service-card h3 { font-size: 1.2rem; }
  .service-card p { font-size: 0.95rem; }

  .process-section { padding: 24px 0; }
  .process-steps { gap: 10px; }

  .faq-list { padding: 0 12px; }
  .faq-item { padding: 12px 14px; }
}


/* Tipografía del acordeón (FAQ) */
.faq-item span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.faq-item i {
  font-size: 18px;
  color: var(--primary);
}
.faq-panel {
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .faq-item span { font-size: 0.98rem; }
  .faq-panel { font-size: 0.95rem; }
}

