/* 
 * AIpornGeneratorES.pw - Estilos CSS
 * Tema: Basado en colores de la bandera española
 * Última actualización: 21 de agosto de 2025
 */

:root {
  /* Colores de la bandera española */
  --rojo: #C92B2B;
  --amarillo: #F1BF00;
  --blanco: #FFFFFF;
  --negro: #222222;
  --gris-claro: #F8F8F8;
  --gris-medio: #E0E0E0;
  --gris-oscuro: #666666;
  --sombra: 0 4px 12px rgba(0, 0, 0, 0.1);
  --sombra-fuerte: 0 8px 20px rgba(0, 0, 0, 0.15);
  --radio: 6px;
  --transicion: all 0.3s ease;
}

/* Estilos base y reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--negro);
  background-color: var(--blanco);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0;
  color: var(--rojo);
}

h1 span {
  color: var(--amarillo);
  font-weight: 600;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gris-oscuro);
}

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

a:hover {
  color: var(--amarillo);
}

section {
  padding: 80px 0;
}

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

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--rojo), var(--amarillo));
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title.light {
  color: var(--blanco);
}

.section-title.light:after {
  background: var(--blanco);
}

/* Header y navegación */
.header {
  background-color: var(--blanco);
  box-shadow: var(--sombra);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo svg {
  margin-right: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--rojo);
  margin: 3px 0;
  border-radius: 2px;
  transition: var(--transicion);
}

.menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu a {
  color: var(--negro);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.menu a:hover {
  color: var(--rojo);
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  transition: var(--transicion);
}

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

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radio);
  transition: var(--transicion);
  cursor: pointer;
  text-align: center;
  margin: 5px 10px 5px 0;
}

.primary {
  background-color: var(--rojo);
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.primary:hover {
  background-color: #a82424;
  transform: translateY(-3px);
  box-shadow: var(--sombra-fuerte);
}

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

.secondary:hover {
  background-color: var(--rojo);
  color: var(--blanco);
  transform: translateY(-3px);
}

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

/* Hero section */
.hero {
  background: linear-gradient(45deg, rgba(201, 43, 43, 0.03), rgba(241, 191, 0, 0.05));
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--rojo), var(--amarillo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.adult-warning {
  display: flex;
  align-items: center;
  background-color: rgba(201, 43, 43, 0.1);
  padding: 8px 16px;
  border-radius: var(--radio);
  margin-bottom: 30px;
  width: fit-content;
}

.adult-warning svg {
  margin-right: 10px;
}

.adult-warning span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rojo);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 191, 0, 0.2), transparent);
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Features section */
.features {
  background-color: var(--gris-claro);
  position: relative;
}

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

.feature-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 35px 25px;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  text-align: center;
  border-bottom: 4px solid transparent;
}

.feature-card:nth-child(odd) {
  border-bottom-color: var(--rojo);
}

.feature-card:nth-child(even) {
  border-bottom-color: var(--amarillo);
}

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

.feature-icon {
  margin-bottom: 20px;
  display: inline-block;
}

/* Process section */
.process {
  background: linear-gradient(to bottom, var(--blanco), var(--gris-claro));
}

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

.process-step {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 70px;
  left: 25px;
  height: calc(100% - 50px);
  width: 2px;
  background: linear-gradient(to bottom, var(--amarillo), var(--rojo));
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rojo), var(--amarillo));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  margin-right: 25px;
  box-shadow: var(--sombra);
  z-index: 1;
}

.step-details {
  padding-top: 5px;
}

/* Testimonials section */
.testimonials {
  background: linear-gradient(135deg, var(--rojo), var(--amarillo));
  color: var(--blanco);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before,
.testimonials::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.testimonials::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.testimonials::after {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 2;
}

.testimonial-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radio);
  padding: 25px;
  transition: var(--transicion);
}

.testimonial-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.quote {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--blanco);
}

.client {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* FAQ section */
.faq {
  background-color: var(--gris-claro);
}

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

.faq-item {
  background: var(--blanco);
  border-radius: var(--radio);
  margin-bottom: 15px;
  box-shadow: var(--sombra);
  overflow: hidden;
}

.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--rojo);
  font-weight: bold;
  transition: var(--transicion);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transicion);
  padding: 0 20px;
}

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

.faq-item.active .faq-content {
  max-height: 300px;
  padding-bottom: 20px;
}

/* CTA section */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(201, 43, 43, 0.95), rgba(241, 191, 0, 0.95)), url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIxNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmZmZmMTAiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==");
  background-position: center;
  padding: 100px 0;
  color: var(--blanco);
}

.cta h2 {
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  color: var(--blanco);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta .btn.primary {
  background: var(--blanco);
  color: var(--rojo);
  border: none;
}

.cta .btn.primary:hover {
  background: var(--gris-claro);
}

.disclaimer {
  font-size: 0.85rem;
  margin-top: 20px;
  opacity: 0.7;
}

/* Footer */
.footer {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 70px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about {
  max-width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

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

.footer-logo h3 {
  color: var(--blanco);
  margin-bottom: 0;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: space-between;
}

.link-column {
  flex: 1;
}

.link-column h4 {
  color: var(--blanco);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.link-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--amarillo);
}

.link-column ul {
  list-style: none;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transicion);
}

.link-column a:hover {
  color: var(--amarillo);
  padding-left: 5px;
}

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

.footer-bottom p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

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

/* Responsive */
@media screen and (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 2.1rem;
  }
  
  .hero-flex {
    flex-direction: column;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-visual {
    order: 1;
    margin-bottom: 40px;
  }
  
  .adult-warning {
    margin: 0 auto 30px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: var(--blanco);
    width: 80%;
    height: 100vh;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: var(--sombra);
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

@media screen and (max-width: 576px) {
  .process-step {
    flex-direction: column;
  }
  
  .step-number {
    margin: 0 0 15px 0;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .testimonial-wrapper {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    margin: 10px 0;
  }
}
