/* Estilos específicos para la página de inicio */

/* Variables */
:root {
  --primary-color: #2ecc71;
  --primary-dark: #27ae60;
  --secondary-color: #3498db;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-text: #666;
  --white: #fff;
  --light-bg: #f9f9f9;
  --border-color: #e5e7eb;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Contenedor general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sección Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 80px 20px;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 30px;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--light-text);
  line-height: 1.6;
}

/* Sección Cómo funciona */
.how-it-works {
  padding: 80px 0;
  background-color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
  padding: 20px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.step p {
  color: var(--light-text);
  line-height: 1.6;
}

/* Sección de precios */
.pricing {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pricing-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--light-text);
}

.pricing-features {
  padding: 30px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-color);
}

.pricing-features li i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1rem;
}

.pricing-features li.not-included {
  color: var(--light-text);
  text-decoration: line-through;
}

.pricing-features li.not-included i {
  color: #e74c3c;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 30px 30px;
  width: calc(100% - 60px);
}

/* Sección de testimonios */
.testimonials {
  padding: 80px 0;
  background-color: var(--white);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.testimonial:not(:first-child) {
  display: none;
}

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

.testimonial-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  font-style: italic;
}

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

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-color);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--light-text);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* Sección de blog */
.blog {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-category {
  display: inline-block;
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content h3 a {
  color: var(--text-color);
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--primary-color);
}

.blog-content p {
  color: var(--light-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: var(--light-text);
  font-size: 0.85rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 5px;
}

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

.mt-4 {
  margin-top: 2rem;
}

/* Sección CTA */
.cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

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

.btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #2980b9;
}

/* Header y navegación */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Sidebar para móvil */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--primary-color);
}

.sidebar-nav i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 15px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-section i {
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Media queries */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card,
  .step,
  .pricing-card,
  .testimonial,
  .blog-card {
    padding: 20px;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta p {
    font-size: 1.1rem;
  }

  .header-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon i {
    font-size: 25px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .pricing-header {
    padding: 20px;
  }

  .price {
    font-size: 2rem;
  }

  .btn-block {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }

  .testimonial-author img {
    width: 50px;
    height: 50px;
  }
}
