:root {
  --primary: #0062ff;
  --primary-hover: #004ecc;
  --secondary: #00f2fe;
  --dark: #0f172a;
  --gray-light: #f8fafc;
  --text-muted: #64748b;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--gray-light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 120px 20px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  max-width: 900px;
}

.hero h1 span {
  background: linear-gradient(to right, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #94a3b8;
  margin: 35px auto;
  max-width: 700px;
}

/* --- SECCIONES --- */
.section-padding {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 50px;
}

/* --- SERVICIOS --- */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.servicio-item {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid transparent;
}

.servicio-item:hover {
  transform: translateY(-12px);
  border-bottom-color: var(--primary);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

/* --- PRECIOS --- */
.pricing-section {
  background: #f1f5f9;
  width: 100%;
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.price-card {
  background: white;
  padding: 45px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.price-card.featured {
  background: var(--dark);
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.price-card .cost {
  font-size: 3rem;
  font-weight: 800;
  margin: 15px 0;
  color: inherit;
}

.price-card .cost span {
  font-size: 1.1rem;
  opacity: 0.6;
  font-weight: 400;
}

.features-list {
  list-style: none;
  margin: 25px 0 35px 0;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  opacity: 0.9;
}

.features-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 12px;
}

.price-card.featured .features-list li::before {
  color: var(--secondary);
}

/* --- SECCIÓN FAQ --- */
.faq-section {
  padding: 80px 20px;
  background-color: #f9fafb;
}

.faq-container {
  max-width: 800px;
  margin: 40px auto 0;
}

.section-subtitle {
  text-align: center;
}

.faq-item {
  background: white;
  margin-bottom: 15px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
}

.faq-question {
  width: 100%;
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.arrow-icon {
  font-style: normal;
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

/* Clase para cuando el acordeón esté abierto */
.faq-item.active .arrow-icon {
  transform: rotate(45deg);
  color: #ef4444; /* Cambia a rojo o equis al abrir */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  background-color: white;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Ajusta según el largo de tu respuesta */
  padding-bottom: 25px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }
  .faq-section {
    padding: 50px 15px;
  }
}

/* --- BOTONES --- */
.btn {
  display: inline-block;
  text-align: center;
  padding: 20px 35px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white !important;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 98, 255, 0.3);
}

.btn-white {
  background: white;
  color: var(--dark) !important;
}
.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
}

/* --- TESTIMONIOS --- */
.testimonio-box {
  background: #e2e8f0;
  padding: 35px;
  border-radius: 20px;
  color: var(--dark);
  position: relative;
  margin-bottom: 20px;
}

.testimonio-box::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 30px;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: #e2e8f0 transparent;
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.footer-cta {
  margin-bottom: 40px;
}

/* --- RESPONSIVE --- */
@media (min-width: 1024px) {
  .pricing-grid {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
  }
  .price-card {
    max-width: 360px;
  }
  .price-card.featured {
    transform: scale(1.08);
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .hero {
    clip-path: ellipse(200% 100% at 50% 0%);
  }
  .pricing-grid {
    gap: 60px;
  }
}
