/* ============================================================
   Better Choice Services - Main Stylesheet
   Infinitynet Services Corp | v1.0
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:     #ffffff;
  --primary-dark:#f5f5f5;
  --primary-light:#eeeeee;
  --gold:        #C4006A;
  --gold-light:  #e0007c;
  --accent:      #C4006A;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --light-gray:  #f1f3f8;
  --gray:        #8892a4;
  --dark-gray:   #4A4A4A;
  --text:        #4A4A4A;
  --border:      #e2e8f0;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.16);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  .3s ease;
  --font-body:   'Inter', sans-serif;
  --font-heading:'Playfair Display', serif;
}

/* ── Reset & 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); line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; color: #4A4A4A; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; color: var(--dark-gray); }
p:last-child { margin-bottom: 0; }

.rich-content p   { margin-bottom: 1.25rem; }
.rich-content h2,
.rich-content h3  { margin: 1.5rem 0 .75rem; }
.rich-content ul  { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content li  { margin-bottom: .4rem; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section.bg-light { background: var(--off-white); }
.section.bg-dark  { background: #4A4A4A; color: var(--white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header.light h2,
.section-header.light p { color: var(--white); }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,.12);
  padding: .35rem .9rem; border-radius: 2rem; margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { font-size: 1.05rem; color: var(--dark-gray); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--gold); color: var(--primary); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; color: #4A4A4A; border-color: #4A4A4A; }
.btn-outline:hover { background: #4A4A4A; color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-lg  { padding: .9rem 2.25rem; font-size: 1rem; }
.btn-full{ width: 100%; justify-content: center; }
.btn + .btn { margin-left: .75rem; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar { background: linear-gradient(90deg, #c4006a 0%, #9f0056 100%); color: rgba(255,255,255,.95); font-size: .8rem; padding: .45rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: rgba(255,255,255,.95); transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: .35rem; color: rgba(255,255,255,.85); }

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: var(--white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000; transition: all var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }

.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.1; font-family: var(--font-body); }
.logo-text em     { font-size: .75rem; font-style: normal; color: var(--gold); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .55rem .85rem; border-radius: var(--radius); font-size: .88rem; font-weight: 600;
  color: #4A4A4A; transition: all var(--transition); display: flex; align-items: center; gap: .4rem;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); background: rgba(201,168,76,.08); }
.main-nav .fa-chevron-down { font-size: .65rem; transition: transform var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .75rem; min-width: 260px; border: 1px solid var(--border); z-index: 100;
}
.dropdown::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--white); border-top: 1px solid var(--border); border-left: 1px solid var(--border); rotate: 45deg; }
.has-dropdown:hover .dropdown { display: block; animation: fadeInDown .2s ease; }
.has-dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown li a { padding: .6rem .85rem; border-radius: var(--radius); font-size: .875rem; display: flex; align-items: center; gap: .65rem; width: 100%; }
.dropdown li a:hover { background: var(--off-white); color: var(--gold); }
.dropdown li a i { width: 18px; color: var(--gold); }

.header-cta { margin-left: auto; flex-shrink: 0; }

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .75rem; cursor: pointer; position: relative; z-index: 1100; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all var(--transition); }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 1500;
  background: var(--primary); overflow-y: auto; padding: 2rem;
}
.mobile-nav-overlay.open { display: block; animation: fadeIn .3s ease; }
.mobile-nav-inner { max-width: 400px; }
.mobile-close { background: none; border: none; color: var(--white); font-size: 1.5rem; margin-bottom: 2rem; }
.mobile-nav-overlay ul  { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-overlay a   { color: var(--white); padding: .75rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); display: block; }
.mobile-nav-overlay a:hover { color: var(--gold); }
.mobile-has-sub > ul    { padding-left: 1rem; margin-top: .5rem; }
.mobile-has-sub > ul a  { font-size: .95rem; color: rgba(255,255,255,.8); }
.mobile-contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); }
.mobile-contact a { color: var(--gold); font-size: 1.1rem; font-weight: 700; }

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; background: #4A4A4A;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.3) contrast(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1.08) translateX(0);    }
  100% { transform: scale(1.02) translateX(-20px); }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(28,28,28,.78) 0%, rgba(28,28,28,.45) 45%, rgba(28,28,28,.22) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.5);
  color: var(--gold); padding: .4rem 1rem; border-radius: 2rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-content p  { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 2rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.8); }
.hero-trust i { color: var(--gold); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); color: var(--white);
  animation: bounce 2s infinite; transition: all var(--transition);
}
.hero-scroll a:hover { border-color: var(--gold); color: var(--gold); }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero { position: relative; padding: 6rem 0 4rem; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background: #4A4A4A url('../images/page-hero-bg.jpg') center/cover no-repeat; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(74,74,74,.95) 0%, rgba(196,0,106,.6) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-content { max-width: 700px; color: var(--white); }
.page-hero-content h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero-content p  { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.page-hero-short { padding: 4rem 0 3rem; }

.hero-service-icon { font-size: 3rem; color: var(--gold); margin-bottom: .75rem; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .65rem; }

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-body); line-height: 1; }
.stat-plus   { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label  { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); margin-top: .25rem; }

/* ── Services Grid ───────────────────────────────────────── */
/* auto-fit + max card width + justify-content centra cualquier número de tarjetas */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); gap: 1.75rem; justify-content: center; }
/* Cuando solo hay 2 tarjetas: forzar 2 columnas, mismo nivel, centradas bajo el título.
   Al añadir un 3er servicio el cap no aplica y el grid vuelve al auto-fit. */
