/* ============ ROOT / THEME TOKENS ============ */
:root {
  --primary: 221 83% 18%;         /* navy blue */
  --primary-foreground: 210 40% 98%;
  --secondary: 360 68% 41%;       /* brand red */
  --secondary-foreground: 0 0% 100%;
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --whatsapp: 142 71% 45%;
  --whatsapp-foreground: 0 0% 100%;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;

  --c-primary: hsl(var(--primary));
  --c-secondary: hsl(var(--secondary));
  --c-whatsapp: hsl(var(--whatsapp));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-700);
  background: #fff;
  padding-top: 80px; /* offset for fixed navbar */
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent { color: var(--c-secondary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-full { width: 100%; }
.btn-accent {
  background: var(--c-secondary);
  color: #fff;
}
.btn-accent:hover { opacity: 0.9; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline-light {
  background: #fff;
  color: #1f2937;
  border: 1px solid #fff;
}
.btn-outline-light:hover { background: var(--gray-100); }
.btn-whatsapp {
  background: var(--c-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { opacity: 0.9; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.navbar-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.navbar-logo { display: flex; align-items: center; margin-left: -1rem; }
.navbar-logo img { height: 56px; width: auto; }
.navbar-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  color: var(--foreground-color, #1f2937);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--c-secondary); }
.navbar-actions { display: none; align-items: center; gap: 1rem; flex-shrink: 0; }
.navbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.5rem;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}
.navbar-mobile.open { display: flex; }
.nav-link-mobile {
  padding: 0.6rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.navbar-mobile-phone {
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.navbar-mobile .btn { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-actions { display: flex; }
  .navbar-toggle { display: none; }
  .navbar-mobile { display: none !important; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 1rem;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a192f;
  background-image: radial-gradient(rgba(176, 34, 35, 0.15) 2px, transparent 2px);
  background-size: 30px 30px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10,15,40,0.9), rgba(10,15,40,0.7));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: var(--c-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
.hero-desc {
  color: #d1d5db;
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 36rem;
}
.hero-text .hero-desc { margin-left: auto; margin-right: auto; }
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.hero-image-wrap { position: relative; }
.hero-image {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.hero-image img { width: 100%; height: auto; border-radius: 0.75rem; }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,40,0.4), transparent);
}
.hero-float-card {
  position: absolute;
  left: 1rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 260px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(176, 34, 35, 0.3);
}
.hero-float-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(176, 34, 35, 0.2);
  border: 1px solid rgba(176, 34, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.hero-float-card h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
.hero-float-card p { color: #d1d5db; font-size: 0.85rem; margin: 0.15rem 0 0; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 5rem;
}
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.hero-stat:hover { border-bottom-color: var(--c-secondary); }
.hero-stat-icon {
  width: fit-content;
  padding: 0.75rem;
  border-radius: 999px;
  background: rgba(176, 34, 35, 0.2);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.hero-stat h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
.hero-stat p { color: #d1d5db; margin: 0; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-text { text-align: left; }
  .hero-text .hero-desc { margin-left: 0; margin-right: 0; }
  .hero-buttons { justify-content: flex-start; flex-direction: row; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 6rem; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ============ SECTIONS (shared) ============ */
.section { padding: 6rem 0; background: #fff; }
.section-gray { background: var(--gray-50); }
.section-fade { background: linear-gradient(to bottom, var(--gray-50), #fff); }

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: var(--c-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.section-header p { color: var(--gray-600); margin: 0; }

.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ============ SERVICES ============ */
.service-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.1); border-color: hsl(var(--secondary) / 0.3); }
.service-card.clickable { cursor: pointer; }
.service-icon {
  width: fit-content;
  padding: 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.05);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; }
.service-card p { color: var(--gray-600); margin: 0; }
.wa-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image { position: relative; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.about-image img { width: 100%; height: auto; }
.about-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.3), transparent);
}
.about-badge-bottom {
  position: absolute;
  bottom: -2rem; right: -0.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 260px;
}
.about-badge-top-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.about-badge-num {
  background: hsl(var(--secondary) / 0.2);
  color: var(--c-secondary);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}
.about-badge-top-row h3 { font-size: 0.95rem; font-weight: 600; color: var(--c-primary); margin: 0; }
.about-badge-top-row p { font-size: 0.8rem; color: var(--gray-500); margin: 0.1rem 0 0; }
.about-progress { width: 100%; height: 4px; background: var(--gray-100); border-radius: 999px; margin-bottom: 0.5rem; }
.about-progress-fill { width: 85%; height: 4px; background: var(--c-secondary); border-radius: 999px; }
.about-progress-label { font-size: 0.8rem; color: var(--gray-500); margin: 0; }
.about-badge-top {
  position: absolute;
  top: -2rem; left: -1rem;
  background: var(--c-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.about-badge-top span { color: #fff; font-weight: 700; font-size: 1.25rem; display: block; }
.about-badge-top p { color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 500; margin: 0.15rem 0 0; }

.about-grid h2 { font-size: 2rem; font-weight: 700; margin: 0 0 1.5rem; }
.about-desc { color: var(--gray-600); margin: 0 0 2rem; }
.about-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.about-benefit { color: var(--gray-700); font-size: 0.95rem; }

@media (min-width: 768px) {
  .about-benefits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ FEATURES ============ */
.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  background-image: linear-gradient(135deg, rgba(10,25,60,0.02) 0%, rgba(23,42,70,0.02) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.12); }
.feature-card-link { cursor: pointer; }
.feature-icon {
  width: 4rem; height: 4rem;
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--c-primary); text-align: center; margin: 0 0 0.75rem; }
.feature-card p { color: var(--gray-600); text-align: center; line-height: 1.6; margin: 0; flex-grow: 1; }
.feature-link-cta {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-secondary);
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-100);
}
.testimonial-stars { margin-bottom: 1rem; color: var(--c-secondary); letter-spacing: 2px; }
.testimonial-content { color: var(--gray-700); font-style: italic; margin: 0 0 1.5rem; }
.testimonial-name { font-weight: 600; color: var(--c-primary); margin: 0; }
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.testimonials-nav button {
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.testimonials-nav button:hover { background: var(--c-secondary); color: #fff; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-form-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.contact-form-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--c-primary); margin: 0 0 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-field label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--c-secondary);
}
.form-field { margin-bottom: 1.5rem; }
.form-status { font-size: 0.9rem; margin-top: 0.75rem; min-height: 1.2em; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.contact-info-col { display: flex; flex-direction: column; height: 100%; }
.contact-info-card {
  background: var(--c-primary);
  color: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.contact-info-card h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid hsl(var(--secondary) / 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.95rem; font-weight: 500; margin: 0; }
.contact-info-item p { color: #d1d5db; margin: 0.2rem 0 0; }
.contact-wa-btn { margin-top: 2rem; }
.contact-map { flex-grow: 1; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.08); min-height: 200px; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ============ FOOTER ============ */
.footer { background: #eaeaea; color: #0a0f28; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 1.5rem; }
.footer-desc { color: #0a0f28; margin: 0 0 1.5rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-social-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.375rem;
  background: rgba(10,15,40,0.08);
  color: #0a0f28;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}
.footer-social-btn:hover { background: var(--c-secondary); }
.footer-social-wa:hover { background: var(--c-whatsapp); }
.footer h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 1.5rem; color: #0a0f28; }
.footer ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer ul a { color: #0a0f28; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--c-secondary); }
.footer-subscribe { display: flex; margin-bottom: 1rem; }
.footer-subscribe input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid #c8c8c8;
  border-radius: 0.375rem 0 0 0.375rem;
  font-family: inherit;
  color: #0a0f28;
}
.footer-subscribe input:focus { outline: none; box-shadow: 0 0 0 2px var(--c-secondary); }
.footer-subscribe button {
  padding: 0 1rem;
  border: none;
  border-radius: 0 0.375rem 0.375rem 0;
  background: var(--c-secondary);
  color: #fff;
  font-size: 1rem;
}
.footer-subscribe button:hover { opacity: 0.9; }
.footer-fine-print { color: #0a0f28; font-size: 0.8rem; margin: 0; }

.footer-bottom { border-top: 1px solid rgba(10,15,40,0.15); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-bottom-inner p { color: #0a0f28; font-size: 0.85rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #0a0f28; font-size: 0.85rem; transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: var(--c-secondary); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}