/* 
   RECLIM CHILE - SISTEMA DE DISEÑO Y HOJA DE ESTILOS PREMIUM
   Paleta Monocromática: Negro · Blanco · Fúcsia
   Desarrollado con HTML5, CSS3 Nativo, HSL y Glassmorphism
*/

/* 1. IMPORTACIÓN DE TIPOGRAFÍAS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* 2. VARIABLES DEL SISTEMA DE DISEÑO (CSS TOKENS) */
:root {
  /* ── PALETA MONOCROMÁTICA + FÚCSIA ── */
  /* Primario: negro profundo */
  --primary-h: 0;
  --primary-s: 0%;
  --primary-l: 10%;
  --primary:        hsl(0, 0%, 10%);          /* Negro profundo */
  --primary-light:  hsl(0, 0%, 94%);          /* Gris muy claro */
  --primary-hover:  hsl(0, 0%, 20%);          /* Negro suavizado */
  --primary-dark:   hsl(0, 0%, 5%);           /* Negro puro */

  /* Acento: Negro elegante */
  --accent-h: 0;
  --accent-s: 0%;
  --accent-l: 10%;
  --accent:         hsl(0, 0%, 10%);           /* Negro elegante */
  --accent-hover:   hsl(0, 0%, 3%);            /* Negro puro */
  --accent-light:   hsl(0, 0%, 92%);           /* Gris muy claro */

  /* Fondos */
  --bg-color:       hsl(0, 0%, 97%);          /* Blanco roto */
  --surface-color:  #ffffff;

  /* Texto */
  --text-color:     hsl(0, 0%, 12%);          /* Casi negro */
  --text-muted:     hsl(0, 0%, 48%);          /* Gris medio */

  /* Sistema de Sombras */
  --shadow-sm:  0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.07);
  --shadow-lg:  0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 15px 25px -10px rgba(0, 0, 0, 0.09);
  --shadow-primary: 0 10px 20px -5px rgba(0, 0, 0, 0.25);
  --shadow-accent:  0 10px 20px -5px rgba(0, 0, 0, 0.30);

  /* Sistema de Radios */
  --radius-sm:    6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-round: 50%;

  /* Animaciones y Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

/* 3. RESET DE ESTILOS Y COMPORTAMIENTO GLOBAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* 4. UTILERÍAS DE DISEÑO */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center { text-align: center; }
.section-padding { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-title {
  margin-bottom: 3.5rem;
}
.section-title h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* 5. DISEÑO DE BOTONES PREMIUM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, hsl(0,0%,10%), hsl(0,0%,20%));
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: linear-gradient(135deg, hsl(0,0%,3%), hsl(0,0%,12%));
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 6. HEADER NAV - STICKY Y GLASSMORPHIC */
.header-top {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.header-top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-info-links span {
  margin-right: 1.5rem;
}
.header-info-links i {
  color: var(--accent);
  margin-right: 0.35rem;
}
.header-info-links a {
  color: rgba(255, 255, 255, 0.80);
}
.header-info-links a:hover {
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.97);
}

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

.logo img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

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

.nav-item a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.05rem;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), hsl(0,0%,40%));
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1010;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* 7. BOTÓN FLOTANTE WHATSAPP Y WIDGET */
.wa-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4), var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  animation: pulse 2s infinite;
  transition: var(--transition);
}
.wa-floating-btn:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}
.wa-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, hsl(0,0%,10%), hsl(0,0%,22%));
  border-radius: var(--radius-round);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 8. CARDS Y ELEMENTOS DE INTERFAZ */
.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.10);
}

/* Línea oscura en hover de card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), hsl(0,0%,45%));
  transition: var(--transition);
}
.card:hover::before {
  width: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

/* Parallax / Banner Sections */
.parallax-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 6rem 0;
  color: #ffffff;
}
.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.88), rgba(30, 30, 30, 0.70));
}
.parallax-content {
  position: relative;
  z-index: 10;
}

/* 9. MAQUETACIÓN FOOTER */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
  border-top: 4px solid hsl(0,0%,30%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-widget h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
  position: relative;
}
.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, hsl(0,0%,60%), hsl(0,0%,85%));
  border-radius: var(--radius-sm);
}

.footer-about img {
  height: 70px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.footer-contact i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-round);
  color: #ffffff;
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social-link:hover {
  background: linear-gradient(135deg, hsl(0,0%,30%), hsl(0,0%,50%));
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

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

/* 10. COMPORTAMIENTO RESPONSIVE */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    padding: 6rem 2.5rem;
    gap: 1.8rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1005;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .wa-floating-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}