@media (min-width: 768px) {
  .services-grid:has(.service-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 360px));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card-icon {
  background: var(--primary); color: var(--gold); font-size: 2rem;
  padding: 1.5rem; text-align: center;
}
.service-card-img img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.service-card-body p  { font-size: .9rem; margin-bottom: 1rem; }
.service-card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-weight: 700; font-size: .88rem;
  transition: gap var(--transition);
}
.service-card-link:hover { gap: .7rem; }

/* Services List (services.php) */
.services-list { display: flex; flex-direction: column; gap: 5rem; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row-image img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); }
.service-img-placeholder {
  width: 100%; height: 380px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--gold);
}
.service-row-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: .75rem; }
.service-row-content h2 { margin-bottom: 1rem; }
.service-features { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.service-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.service-features li i { color: var(--gold); flex-shrink: 0; }

/* Service Detail (single) */
.service-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; }
.service-features-box { background: var(--off-white); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; border-left: 4px solid var(--gold); }
.service-features-box h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.service-features-list { display: flex; flex-direction: column; gap: .6rem; }
.service-features-list li { display: flex; align-items: flex-start; gap: .7rem; }
.service-features-list li i { color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.service-gallery { margin-top: 2.5rem; }
.service-gallery h3 { margin-bottom: 1.25rem; }

/* Sidebar */
.service-detail-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-cta { background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; }
.sidebar-cta h3 { color: var(--white); margin-bottom: .5rem; font-size: 1.1rem; }
.sidebar-cta p  { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; font-size: .9rem; }
.sidebar-cta .btn + .btn { margin-left: 0; margin-top: .75rem; }
.sidebar-cta .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.sidebar-cta .btn-outline:hover { background: rgba(255,255,255,.1); }
.sidebar-form { background: var(--off-white); border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--border); }
.sidebar-form h3 { margin-bottom: 1.25rem; }
.sidebar-services { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--border); }
.sidebar-services h3 { margin-bottom: 1rem; }
.sidebar-services ul { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-services a { padding: .55rem .5rem; display: flex; align-items: center; gap: .65rem; font-size: .88rem; border-radius: var(--radius); transition: all var(--transition); }
.sidebar-services a:hover { background: var(--off-white); color: var(--gold); }
.sidebar-services i { width: 20px; color: var(--gold); }

/* ── About Snippet ───────────────────────────────────────── */
.about-snippet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-snippet-image { position: relative; }
.about-snippet-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--gold); }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--gold); color: var(--primary); padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.about-badge span   { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.about-snippet-content .section-label { margin-bottom: .75rem; }
.about-snippet-content h2 { margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0 2rem; }
.about-feature { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 500; }
.about-feature i { color: var(--gold); flex-shrink: 0; }
.about-actions { display: flex; gap: .75rem; }

/* ── Process Steps ───────────────────────────────────────── */
.process-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: nowrap; overflow-x: auto; padding: 1rem 0;
}
.process-step {
  flex: 1; min-width: 180px; text-align: center; padding: 1.5rem 1rem;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border);
  position: relative; box-shadow: var(--shadow-sm);
}
.step-number {
  font-size: .75rem; font-weight: 800; color: var(--gold); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.step-icon {
  width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; color: var(--gold); font-size: 1.3rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.process-step p  { font-size: .85rem; margin: 0; }
.process-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.25rem; padding: 0 .5rem; flex-shrink: 0; margin-top: 3.5rem;
}

/* Timeline (how-it-works) */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; padding-bottom: 3rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 44px; top: 80px; width: 2px; height: calc(100% - 60px); background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-step { text-align: center; }
.step-num { display: block; font-size: .7rem; font-weight: 800; color: var(--gold); letter-spacing: .08em; margin-bottom: .5rem; }
.step-icon-lg {
  width: 72px; height: 72px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold); margin: 0 auto; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--border);
}
.timeline-content { padding: .75rem 0 0; }
.timeline-content h3 { margin-bottom: .75rem; }
.timeline-content ul { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.timeline-content li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--dark-gray); }
.timeline-content li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.filter-btn {
  padding: .5rem 1.25rem; border-radius: 2rem; font-size: .85rem; font-weight: 600;
  border: 2px solid var(--border); background: var(--white); color: var(--dark-gray);
  transition: all var(--transition); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-grid { display: grid; gap: 1rem; }
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(27,42,74,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); opacity: 0; transition: opacity var(--transition); gap: .5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; }
.gallery-overlay span { font-size: .85rem; text-align: center; padding: 0 1rem; }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: var(--radius); }
.lightbox-content p { color: rgba(255,255,255,.8); margin-top: .75rem; font-size: .9rem; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 1.75rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: var(--white); font-size: 1.25rem; padding: 1rem; border-radius: 50%; transition: background var(--transition); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.testimonial-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 2rem; }
.testimonial-stars { color: var(--gold); margin-bottom: .75rem; }
.testimonial-card blockquote { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.9); font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 1.25rem; }
.testimonial-author strong { display: block; color: var(--white); font-size: .92rem; }
.testimonial-author span   { font-size: .78rem; color: var(--gold); }

