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

:root {
  --red: #ff1a1a;
  --red-dark: #c40000;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1e293b;
  --bg-footer: #0f172a;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* TOP BAR */
.top-bar { background: #1e293b; color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left a { color: #fff; display: flex; align-items: center; gap: 6px; }
.top-bar-left a svg { color: var(--red); fill: var(--red); }
.top-bar-left a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 10px; align-items: center; }
.top-bar-right a { color: #fff; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--red); transition: background .2s; }
.top-bar-right a:hover { background: var(--red-dark); }
.top-bar-right .btn-call { width: auto; height: auto; padding: 5px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: 0.3px; }

/* NAVBAR */
.navbar { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.logo img { height: 78px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a { font-size: 13.5px; font-weight: 700; color: var(--text); padding: 6px 10px; border-radius: 4px; transition: color .2s; text-transform: uppercase; letter-spacing: 0.3px; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 10px; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 0; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 16px; font-size: 13px; color: var(--text); }
.dropdown a:hover { background: #f8fafc; color: var(--red); }
.btn-call { background: linear-gradient(145deg, #ff1a1a, #c40000); color: #fff !important; padding: 10px 20px; border-radius: 4px; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: opacity .2s; }
.btn-call:hover { opacity: .9; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); color: #fff; padding: 72px 20px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #94a3b8; font-size: 15px; max-width: 560px; margin: 0 auto 24px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(145deg, #ff1a1a, #c40000); color: #fff; padding: 14px 28px; border-radius: 4px; font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 16px rgba(255,26,26,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,26,26,.45); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 12px 24px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: opacity .2s; }
.btn-whatsapp:hover { opacity: .9; }

/* SECTION */
.section-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 44px; }

/* FOOTER */
.footer { background: #ffffff; color: #334155; padding: 60px 0 0; border-top: 1px solid #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img {
  height: 44px;
  opacity: 1;
}
.footer-desc { font-size: 13px; line-height: 1.75; margin-bottom: 16px; color: #334155; }
.footer-google img { height: 56px; margin-top: 8px; }
.footer-col h4 { color: #1e293b; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #334155; transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; }
.footer-contact-item span { color: #334155; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { width: 32px; height: 32px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--red-dark); color: #fff; }
.footer-bottom { border-top: 1px solid #e2e8f0; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: #334155; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: #334155; }
.footer-bottom-links a:hover { color: var(--red); }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.45); z-index: 999; transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* FORM */
.form-input { padding: 12px 16px; border: 1.5px solid #e2e8f0; border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text); background: #fff; transition: border-color .2s; width: 100%; }
.form-input:focus { outline: none; border-color: var(--red); }
textarea.form-input { resize: vertical; min-height: 120px; }
.btn-submit { background: linear-gradient(145deg, #ff1a1a, #c40000); color: #fff; border: none; padding: 14px 24px; border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .2s; width: 100%; }
.btn-submit:hover { opacity: .9; }

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 9999;
  background: var(--red); color: #fff; padding: 10px 18px;
  border-radius: 4px; font-weight: 700; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* SCREEN-READER ONLY */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--text); transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* FORM LABELS */
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 5px;
}
.form-group { display: flex; flex-direction: column; }

/* FORM VALIDATION FEEDBACK */
.field-error {
  display: block; font-size: 12px; color: #dc2626;
  margin-top: 4px; min-height: 18px;
}
.form-input[aria-invalid="true"] { border-color: #dc2626; }
.form-input[aria-invalid="true"]:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.form-input:focus { box-shadow: 0 0 0 3px rgba(255,26,26,.15); }

/* FORM SUBMISSION BANNERS */
.form-banner {
  padding: 12px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.form-banner--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-banner--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* SCROLL-REVEAL ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.visible {
  animation: fadeInUp .55s ease-out both;
}

/* MOBILE NAV OPEN STATE */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .navbar .container { position: relative; flex-wrap: nowrap; padding: 8px 16px; }
  .logo img { height: 58px; }
  .top-bar-right .btn-call { font-size: 11px; padding: 5px 10px; margin-left: auto;}
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e2e8f0;
    flex-direction: column; align-items: stretch;
    padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 150;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 10px 20px; border-radius: 0; font-size: 15px; font-weight: 700 !important; text-transform: uppercase !important; }
  .has-dropdown > a::after { float: right; }
  .dropdown {
    position: static; box-shadow: none; border: none;
    padding: 0 0 0 16px; min-width: 0;
    display: none;
  }
  .has-dropdown.dropdown-open .dropdown { display: block; }
  .top-bar { font-size: 11px; padding: 6px 0; }
  .top-bar-left { gap: 10px; }
  .top-bar-right { gap: 6px; width: 100%; }
}

/* FOOTER ACTIVE LINK */
.footer-col ul li a.active-page { color: var(--red); font-weight: 600; }

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

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1 !important; transform: none !important;
    animation: none !important; transition: none !important;
  }
  .hero-slide { transition: none !important; }
  .btn-primary, .btn-call, .pass-card, .feature-card, .gallery-card {
    transition: none !important; transform: none !important;
  }
}
