/* 
  nudifyerCL.pw - Estilo personalizado para sitio web chileno
  Tema inspirado en colores de bandera chilena
*/

/* Variables y resets */
:root {
  --rojo: #D52B1E;       /* Rojo de la bandera chilena */
  --azul: #0039A6;       /* Azul de la bandera chilena */
  --blanco: #FFFFFF;     /* Blanco de la bandera chilena */
  --gris-oscuro: #333333;
  --gris-claro: #F5F5F5;
  --sombra: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transicion: all 0.3s ease;
  --gradiente-primario: linear-gradient(135deg, var(--rojo) 0%, #FF5151 100%);
  --gradiente-secundario: linear-gradient(135deg, var(--azul) 0%, #0055CC 100%);
}

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

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

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--gris-oscuro);
  overflow-x: hidden;
  background-color: var(--blanco);
}

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

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

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

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

.section {
  padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gris-oscuro);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--rojo);
}

.text-secondary {
  color: var(--azul);
}

.bg-light {
  background-color: var(--gris-claro);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicion);
  text-align: center;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradiente-primario);
  color: var(--blanco);
  box-shadow: 0 4px 10px rgba(213, 43, 30, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(213, 43, 30, 0.4);
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: var(--sombra);
  z-index: 1000;
  transition: var(--transicion);
}

.header.scrolled {
  padding: 0.7rem 0;
}

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

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

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gris-oscuro);
}

.logo-text span {
  color: var(--rojo);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradiente-primario);
  transform: scaleX(0);
  transition: var(--transicion);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gris-oscuro);
}

/* Hero Section */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--rojo);
  opacity: 0.05;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--azul);
  opacity: 0.05;
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  position: relative;
  text-align: center;
}

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

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

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--rojo);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #666;
}

/* Como funciona */
.process {
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--gradiente-primario);
  border-radius: 3px;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1.5rem;
  width: 3rem;
  height: 2px;
  background-color: var(--rojo);
  opacity: 0.3;
}

.step-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-claro);
  color: var(--rojo);
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step:nth-child(even) .step-icon {
  color: var(--azul);
}

/* Características */
.features {
  background-color: var(--gris-claro);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradiente-primario);
}

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

.feature-card {
  background-color: var(--blanco);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

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

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradiente-primario);
  color: var(--blanco);
  font-size: 1.8rem;
}

.feature-card:nth-child(even) .feature-icon {
  background: var(--gradiente-secundario);
}

/* Acerca de */
.about {
  position: relative;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: -1rem;
  bottom: -1rem;
  border: 3px solid var(--rojo);
  border-radius: 10px;
  z-index: -1;
}

.about-content {
  flex: 1;
}

/* Footer */
.footer {
  background-color: var(--gris-oscuro);
  color: var(--blanco);
  padding: 4rem 0 2rem;
}

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

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

.footer-logo img {
  width: 35px;
  height: auto;
}

.footer-title {
  color: var(--blanco);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: #CCC;
  transition: var(--transicion);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  transition: var(--transicion);
}

.social-link:hover {
  background-color: var(--rojo);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: #AAA;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    flex: none;
    width: 100%;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    order: 1;
  }
  
  .about-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--blanco);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--rojo);
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .steps {
    flex-direction: column;
    gap: 3rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex-basis: 45%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

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

.animate {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Elementos decorativos */
.shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.shape-1 {
  top: 20%;
  left: -5%;
  width: 200px;
  height: 200px;
  background-color: var(--rojo);
  opacity: 0.03;
}

.shape-2 {
  bottom: 10%;
  right: -5%;
  width: 250px;
  height: 250px;
  background-color: var(--azul);
  opacity: 0.03;
}

/* Estrellas chilenas decorativas */
.star {
  position: absolute;
  z-index: -1;
  opacity: 0.05;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-color: var(--azul);
}

.star-1 {
  top: 10%;
  left: 5%;
  width: 50px;
  height: 50px;
}

.star-2 {
  top: 20%;
  right: 10%;
  width: 30px;
  height: 30px;
}

.star-3 {
  bottom: 15%;
  left: 15%;
  width: 40px;
  height: 40px;
}