/* ── About Page Specifics ────────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.image-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--gold); }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mvv-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.mvv-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--gold); margin: 0 auto 1.25rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.feature-item { text-align: center; padding: 2rem; }
.feature-item > i { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.feature-item h3 { margin-bottom: .6rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; max-width: 600px; margin: 0 auto; }
.team-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); text-align: center; }
.team-photo { font-size: 5rem; color: var(--gray); margin-bottom: 1rem; }
.team-info h3 { margin-bottom: .25rem; }
.team-info > span { color: var(--gold); font-weight: 600; font-size: .88rem; display: block; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--primary); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .9rem; color: var(--text);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,42,74,.08); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-disclaimer { text-align: center; font-size: .78rem; color: var(--gray); margin-top: .75rem; }
.form-disclaimer i { color: var(--gold); }

/* Quick Form */
.quick-form { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }

/* Form Card */
.form-card { background: var(--off-white); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); }
.form-card h3 { margin-bottom: 1.25rem; }
.form-card-lg { padding: 3rem; }
.form-intro { margin-bottom: 1.5rem; color: var(--dark-gray); }

/* Multi-step Form */
.form-step { display: none; }
.form-step.active { display: block; }
.step-header { margin-bottom: 1.75rem; }
.step-badge { display: inline-block; background: rgba(201,168,76,.15); color: var(--gold); font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 2rem; margin-bottom: .5rem; }
.step-header h3 { margin: 0; }
.form-actions-row { display: flex; gap: 1rem; margin-top: .5rem; }
.form-actions-row .btn { flex: 1; }
.form-progress { height: 3px; background: var(--border); border-radius: 2px; margin-top: 2rem; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gold); border-radius: 2px; transition: width .4s ease; }

/* Service Checkboxes */
.service-checkboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.checkbox-label {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); text-align: center; font-size: .82rem; font-weight: 600;
}
.checkbox-label input { display: none; }
.checkbox-label i { font-size: 1.5rem; color: var(--gray); transition: color var(--transition); }
.checkbox-label.checked,
.checkbox-label:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,.08); }
.checkbox-label:has(input:checked) i { color: var(--gold); }

