/* Base styles - Colores de la bandera chilena */
:root {
  --primary-color: #0039A6; /* Azul chileno */
  --secondary-color: #D52B1E; /* Rojo chileno */
  --light-color: #ffffff;
  --dark-color: #222222;
  --text-color: #333333;
  --bg-light: #f5f5f5;
  --border-radius: 6px;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Nunito', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

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

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(45deg, var(--primary-color), #1852c7);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 1px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-color), #f73b2e);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

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

/* Header y Navegación - Estilo único chileno */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
  font-weight: 900;
}

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

nav {
  display: flex;
  align-items: center;
}

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

.nav-menu a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section - Estilo Chileno */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary-color), #0452d9);
  color: var(--light-color);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10L35 20H25L30 10Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M70 10L75 20H65L70 10Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M30 50L35 60H25L30 50Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M70 50L75 60H65L70 50Z' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Características - Estilo Cordillera de los Andes */
.caracteristicas {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.caracteristicas::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C150,90 350,0 500,70 C650,140 750,40 900,90 C1050,140 1150,60 1200,80 L1200,120 L0,120 Z' fill='%23f5f5f5'/%3E%3C/svg%3E");
  background-size: cover;
}

.section-heading {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.caracteristicas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.caracteristica-box {
  background-color: var(--light-color);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.caracteristica-box:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--secondary-color);
}

.caracteristica-icon {
  margin-bottom: 1.5rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), rgba(0, 57, 166, 0.7));
  color: var(--light-color);
}

.caracteristica-title {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Cómo Funciona - Estilo Viñedo Chileno */
.como-funciona {
  padding: 80px 0;
  background-color: var(--bg-light);
  position: relative;
}

.como-funciona::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--light-color);
}

.pasos-wrap {
  position: relative;
  padding: 20px 0;
}

.pasos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
}

.paso-box {
  background-color: var(--light-color);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
  text-align: center;
}

.paso-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 15px 15px 0 0;
}

.paso-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.paso-numero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(213, 43, 30, 0.3);
}

.paso-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Acerca de - Estilo Patrimonial Chileno */
.acerca-de {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.acerca-de-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.acerca-de-content {
  max-width: 560px;
}

.acerca-de-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.acerca-de-content p {
  margin-bottom: 1.5rem;
}

.acerca-de-content ul {
  margin: 2rem 0;
  padding-left: 1rem;
}

.acerca-de-content li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}

.acerca-de-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.acerca-de-content .btn {
  margin-top: 1.5rem;
}

.acerca-de-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* CTA Section - Estilo Valle Central */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color), #ff5447);
  color: var(--light-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10L35 20H25L30 10Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M70 10L75 20H65L70 10Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M30 50L35 60H25L30 50Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M70 50L75 60H65L70 50Z' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.2;
}

.cta h2 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  position: relative;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.9;
}

.cta .btn {
  background: var(--light-color);
  color: var(--secondary-color);
  font-size: 1.1rem;
  border: 2px solid var(--light-color);
}

.cta .btn::before {
  background: linear-gradient(45deg, var(--primary-color), #1852c7);
}

.cta .btn:hover {
  color: var(--light-color);
}

/* Footer - Estilo Mapuche */
footer {
  padding: 70px 0 30px;
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-column p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-logo {
  display: block;
  margin-top: 1.5rem;
  width: fit-content;
}

.footer-links li {
  margin-bottom: 0.8rem;
  position: relative;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  padding-left: 15px;
}

.footer-links a:hover {
  color: var(--light-color);
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  transition: var(--transition);
}

.footer-links a:hover::before {
  left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-container,
  .acerca-de-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .acerca-de-content {
    order: 2;
    margin: 0 auto;
    text-align: center;
  }
  
  .acerca-de-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .acerca-de-content li {
    padding-left: 0;
    padding-top: 30px;
  }
  
  .acerca-de-content li::before {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--light-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition);
    opacity: 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
    opacity: 1;
  }
  
  .hamburger {
    display: block;
  }
  
  .caracteristicas-container,
  .pasos-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto 2rem;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a {
    padding-left: 0;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-logo {
    margin: 1.5rem auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .caracteristica-box,
  .paso-box {
    padding: 2rem 1.5rem;
  }
}
