/* Estilo base para AIpornGeneratorLV.site - Diseño letón */

:root {
  /* Colores principales - inspirados en la bandera y cultura letona */
  --primary-color: #9E3039; /* Rojo carmesí de la bandera letona */
  --secondary-color: #4D4D4D; /* Gris oscuro para contraste */
  --accent-color: #B38A58; /* Dorado/ámbar, color frecuente en artesanía letona */
  --light-color: #F5F5F5; /* Casi blanco */
  --dark-color: #212121; /* Casi negro */
  --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, #7A242C 100%);
}

/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Elementos del banner letón */
.latvia-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.latvia-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.section {
  padding: 4rem 0;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text span {
  color: var(--primary-color);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
}

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

.nav-button {
  background: var(--gradient-bg);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(158, 48, 57, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-feature svg {
  width: 24px;
  height: 24px;
}

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

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #9d774b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(179, 138, 88, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image svg {
  width: 100%;
  height: auto;
}

/* Sección características */
.features {
  background-color: white;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-color);
}

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

.feature-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(158, 48, 57, 0.1);
  border-radius: 50%;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.feature-description {
  color: #666;
  line-height: 1.6;
}

/* Sección cómo funciona */
.how-it-works {
  padding: 80px 0;
  background-color: #fff;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.step-icon {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.step-description {
  color: var(--secondary-color);
}

/* Sección testimonios */
.testimonials {
  background-color: white;
}

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

.testimonial-card {
  padding: 2rem;
  border-radius: 8px;
  background-color: var(--light-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-location {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Sección CTA */
.cta {
  background: var(--gradient-bg);
  color: white;
  text-align: center;
}

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

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  margin-bottom: 2rem;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.cta-badge svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  background-color: #21252b;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  max-width: 300px;
}

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

.footer-logo-text {
  font-weight: 600;
  font-size: 1.3rem;
  color: white;
}

.footer-logo-text span {
  color: var(--accent-color);
  font-weight: 400;
}

.footer-description {
  color: #aaa;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: #aaa;
}

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

.footer-action p {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: all 0.3s ease;
    z-index: 200;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .feature-card, .step, .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Elemento distintivo letón (patrón de cinturón Lielvārde) */
.latvian-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  overflow: hidden;
  opacity: 0.2;
}

.latvian-pattern-inner {
  height: 100%;
  width: 200%;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-color) 10px,
    var(--accent-color) 10px,
    var(--accent-color) 20px,
    var(--primary-color) 20px,
    var(--primary-color) 30px,
    white 30px,
    white 40px
  );
  animation: slide 50s linear infinite;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