/* ── Contact / Quote Page ────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: .95rem; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--primary); font-weight: 700; font-size: .88rem; margin-bottom: .15rem; }
.contact-item a { color: var(--dark-gray); transition: color var(--transition); font-size: .92rem; }
.contact-item a:hover { color: var(--gold); }
.contact-item span { font-size: .9rem; color: var(--dark-gray); }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: .5rem; }

.quote-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.quote-info-card { background: var(--off-white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); margin-bottom: 1rem; }
.quote-info-card h3 { display: flex; align-items: center; gap: .6rem; font-size: .95rem; margin-bottom: .4rem; }
.quote-info-card h3 i { color: var(--gold); }
.quote-info-card p { font-size: .88rem; margin: 0; }
.quote-contact-box { background: var(--primary); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.quote-contact-box p { color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.quote-contact-box .btn + .btn { margin-left: 0; margin-top: .75rem; }
.quote-contact-box .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }

/* ── Contact CTA Section ─────────────────────────────────── */
.contact-cta-section { background: var(--off-white); }
.contact-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-cta-content .section-label { margin-bottom: .75rem; }
.contact-cta-content h2 { margin-bottom: 1rem; }
.cta-benefits { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.cta-benefits li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; }
.cta-benefits i { color: var(--gold); }

/* ── Pre-Footer CTA ──────────────────────────────────────── */
.pre-footer-cta { background: linear-gradient(135deg, #C4006A 0%, #a00058 100%); padding: 5rem 0; text-align: center; }
.cta-content h2 { color: #ffffff; margin-bottom: .75rem; }
.cta-content p  { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page CTA ────────────────────────────────────────────── */
.page-cta { background: linear-gradient(135deg, #C4006A 0%, #a00058 100%); text-align: center; }
.page-cta-content h2 { color: var(--white); margin-bottom: .75rem; }
.page-cta-content p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.page-cta-content .btn + .btn { margin-left: .75rem; }
.page-cta-content .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.page-cta-content .btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #4A4A4A; color: rgba(255,255,255,.75); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 48px; margin-bottom: 1rem; }
.footer-logo-text { display: flex; flex-direction: column; margin-bottom: 1rem; }
.footer-logo-text strong { color: var(--white); font-size: 1.1rem; font-weight: 800; font-family: var(--font-body); }
.footer-logo-text em { color: var(--gold); font-style: normal; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.80); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all var(--transition); font-size: .88rem; }
.footer-social a:hover { background: var(--gold); color: var(--primary); }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; font-family: var(--font-body); border-bottom: 2px solid var(--gold); padding-bottom: .5rem; display: inline-block; }
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a { font-size: .87rem; color: rgba(255,255,255,.65); transition: all var(--transition); display: flex; align-items: center; gap: .5rem; padding: .2rem 0; }
.footer-col a:hover { color: var(--gold); padding-left: .25rem; }
.footer-col i { font-size: .65rem; color: var(--gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.footer-contact li > i { color: var(--gold); margin-top: .15rem; flex-shrink: 0; width: 16px; }
.footer-contact a { color: rgba(255,255,255,.65); font-size: .87rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem; display: flex; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .8rem; margin: 0; color: rgba(255,255,255,.85); }
.footer-bottom a { color: var(--gold); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Error Page ──────────────────────────────────────────── */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-content { text-align: center; }
.error-number { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .15; line-height: 1; }
.error-content h1 { margin: -1rem 0 1rem; }
.error-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn        { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInDown    { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: translateY(0) } }
@keyframes bounce        { 0%, 100% { transform: translateX(-50%) translateY(0) } 50% { transform: translateX(-50%) translateY(-8px) } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Home Page Specifics (moved from inline) ─────────────── */
:root { --concept-dark: #2f2f2f; --concept-mid: #4f4f4f; --concept-soft: #f5f6f8; }

.about-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, #3f3f3f 0%, #606060 100%); }

/* About carousel */
.about-carousel { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg, 16px); overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.18); background: #1c1c1c; }
.about-carousel .ac-track { position: relative; width: 100%; height: 100%; }
.about-carousel .ac-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.about-carousel .ac-slide.is-active { opacity: 1; }
.about-carousel .ac-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-carousel .ac-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: background .2s; z-index: 2; }
.about-carousel .ac-arrow:hover { background: rgba(196,0,106,.85); }
.about-carousel .ac-prev { left: 10px; }
.about-carousel .ac-next { right: 10px; }
.about-carousel .ac-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.about-carousel .ac-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s, transform .2s; }
.about-carousel .ac-dot.is-active { background: #c4006a; transform: scale(1.2); }
.about-carousel .ac-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 44px; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 60%, transparent 100%); color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.4); pointer-events: none; z-index: 1; }
@media (max-width: 640px) { .about-carousel .ac-caption { font-size: 1.05rem; padding: 36px 18px 36px; } }

/* Hero layout (home) */
.hero .container.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.hero-content { max-width: 640px; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content p { max-width: 56ch; }
.hero-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; box-shadow: 0 15px 30px rgba(0,0,0,.2); }
.hero-panel h3 { font-family: var(--font-heading); font-size: 1.45rem; color: #fff; margin-bottom: .9rem; }
.hero-panel ul { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.hero-panel li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero-panel i { color: var(--gold); margin-top: .15rem; }
.hero-panel .mini-note { padding: .8rem .9rem; border-radius: 10px; background: rgba(0,0,0,.2); font-size: .84rem; color: rgba(255,255,255,.9); }

/* Proof strip */
.proof-strip { background: var(--concept-soft); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); padding: 1.2rem 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proof-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-sm); }
.proof-item i { width: 40px; height: 40px; border-radius: 50%; background: rgba(196,0,106,.1); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proof-item strong { display: block; color: var(--concept-dark); font-size: .96rem; margin-bottom: .12rem; }
.proof-item span { color: var(--concept-mid); font-size: .84rem; line-height: 1.4; }

.section-header p { max-width: 64ch; margin-inline: auto; }
.contact-cta-section { background: linear-gradient(180deg, #f8f9fc 0%, #f1f3f8 100%); }
.footer-logo img { filter: brightness(0) invert(1); opacity: .95; }

/* Honeypot (hidden from humans) */
.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Hamburger + mobile menu (moved from inline) */
#nav-check { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span { display: block; width: 28px; height: 3px; background: #c4006a; border-radius: 3px; transition: transform .25s ease, opacity .25s ease; }
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.25);
  overflow: hidden;
}
#mobile-menu .mob-inner {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 78%;
  max-width: 320px;
  background: rgba(196, 0, 106, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  padding: 1.5rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,.3);
  border-left: 1px solid rgba(255,255,255,.18);
  transform: translateX(100%);
  transition: transform .28s ease;
}
/* Fallback para navegadores sin soporte de backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #mobile-menu .mob-inner { background: rgba(196, 0, 106, 0.92); }
}
#mobile-menu.is-open .mob-inner { transform: translateX(0); }
#mobile-menu .mob-close {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-end;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  padding: 0;
  margin-bottom: 1.25rem;
  line-height: 1;
  width: 44px; height: 44px;
  transition: background .2s;
}
#mobile-menu .mob-close:hover { background: rgba(255,255,255,.28); }
#mobile-menu a {
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
#mobile-menu .mob-btn {
  display: block;
  background: #fff;
  color: #c4006a !important;
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.5rem;
  border: none;
}

/* ── Global responsive safety ────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg { max-width: 100%; height: auto; }
input, select, textarea { font-size: 16px; } /* prevents iOS auto-zoom on focus */

/* ── Responsive (mobile-first comprehensive breakpoints) ── */

/* Large desktop */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1.25rem; }
  .hero .container.hero-layout { gap: 1.5rem; }
}

/* Hero panel collapses to single column */
@media (max-width: 1000px) {
  .hero .container.hero-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 640px; }
  .proof-grid { grid-template-columns: 1fr; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hamburger { display: flex; }
  .about-snippet-grid, .two-col-grid, .contact-grid, .quote-grid, .contact-cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { bottom: -1rem; right: -.5rem; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mvv-grid { grid-template-columns: 1fr; }
  .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-steps { flex-direction: column; gap: 1rem; overflow-x: visible; align-items: stretch; }
  .process-step { flex: 1 1 auto; min-width: 0; }
  .process-connector { transform: rotate(90deg); margin: 0 auto; padding: .25rem 0; }
  .hero { min-height: auto; padding: 4.5rem 0 5.5rem; }
  .hero-content { max-width: 100%; }
  .topbar-left { flex-wrap: wrap; justify-content: center; gap: .75rem; row-gap: .35rem; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 50px 0; }
  .topbar { font-size: .72rem; padding: .4rem 0; }
  .header-inner { padding: .65rem 0; gap: .75rem; }
  .logo img { height: 44px; width: auto; }
  .stat-number { font-size: 2rem; }
  .stat-plus { font-size: 1.2rem; }
  .stat-label { font-size: .72rem; }
  .about-snippet-grid { gap: 2rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .35rem; }
  .about-carousel .ac-arrow { width: 36px; height: 36px; }
}

/* Phones */
@media (max-width: 640px) {
  .hero-panel { padding: 1.1rem; }
  .hero-panel h3 { font-size: 1.25rem; }
  .about-carousel .ac-arrow { width: 34px; height: 34px; }
}

@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 2.25rem; }
  .topbar { font-size: .7rem; }
  .topbar .container { flex-direction: column; gap: .35rem; padding: 0 .85rem; }
  .topbar-left { flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
  .header-inner { padding: .55rem 0; }
  .logo img { height: 40px; width: auto; }
  .hero { min-height: auto; padding: 3rem 0 4rem; }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.2; }
  .hero-content p { font-size: 1rem; line-height: 1.65; margin-bottom: 1.5rem; }
  .hero-badge { font-size: .72rem; padding: .35rem .8rem; margin-bottom: 1rem; }
  .hero-actions { flex-direction: column; gap: .65rem; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: .75rem; flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-number { font-size: 1.85rem; }
  .stat-label { font-size: .68rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-body { padding: 1.25rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-card { padding: 1.5rem; }
  .gallery-grid-4, .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quick-form { padding: 1.5rem 1.25rem; }
  .about-features { grid-template-columns: 1fr; }
  .about-actions { flex-direction: column; width: 100%; gap: .65rem; }
  .about-actions .btn { width: 100%; justify-content: center; }
  .about-badge { position: static; display: inline-flex; flex-direction: column; align-items: center; margin: 1rem auto 0; bottom: auto; right: auto; }
  .about-snippet-image { text-align: center; }
  .service-checkboxes { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .service-detail-sidebar { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col h4 { font-size: .85rem; }
  .pre-footer-cta { padding: 3rem 0; }
  .cta-content h2 { font-size: clamp(1.4rem, 5vw, 1.75rem); }
  .btn + .btn { margin-left: 0; margin-top: .5rem; }
  .btn { padding: .8rem 1.4rem; font-size: .92rem; min-height: 44px; }
  .alert { padding: .85rem 1rem; font-size: .9rem; }
}

/* Small phones (iPhone SE, Galaxy S, etc.) */
@media (max-width: 420px) {
  .container { padding: 0 .9rem; }
  .topbar { font-size: .68rem; }
  .topbar i { margin-right: .25rem; }
  .logo img { height: 38px; }
  .hero-content h1 { font-size: 1.55rem; }
  .hero-content p { font-size: .95rem; }
  .hero-badge { font-size: .68rem; }
  .hero-panel { padding: 1rem; }
  .hero-panel h3 { font-size: 1.1rem; }
  .hero-panel li { font-size: .85rem; }
  .hero-panel .mini-note { font-size: .78rem; }
  .stats-grid { gap: .9rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-plus { font-size: 1rem; }
  .stat-label { font-size: .62rem; }
  .section-label { font-size: .7rem; padding: .3rem .75rem; }
  .testimonial-card { padding: 1.25rem; }
  .testimonial-card blockquote { font-size: .92rem; }
  .quick-form { padding: 1.25rem 1rem; }
  .form-group input, .form-group select, .form-group textarea { padding: .7rem .85rem; }
  .footer-col h4 { font-size: .82rem; }
  .footer-bottom p { font-size: .72rem; }
  .about-carousel .ac-arrow { width: 30px; height: 30px; font-size: .8rem; }
  .about-carousel .ac-dot { width: 8px; height: 8px; }
  .pre-footer-cta { padding: 2.5rem 0; }
  .service-card-icon { font-size: 1.7rem; padding: 1.25rem; }
  .service-card-body h3 { font-size: 1.05rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .container { padding: 0 .75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid-4, .gallery-grid-3 { grid-template-columns: 1fr; }
  .service-checkboxes { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.4rem; }
  .logo img { height: 34px; }
}

/* Landscape phones (low-height) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 3rem 0 3.5rem; }
  .hero-scroll { display: none; }
  #mobile-menu .mob-inner { padding-top: .75rem; padding-bottom: .75rem; }
  #mobile-menu a { padding: .7rem 0; font-size: 1rem; }
}

/* Touch devices: bigger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .main-nav a, .footer-col a, .dropdown li a, #mobile-menu a { min-height: 40px; }
  .service-card-link { padding: .25rem 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-bg { animation: none; }
}
