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

/* Variables y Reset */
:root {
  --primary-color: #FF6B6B;
  --secondary-color: #A020F0;
  --accent-color: #6B66FF;
  --dark-color: #2A2C41;
  --light-color: #F8F9FA;
  --text-color: #333333;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* Botones */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin: 20px 0;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* Encabezado y navegación */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.logo-svg {
  width: 180px;
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-menu li a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 5px;
  transition: var(--transition);
}

/* Sección Hero */
.hero {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,144C96,128,192,96,288,85.3C384,75,480,85,576,112C672,139,768,181,864,181.3C960,181,1056,139,1152,117.3C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  opacity: 0.5;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 25px;
}

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

/* Características */
.features {
  padding: 80px 0;
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
  position: relative;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

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

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

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

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

/* Como funciona */
.how-it-works {
  padding: 80px 0;
  background-color: var(--light-color);
  text-align: center;
}

.how-it-works h2 {
  font-size: 2.3rem;
  margin-bottom: 60px;
  position: relative;
}

.how-it-works h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.steps-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.step {
  flex: 0 0 30%;
  max-width: 300px;
  margin-bottom: 30px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.step h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* Preguntas Frecuentes */
.faq {
  padding: 80px 0;
  background-color: white;
}

.faq h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
  position: relative;
}

.faq h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

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

.accordion-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  background-color: var(--light-color);
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(160, 32, 240, 0.1);
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.accordion-item.active .accordion-header::after {
  content: '-';
}

.accordion-content {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 20px 25px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 0 0 100%;
  max-width: 250px;
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo-svg {
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-links, .footer-terms {
  flex: 1;
  margin-bottom: 30px;
}

.footer-links h4, .footer-terms h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

.footer-links a, .footer-terms a {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.copyright p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Media Queries para diseño responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .step {
    flex: 0 0 45%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    gap: 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 15px;
  }
  
  .nav-menu li a:after {
    display: none;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .step {
    flex: 0 0 100%;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links ul, .footer-terms ul {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card, .step, .accordion-item {
  animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

.step:nth-child(2) {
  animation-delay: 0.3s;
}

.step:nth-child(3) {
  animation-delay: 0.6s;
}

/* Accesibilidad y SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Efecto hover para mejorar interactividad */
.feature-card:hover .feature-icon svg path {
  fill: var(--secondary-color);
}

/* Mejoras para SEO y rendimiento */
img[loading="lazy"] {
  transition: opacity 0.2s;
}

img[loading="lazy"]:not([src]) {
  opacity: 0;
}

/* Adaptación para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #121212;
    --text-color: #F8F9FA;
    --dark-color: #1F1F1F;
  }
  
  .feature-card,
  .accordion-header,
  .accordion-content,
  header {
    background-color: #1F1F1F;
    color: #F8F9FA;
  }
  
  .nav-menu li a {
    color: #F8F9FA;
  }
  
  .menu-toggle span {
    background-color: #F8F9FA;
  }
}
