/* =============================================
   GRÚAS PARA CHILE - Stylesheet
   ============================================= */

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

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FED7AA;
  --yellow: #FBBF24;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --slate: #475569;
  --slate-light: #94A3B8;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --green-wa: #25D366;
  --green-wa-dark: #128C7E;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text strong {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--slate-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  white-space: nowrap;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.4) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 60% 30%, rgba(249,115,22,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 70%, rgba(251,191,36,0.1) 0%, transparent 50%),
    linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  padding: 80px 24px 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--orange-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--white);
}

.highlight {
  font-style: normal;
  color: var(--orange);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--slate-light);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(249,115,22,0.5);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: var(--green-wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37,211,102,0.45);
}

.btn-icon {
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat span {
  font-size: 0.78rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* GEO BAR */
.geo-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(249,115,22,0.2);
  padding: 28px 24px;
}

.geo-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.geo-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.geo-sub {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-bottom: 16px;
}

.geo-input-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.geo-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}

.geo-input::placeholder {
  color: var(--slate-light);
}

.geo-input:focus {
  border-color: var(--orange);
  background: rgba(249,115,22,0.08);
}

.geo-btn {
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  white-space: nowrap;
}

.geo-btn:hover {
  background: rgba(255,255,255,0.15);
}

.geo-btn-search {
  background: var(--orange);
  border-color: var(--orange);
}

.geo-btn-search:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.geo-result {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--orange-light);
  min-height: 20px;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
.section {
  padding: 96px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--orange);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1rem;
  color: var(--slate-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background: var(--dark-2);
}

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

.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.65;
}

/* =============================================
   EQUIPOS
   ============================================= */
.equipos-section {
  background: var(--dark);
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.equipo-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(30,41,59,0.8) 0%, rgba(51,65,85,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.equipo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.25);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}

.equipo-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: block;
}

.equipo-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.equipo-card p {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.6;
}

/* =============================================
   CIUDADES
   ============================================= */
.ciudades-section {
  background: var(--dark-2);
}

.ciudades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.ciudad-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--slate-light);
  transition: var(--transition);
  cursor: pointer;
}

.ciudad-tag:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.4);
  color: var(--orange-light);
  transform: translateY(-2px);
}

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

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.btn-cta-big {
  display: inline-block;
  background: var(--white);
  color: var(--orange-dark);
  padding: 20px 48px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-cta-big:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 56px rgba(0,0,0,0.3);
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto-section {
  background: var(--dark);
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.contacto-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contacto-card:hover {
  border-color: rgba(249,115,22,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contacto-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.contacto-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contacto-card p {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.5;
}

.contacto-link {
  display: block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  transition: var(--transition);
}

.contacto-link:hover {
  color: var(--orange-light);
}

/* Contact Form */
.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-light);
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(249,115,22,0.06);
}

.btn-form-submit {
  width: 100%;
  padding: 15px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.form-success {
  text-align: center;
  padding: 20px;
  color: #4ade80;
  font-weight: 600;
  font-size: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #080E1A;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
  display: inline;
}

.footer-brand > div, .footer-brand > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.88rem;
  color: var(--slate-light);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate);
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.floating-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: floatBounce 3s ease-in-out infinite;
}

.floating-wa:hover {
  background: var(--green-wa-dark);
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37,211,102,0.5);
  animation: none;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 20px;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-stats {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero-content {
    padding: 60px 20px 32px;
  }

  .services-grid,
  .equipos-grid {
    grid-template-columns: 1fr;
  }

  .stat-divider {
    height: 28px;
  }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
