/* Variables globales */
:root {
  --primary-color: #ff5e62;
  --secondary-color: #ff9966;
  --accent-color: #2c3e50;
  --text-color: #333;
  --light-text: #f8f9fa;
  --bg-color: #ffffff;
  --dark-bg: #f0f2f5;
  --header-height: 80px;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --gradient: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
  position: relative;
}

.btn {
  display: inline-block;
  background: var(--gradient);
  color: var(--light-text);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(255, 94, 98, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--gradient);
  color: var(--light-text);
}

/* Títulos y texto */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  position: relative;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Header y navegación */
.header {
  position: fixed;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  gap: 10px;
}

.logo svg {
  width: 38px;
  height: 38px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent-color);
}

/* Sección Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-height);
  background: radial-gradient(circle at top right, rgba(255, 153, 102, 0.1), transparent),
              radial-gradient(circle at bottom left, rgba(255, 94, 98, 0.1), transparent);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(var(--secondary-color) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 25px;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--accent-color);
  max-width: 650px;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* Sección de características */
.features {
  background-color: var(--bg-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.8;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  height: 10px;
  background: var(--gradient);
  transform: translateY(-100%);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  transform: translateY(0);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 94, 98, 0.1), rgba(255, 153, 102, 0.1));
  color: var(--primary-color);
}

.feature-icon svg {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  margin: 15px 0;
  color: var(--accent-color);
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* Sección Cómo funciona */
.how-it-works {
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 98, 0.1) 0%, transparent 70%);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 40px 0;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(to right, 
    transparent 0%, 
    var(--primary-color) 15%, 
    var(--primary-color) 85%, 
    transparent 100%);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 270px;
  position: relative;
  z-index: 1;
  margin: 20px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--gradient);
  color: var(--light-text);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 5px 15px rgba(255, 94, 98, 0.3);
}

.process-step h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 250px;
}

/* Sección de testimonios */
.testimonials {
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.testimonials::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 102, 0.1) 0%, transparent 70%);
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  width: 100%;
  overflow-x: auto;
  padding: 20px 10px;
  margin-bottom: 30px;
  scrollbar-width: none; /* Oculta scroll en Firefox */
}

.testimonial-slider::-webkit-scrollbar {
  display: none; /* Oculta scroll en Chrome y Safari */
}

.testimonial-card {
  flex: 0 0 350px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content::before {
  content: """;
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: rgba(255, 94, 98, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  color: var(--accent-color);
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Sección CTA */
.cta-section {
  background: var(--gradient);
  color: var(--light-text);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::before {
  top: -100px;
  right: -100px;
}

.cta-section::after {
  bottom: -100px;
  left: -100px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-light {
  background: var(--light-text);
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  color: var(--light-text);
  padding-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}

.footer-column h3 {
  color: var(--light-text);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-about {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 15px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  color: var(--light-text);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.copyright span {
  opacity: 0.7;
}

/* Animación al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  .container {
    width: 95%;
  }
  
  .process-steps::before {
    left: 10%;
    right: 10%;
  }
  
  .feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-about {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 10px 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 110;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 80%;
    height: 100vh;
    z-index: 100;
    gap: 0;
    padding: 100px 20px 20px;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .testimonial-card {
    flex: 0 0 85%;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .process-step {
    width: 100%;
    margin: 30px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}
