@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;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}
/* SISTEMA GLOBAL DE BOTONES */

.btn {
  display: inline-block;
  padding: 12px 25px;
  margin-right: 15px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #f3a530;
  color: #fff;
}

.btn-primary:hover {
  background: #d58f22;
  transform: translateY(-2px);
}

.btn-strong {
  background: linear-gradient(135deg, #f49d32, #ff6b35);
  color: #fff;
}

.btn-strong:hover {
  transform: translateY(-3px) scale(1.03);
}

.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;
}

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;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
}

.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);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* 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;
}

.section.reverse {
  flex-direction: row-reverse;
}

.imagen {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.texto {
    margin-top: -10px; 
    padding-top: 0;
    text-align: center; 
  }

  .texto h2 {
    font-size: 1.5rem;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .texto p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

/* 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: flex;
}

  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 {
    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: 80px 0;
  background-color: #fcfcfc; 
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 50px;
}

/* Ajuste para que en móviles no se rompa*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background: #ffffff;
  border: none; 
  border-radius: 20px; 
  padding: 40px 30px;
  text-align: left; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Contenedor para el icono */
.service-card i {
  font-size: 35px;
  color: #f3a530;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  margin: 0 0 15px;
  font-size: 1.6rem;
  color: #1a1a1a;
  font-weight: 700;
}

.service-card p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

/* Lista de beneficios más elegante */
.benefits {
  margin: 0 0 30px;
  padding: 0;
  list-style: none; 
  flex-grow: 1;
}

.benefits li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

/* Checkmark personalizado en lugar de disco */
.benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f3a530;
  font-weight: bold;
}

/* PROCESO  */
.process-section {
  padding: 90px 0;
    background:
    radial-gradient(circle at top right, rgba(249, 145, 9, 0.05), transparent),
    #fdfdfd;
}

.process-section h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 70px;
  color: rgba(240, 161, 58, 0.679);
}

/* CONTENEDOR */
.process-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at top right, rgba(249, 145, 9, 0.05), transparent),
    #fdfdfd;
}

.process-section h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 70px;
  color: rgba(240, 161, 58, 0.679);
}

/* CONTENEDOR */
.process-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin: 100px 0;
  padding: 0;
  justify-content: center;
}

/* TARJETAS */
.process-steps li {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  border-radius: 35px;
  padding: 70px 50px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  transition: all 0.4s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
}

.process-steps li:hover {
  transform: translateY(-18px);
  box-shadow: 0 35px 90px rgba(0,0,0,0.18);
}

.process-steps img {
  width: 320px;            
  max-width: 100%;
  height: auto;
  margin-bottom: 35px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.process-steps li:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* TEXTO  */
.process-steps span {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  letter-spacing: 1px;
}

@media (max-width: 992px) {

  .process-steps {
    flex-direction: column;
    gap: 50px;
  }

  .process-steps li {
    padding: 60px 40px;
  }

  .process-steps img {
    width: 260px;
  }
}

/* ANIMACIONES SUAVES */
@keyframes numero {
  0%,15% {
    color: #f3a530;
    transform: scale(1.2);
    text-shadow: 0 6px 25px rgba(243,165,48,.45);
  }
  20%,100% {
    color: #ffd27a;
    transform: scale(1);
    text-shadow: none;
  }
}

@keyframes texto {
  0%,15% {
    color: #c97c10;
    transform: translateY(-4px);
  }
  20%,100% {
    color: #b7a089;
    transform: translateY(0);
  }
}

/* DELAYS EXACTOS */
.process-steps li:nth-child(1){animation-delay:0s;}
.process-steps li:nth-child(2){animation-delay:4s;}
.process-steps li:nth-child(3){animation-delay:8s;}
.process-steps li:nth-child(4){animation-delay:12s;}
.process-steps li:nth-child(5){animation-delay:16s;}

.process-steps li:nth-child(1)::before{animation-delay:0s;}
.process-steps li:nth-child(2)::before{animation-delay:4s;}
.process-steps li:nth-child(3)::before{animation-delay:8s;}
.process-steps li:nth-child(4)::before{animation-delay:12s;}
.process-steps li:nth-child(5)::before{animation-delay:16s;}

/* RESPONSIVE */
@media(max-width:768px){
  .process-steps{
    flex-direction:column;
    gap:50px;
  }
}

/*FAQ SECTION */
:root {
  --faq-bg: #ffffff;
  --faq-border: rgba(0, 0, 0, 0.08);
  --faq-primary: #f99109; 
  --faq-text: #333333;
  --faq-accent: rgba(249, 145, 9, 0.05);
}

.faq-section { 
  margin-top: 80px;
  padding: 60px 20px;
  background-color: #fcfcfc; 
  border-radius: 24px; 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05); 
}

