/*
 * ainudeMX.love - Estilos Principales
 * Optimizado para SEO y rendimiento
 */

/* Variables y Reset */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #1abc9c;
  --dark-color: #2c3e50;
  --text-color: #333;
  --light-text: #f8f9fa;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Botones */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

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

.btn-secondary:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

/* Animación de pulso para botones */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Encabezado */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  height: 80px;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: block;
}

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

.menu-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2000;
}

.menu-button span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 3px;
}

.menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

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

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

/* Sección Hero */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--dark-color);
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-decoration {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 45%;
  z-index: 1;
  opacity: 0.7;
}

.hero-blob {
  width: 100%;
  height: auto;
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translatey(0px); }
  50% { transform: translatey(-20px); }
  100% { transform: translatey(0px); }
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

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

.feature-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

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

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

/* Sección del proceso */
.process {
  padding: 100px 0;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.step-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.step-icon span {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.step-content {
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.step-content p {
  color: var(--text-color);
}

.process-cta {
  text-align: center;
  margin-top: 3rem;
}

/* FAQ Sección */
.faq {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.faq-item {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  height: auto;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 80px 0 30px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  display: block;
  margin-right: 15px;
}

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

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h3,
.footer-legal h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-decoration {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    padding: 100px 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    z-index: 1500;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-decoration {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .process-step {
    flex-direction: column;
  }
  
  .step-icon {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .step-content {
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo,
  .footer-brand {
    justify-content: center;
    align-items: center;
  }
}
