/**
 * AIpornGeneratorMX.site - Main Stylesheet
 * Unique Mexican-themed design with green, white and red color scheme
 * Optimized for both desktop and mobile experiences
 */

:root {
  /* Mexican flag-inspired color palette */
  --mx-green: #006341;
  --mx-red: #CE1126;
  --mx-white: #FFFFFF;
  --dark: #212121;
  --light-gray: #F9F9F9;
  --medium-gray: #E0E0E0;
  --text-dark: #333333;
  --text-light: #757575;
  --gradient-green: linear-gradient(135deg, #006341 0%, #00A65A 100%);
  --gradient-red: linear-gradient(135deg, #CE1126 0%, #FF5555 100%);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 25px rgba(0, 99, 65, 0.15);
  --transition: all 0.3s ease;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Raleway', sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--mx-white);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

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

a:hover {
  color: var(--mx-red);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--dark);
}

h1 {
  font-size: 4rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 3.4rem;
  position: relative;
  padding-bottom: 1.8rem;
  margin-bottom: 3rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8rem;
  height: 0.4rem;
  background: var(--gradient-green);
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 2rem;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

.section-desc {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 4.5rem;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

/* Center align section titles */
section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

section h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn.primary {
  background: var(--gradient-green);
  color: var(--mx-white);
  box-shadow: 0 4px 15px rgba(0, 99, 65, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 99, 65, 0.4);
}

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

.btn.secondary:hover {
  background-color: var(--mx-green);
  color: var(--mx-white);
  transform: translateY(-3px);
}

.btn.large {
  padding: 1.5rem 3.5rem;
  font-size: 1.8rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 9rem;
  background-color: var(--mx-white);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo a {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
}

.logo svg {
  margin-right: 1.5rem;
}

.logo strong {
  color: var(--mx-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.6rem;
  position: relative;
}

.nav-list a:hover {
  color: var(--mx-green);
}

.nav-list a:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background: var(--gradient-green);
  transition: var(--transition);
}

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

.nav-btn {
  background-color: var(--mx-green);
  color: var(--mx-white) !important;
  padding: 1rem 2rem;
  border-radius: 0.8rem;
}

.nav-btn:hover {
  background-color: var(--mx-red);
  transform: translateY(-3px);
}

.nav-btn:after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 3rem;
  height: 0.3rem;
  margin: 0.7rem 0;
  background-color: var(--dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 18rem 0 10rem;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  background-color: var(--mx-green);
  opacity: 0.03;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background-color: var(--mx-red);
  opacity: 0.02;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
}

.hero-visual {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 50rem;
  height: auto;
}

.hero p {
  font-size: 1.8rem;
  margin-bottom: 3.5rem;
}

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

.tag {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--gradient-red);
  color: var(--mx-white);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

/* Features Section */
.features {
  background-color: var(--mx-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.feature-card {
  background-color: var(--light-gray);
  padding: 3.5rem 3rem;
  border-radius: 1.5rem;
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--medium-gray);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: var(--gradient-green);
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 99, 65, 0.1);
  border-radius: 1.5rem;
  color: var(--mx-green);
}

.feature-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.feature-card p {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--light-gray);
  position: relative;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.step-number {
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1.2rem;
  background: var(--gradient-green);
  color: var(--mx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
}

.step-icon {
  width: 6.5rem;
  height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mx-white);
  border-radius: 1.5rem;
  color: var(--mx-green);
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.step p {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.cta-center {
  text-align: center;
  margin-top: 6rem;
  position: relative;
  z-index: 2;
}

/* FAQ Section */
.faq {
  background-color: var(--mx-white);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: var(--light-gray);
  z-index: 0;
}

.faq .container {
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 85rem;
  margin: 0 auto;
  background-color: var(--mx-white);
  border-radius: 1.5rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--medium-gray);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  cursor: pointer;
  background-color: var(--mx-white);
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background-color: rgba(0, 99, 65, 0.03);
}

.faq-question h3 {
  font-size: 1.8rem;
  margin: 0;
  transition: var(--transition);
}

.faq-item.active .faq-question h3 {
  color: var(--mx-green);
}

.faq-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.faq-icon span {
  position: absolute;
  background-color: var(--mx-green);
  width: 100%;
  height: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-icon span:nth-child(2) {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item.active .faq-icon span:nth-child(2) {
  transform: translateY(-50%) rotate(0);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 3rem;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 20rem;
  padding-bottom: 2.5rem;
}

/* CTA Section */
.cta {
  background: var(--gradient-green);
  color: var(--mx-white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before, .cta::after {
  content: '';
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
}

.cta::before {
  top: -20rem;
  left: -20rem;
}

.cta::after {
  bottom: -20rem;
  right: -20rem;
}

.cta h2 {
  color: var(--mx-white);
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.cta h2:after {
  background: var(--mx-white);
  width: 6rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn.primary {
  background-color: var(--mx-white);
  color: var(--mx-green);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  margin-top: 2.5rem;
}

.cta .btn.primary:hover {
  background-color: var(--mx-red);
  color: var(--mx-white);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.3);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--medium-gray);
  padding-top: 6rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  flex: 0 0 100%;
  max-width: 38rem;
}

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

.footer-logo svg {
  width: 4rem;
  height: 4rem;
  margin-right: 1.5rem;
}

.footer-logo h3 {
  color: var(--mx-white);
  margin-bottom: 0;
  font-size: 2rem;
}

.footer-logo p {
  color: var(--mx-green);
  margin: 0;
  font-size: 1.4rem;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.footer-col {
  min-width: 12rem;
}

.footer-col h4 {
  color: var(--mx-white);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.3rem;
  background-color: var(--mx-red);
}

.footer-col ul {
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 1.2rem;
}

.footer-col a {
  color: var(--medium-gray);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--mx-green);
  padding-left: 0.5rem;
}

.footer-disclaimer {
  padding: 3rem 0;
  font-size: 1.4rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  max-width: 90rem;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  font-size: 1.4rem;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Media Queries */
@media (max-width: 992px) {
  html {
    font-size: 55%;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-visual {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 5rem;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--mx-white);
    z-index: 1000;
    padding: 12rem 3rem 3rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }
  
  .nav-list a {
    display: block;
    font-size: 2rem;
  }
  
  .nav-list a:hover {
    transform: translateX(5px);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
  
  .footer-main {
    flex-direction: column;
    gap: 4rem;
  }
  
  .footer-brand {
    text-align: center;
    margin: 0 auto;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }
  
  .footer-col a:hover {
    padding-left: 0;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .faq-question h3 {
    font-size: 1.7rem;
    padding-right: 2rem;
  }
  
  .hero-svg {
    max-width: 30rem;
  }
  
  .cta h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 6rem 0;
  }
  
  .hero {
    padding: 14rem 0 8rem;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .cta {
    padding: 6rem 0;
  }
  
  .faq-question {
    padding: 2rem;
  }
  
  .faq-answer {
    padding: 0 2rem;
  }
  
  .step-number {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--mx-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mx-red);
}
