/* ===========================
   DENTAL CARISMAS2 — ESTILOS
   =========================== */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-med: #2563eb;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-tint: #eff6ff;
  --primary-tint2: #dbeafe;

  --accent: #f59e0b;
  --accent-dark: #b45309;
  --accent-light: #fef3c7;
  --accent-pale: #fffbeb;

  --text-dark: #0f172a;
  --text-med: #1e293b;
  --text-soft: #475569;
  --text-light: #94a3b8;

  --white: #ffffff;
  --warm-bg: #fdf8f0;
  --cool-bg: #f0f6ff;
  --border: #e2e8f0;
  --border-blue: #bfdbfe;

  --shadow-sm: 0 2px 8px rgba(29,78,216,0.08);
  --shadow-md: 0 6px 24px rgba(29,78,216,0.13);
  --shadow-lg: 0 12px 48px rgba(29,78,216,0.18);
  --shadow-xl: 0 20px 60px rgba(29,78,216,0.22);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Lexend', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding: 0;
}

#navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-tint);
}

.nav-cta {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 32px 20px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-menu a {
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  background: var(--primary-tint);
  color: var(--primary);
}

.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--cool-bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #bfdbfe 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding-right: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-heading);
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Right */
.hero-right {
  position: relative;
  height: 580px;
}

.hero-image-outer {
  position: absolute;
  inset: 0;
  border-radius: 0 0 0 80px;
  overflow: hidden;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-image-outer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-outer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,216,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  min-width: 220px;
}

.hero-float-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-float-icon svg { width: 22px; height: 22px; }

.hero-float-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.hero-float-text span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* ===== SECTION COMMONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-tint2);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 100px 32px;
  background: var(--white);
}

.services-container {
  max-width: 1280px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-tint2);
  transition: background 0.3s;
}

.service-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  background: var(--primary);
}

.service-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-color: transparent;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 52px;
}

.service-card.featured::before {
  display: none;
}

.service-card.featured:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

.featured-left { }

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

.featured-icon-bg {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}

.featured-icon-bg svg { width: 90px; height: 90px; }

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background 0.3s, color 0.3s;
}

.service-icon svg { width: 30px; height: 30px; }

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.service-card.featured .service-name {
  font-size: 2.2rem;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.service-card.featured .service-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

.service-card.featured .service-link {
  color: var(--accent);
  font-size: 0.95rem;
}

/* ===== NUMBERS STRIP ===== */
.numbers-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}

.numbers-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.numbers-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.number-item {
  text-align: center;
  color: var(--white);
}

.number-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.number-value span.accent {
  color: var(--accent);
}

.number-label {
  font-size: 0.88rem;
  opacity: 0.8;
  font-weight: 400;
}

/* ===== ABOUT / TEAM ===== */
.about-section {
  padding: 100px 32px;
  background: var(--warm-bg);
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  height: 500px;
  box-shadow: var(--shadow-lg);
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-img-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-img-badge span {
  font-size: 0.78rem;
  font-weight: 600;
}

.about-content { }

.about-credential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  border: 1.5px solid var(--primary-tint2);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

.about-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.8px;
}

.about-specialty {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-cedula {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.about-cedula strong {
  color: var(--text-dark);
  font-weight: 600;
}

.about-bio {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.about-feature-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature-icon svg {
  width: 11px;
  height: 11px;
  color: var(--accent-dark);
}

.team-section {
  text-align: center;
}

.team-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.team-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 100px 32px;
  background: var(--primary-tint);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--primary-tint2) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  opacity: 0.6;
}

.testimonials-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonials-grid .testimonial-card:nth-child(4) {
  grid-column: 1 / 2;
}

.testimonials-grid .testimonial-card:nth-child(5) {
  grid-column: 2 / 3;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.star {
  color: var(--accent);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-tint2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.author-detail {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 100px 32px;
  background: var(--text-dark);
}

.gallery-container {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-section .section-title { color: var(--white); }
.gallery-section .section-subtitle { color: rgba(255,255,255,0.6); }
.gallery-section .section-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #1e293b;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,78,216,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  color: var(--white);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay-icon svg { width: 18px; height: 18px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }

/* ===== FAQ ===== */
.faq-section {
  padding: 100px 32px;
  background: var(--warm-bg);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.faq-icon svg { width: 14px; height: 14px; }

.faq-item.open .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 32px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-med) 50%, #1d62f0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.cta-title .accent { color: var(--accent); }

.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-heading);
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 100px 32px;
  background: var(--white);
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.contact-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-med);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

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

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-submit svg { width: 20px; height: 20px; }

.contact-info { }

.contact-info-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-info-text {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item-icon svg { width: 20px; height: 20px; }

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
}

.contact-item-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item-value a:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.whatsapp-btn svg { width: 22px; height: 22px; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  padding: 72px 32px 48px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 38px;
  width: auto;
  border-radius: 6px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social:hover {
  background: var(--primary-light);
  color: var(--white);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-hours-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}

.footer-hours-day { color: rgba(255,255,255,0.5); }
.footer-hours-time { color: rgba(255,255,255,0.85); font-weight: 500; }

.footer-map {
  padding: 0 32px 48px;
}

.footer-map-inner {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  border: 1.5px solid var(--border-blue);
  position: relative;
  transition: opacity 0.3s, transform 0.3s;
}

.chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1.5px solid var(--border-blue);
  border-bottom: 1.5px solid var(--border-blue);
  transform: rotate(45deg);
}

.chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,78,216,0.45);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-btn:hover { background: var(--primary-dark); }

.chat-btn svg { width: 26px; height: 26px; }

/* Pulse animation using only transform and opacity */
.chat-btn.pulsing::before,
.chat-btn.pulsing::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--primary);
  animation: chat-pulse 2s ease-out infinite;
}

.chat-btn.pulsing::after {
  animation-delay: 1s;
}

@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 480px;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-avatar svg { width: 18px; height: 18px; color: white; }

.chat-header-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.chat-header-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
}

.chat-header-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.chat-header-close:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  min-height: 220px;
}

.chat-message {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-message.bot {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-message a {
  color: var(--primary);
  text-decoration: underline;
}

.chat-message.user a {
  color: rgba(255,255,255,0.9);
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing-dot 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--white);
}

.chat-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  outline: none;
  resize: none;
  max-height: 80px;
  overflow-y: auto;
  background: var(--cool-bg);
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--primary); }

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send:hover { background: var(--primary-dark); }
.chat-send svg { width: 16px; height: 16px; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr 1fr; }
  .hero-left { padding-right: 36px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    padding: 40px 24px 0;
  }

  .hero-left { padding-right: 0; }
  .hero-right {
    height: 320px;
    margin: 0 -24px;
  }

  .hero-image-outer {
    border-radius: 0;
    clip-path: none;
  }

  .hero-float-card { left: 16px; bottom: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .featured-right { display: none; }

  .numbers-container { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-badge { bottom: 10px; right: 10px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:nth-child(4),
  .testimonials-grid .testimonial-card:nth-child(5) { grid-column: 1; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.wide { grid-column: span 1; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item.tall { grid-row: span 1; }

  .footer-container { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 20px; }

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

  .chat-panel { width: 290px; }
}
