:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fb923c;
  --secondary: #f97316;
  --accent: #fdba74;
  --dark: #1c1917;
  --dark-2: #292524;
  --gray: #78716c;
  --light: #fff7ed;
  --white: #ffffff;
  --success: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(234, 88, 12, 0.08);
  --shadow-lg: 0 20px 60px rgba(234, 88, 12, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234,88,12,0.08);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(234,88,12,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.55rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--dark-2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; box-shadow: 0 4px 18px rgba(234,88,12,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(234,88,12,0.5); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

/* HERO */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 35%, #fffbeb 70%, #ffffff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -15%; right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; color: var(--dark);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--gray); max-width: 520px; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; }
.stat-item h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.stat-item p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.hero-card {
  background: white; border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
  border: 1px solid rgba(234,88,12,0.08);
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-card-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
}
.service-list { list-style: none; }
.service-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #ffedd5; font-weight: 500; font-size: 0.95rem;
}
.service-list li:last-child { border-bottom: none; }
.check-icon {
  width: 24px; height: 24px; background: #ffedd5; color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
}

/* SECTIONS */
section { padding: 90px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .label {
  display: inline-block; background: #ffedd5; color: var(--primary-dark);
  font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.section-header p { color: var(--gray); font-size: 1.05rem; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background: white; border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), #f59e0b); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.icon-web { background: #ffedd5; }
.icon-mobile { background: #fef3c7; }
.icon-seo { background: #d1fae5; }
.icon-drone { background: #fee2e2; }
.icon-video { background: #fce7f3; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }
.service-card ul { list-style: none; font-size: 0.9rem; color: var(--dark-2); margin-bottom: 20px; }
.service-card ul li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.service-card ul li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.service-card .btn { width: 100%; margin-top: 8px; }

/* ABOUT */
.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px;
}
.about-content p { color: var(--gray); margin-bottom: 16px; font-size: 1.05rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-feature { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.about-feature span {
  width: 28px; height: 28px; background: #ffedd5; color: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.about-visual {
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  border-radius: 24px; padding: 48px 40px; color: white; position: relative; overflow: hidden;
}
.about-visual::after {
  content: ''; position: absolute; bottom: -30%; right: -20%;
  width: 250px; height: 250px; background: rgba(255,255,255,0.12); border-radius: 50%;
}
.about-visual h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.about-visual p { opacity: 0.95; margin-bottom: 28px; position: relative; z-index: 1; }
.about-visual .btn { position: relative; z-index: 1; background: white; color: var(--primary-dark); }
.about-visual .btn:hover { background: #fff7ed; }

/* FAQ */
.faq { background: white; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid #fed7aa; border-radius: 14px; margin-bottom: 12px;
  overflow: hidden; transition: box-shadow 0.25s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; text-align: left; padding: 18px 22px;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--dark);
  transition: background 0.2s;
}
.faq-question:hover { background: #fff7ed; }
.faq-question .icon {
  width: 28px; height: 28px; border-radius: 50%; background: #ffedd5;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.3s;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--primary); color: white; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px; color: var(--gray); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 20px; }

/* CONTACT */
.contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.contact-info > p { color: var(--gray); margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #ffedd5;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--gray); font-size: 0.95rem; }
.contact-item a:hover { color: var(--primary); }
.form-card {
  background: white; border-radius: 20px; padding: 36px 32px;
  box-shadow: var(--shadow); border: 1px solid #fed7aa;
}
.form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-card > p { color: var(--gray); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid #fed7aa; border-radius: 12px;
  font-size: 0.95rem; font-family: inherit; background: white;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: 100%; padding: 14px; font-size: 1rem; }
.form-note { font-size: 0.8rem; color: var(--gray); text-align: center; margin-top: 12px; }

/* PAGE HERO (service pages) */
.page-hero {
  padding: 130px 0 70px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 50%, #ffffff 100%);
  text-align: center;
}
.page-hero .label {
  display: inline-block; background: #ffedd5; color: var(--primary-dark);
  font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.page-hero p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* SERVICE DETAIL */
.service-detail { padding: 70px 0 90px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 50px; align-items: start; }
.detail-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.detail-content p { color: var(--gray); margin-bottom: 16px; font-size: 1.05rem; }
.detail-content ul { list-style: none; margin: 20px 0 28px; }
.detail-content ul li {
  padding: 10px 0; border-bottom: 1px solid #ffedd5;
  display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem;
}
.detail-content ul li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.process-steps { display: grid; gap: 16px; margin: 28px 0; }
.process-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--light); padding: 18px 20px; border-radius: 14px;
}
.process-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.95rem;
}
.process-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.process-step p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.detail-sidebar {
  background: white; border: 1px solid #fed7aa; border-radius: 20px;
  padding: 28px; position: sticky; top: 90px; box-shadow: var(--shadow);
}
.detail-sidebar h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.detail-sidebar ul { list-style: none; margin-bottom: 24px; }
.detail-sidebar ul li { padding: 8px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.detail-sidebar ul li::before { content: '●'; color: var(--primary); font-size: 0.5rem; }
.detail-sidebar .btn { width: 100%; margin-bottom: 10px; }

/* FOOTER */
footer { background: var(--dark); color: #a8a29e; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid #292524; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}

/* TOAST */
.toast {
  position: fixed; bottom: 30px; right: 30px; background: var(--dark); color: white;
  padding: 16px 24px; border-radius: 12px; font-size: 0.95rem;
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: all 0.35s ease; z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 24px; gap: 16px;
    border-bottom: 1px solid #fed7aa; box-shadow: var(--shadow);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: flex; }
  .detail-sidebar { position: static; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 70px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .page-hero { padding: 120px 0 50px; }
}

/* ========== LOADING SCREEN ========== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f0f10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  animation: loaderPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.45);
}
.loader-text {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a8a29e;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.loader-bar {
  margin-top: 24px;
  width: 120px;
  height: 3px;
  background: #292524;
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ea580c, #f97316);
  border-radius: 3px;
  animation: loaderBar 1.1s ease-in-out forwards;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(234, 88, 12, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(234, 88, 12, 0.65); }
}
@keyframes loaderBar {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Mobile touch improvements */
@media (max-width: 600px) {
  .btn { min-height: 44px; padding: 12px 20px; }
  .nav-links a { padding: 10px 0; display: block; }
  .faq-question { min-height: 48px; }
  .service-card { padding: 24px 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px; /* prevent iOS zoom */
  }
}

/* Content fade-in after load */
body.loaded .hero-content,
body.loaded .hero-visual {
  animation: fadeUp 0.6s ease both;
}
body.loaded .hero-visual { animation-delay: 0.15s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .navbar { backdrop-filter: blur(8px); }
}