.faq-section h2 { 
  text-align: center; 
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--faq-text);
}

/* LA LISTA DE PREGUNTAS */
.faq-list { 
  max-width: 850px; 
  margin: 0 auto; 
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

/* La tarjeta de la pregunta */
.faq-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 24px;
  background: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: 12px; 
  color: var(--faq-text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-item:hover {
  border-color: var(--faq-primary);
  background-color: var(--faq-accent);
  transform: translateY(-2px);
}

/* Cuando la pregunta está abierta */
.faq-item[aria-expanded="true"] { 
  border-color: var(--faq-primary);
  color: var(--faq-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Tipografía e Icono */
.faq-item span {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.faq-item i { 
  font-size: 1.1rem;
  color: var(--faq-primary);
  transition: transform 0.3s ease; 
}

.faq-item[aria-expanded="true"] i { 
  transform: rotate(180deg); 
}

/*  EL PANEL DE RESPUESTA */
.faq-panel {
  overflow: hidden;
  max-height: 0;
  background: #fff;
  border: 1px solid var(--faq-primary);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 24px;
  opacity: 0;
  transition: all 0.3s ease-out;
  margin-top: -20px; 
}

.faq-item[aria-expanded="true"] + .faq-panel {
  opacity: 1;
  max-height: 500px; 
  padding-bottom: 24px;
  margin-top: 0; 
  margin-bottom: 10px; 
}

.faq-panel p { 
  margin: 15px 0; 
  line-height: 1.7;
  color: #666;
  font-size: 1rem;
}

.reveal { opacity: 0; transform: translateY(12px); transition: 0.25s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Estilos de Pasos y Procesos */
.process-steps li {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cta:focus, .faq-item:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 145, 9, 0.35);
}

/*  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, .process-steps { grid-template-columns: 1fr; }
  .services-section, .process-section { padding: 24px 0; }
  .service-card {
     padding: 16px; 
    }
  /* FAQ en móviles */
  .faq-list { 
    padding: 0 12px; gap: 15px;
  }

  .faq-item { 
    padding: 15px; 
  }

  .faq-item span { 
    font-size: 0.98rem; 
  }

  .card, .texto {
    flex: 1 1 auto; 
    max-width: 100%;
    margin-bottom: 0;
  }

  .section, .contenedor-flex { 
    display: flex;
    flex-direction: column;
    gap: 15px; 
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/*celulares pequeños */
@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
}

/* Secciones Compra/Venta y Asesoría Legal */
.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.3);
}

.section.reverse {
  flex-direction: row-reverse;
}

.section .card {
  flex: 1 1 45%; 
  max-width: 500px;
}

.section .card img.imagen {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.section .texto {
  flex: 1 1 45%;
  max-width: 500px;
  text-align: left; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.section.reverse .texto {
  text-align: left; 
}

/* Móvil*/
@media (max-width: 768px) {
  .section,
  .section.reverse {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .section .card {
    max-width: 70%;      
    margin: 0 auto;  
  }

  .section .card img.imagen {
    width: 100%;
    border-radius: 12px;
  }

  .section .texto,
  .section.reverse .texto {
    max-width: 100%;
    text-align: center;
  }

  .section .texto a {
    align-self: center;
  }
}

.section,
.services-section,
.process-section,
.faq-section {
  background: 
    radial-gradient(circle at top right, rgba(249, 145, 9, 0.05), transparent),
    #fdfdfd !important;
}