:root {
  --primary: #1a3a5c;
  --primary-light: #2557a7;
  --accent: #e8a020;
  --accent-light: #f5c55a;
  --bg: #f8f6f1;
  --bg2: #eef2f7;
  --white: #ffffff;
  --text: #1c2b3a;
  --text-light: #5a6a7a;
  --border: #d8e0ea;
  --card-bg: #ffffff;
  --success: #2d7a4f;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 12px 48px rgba(26,58,92,0.15);
  --radius: 14px;
  --radius-sm: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
/* Accessibility: Skip Link */
.skip-to-content { position: absolute; top: -100px; left: 16px; background: var(--accent); color: #fff; padding: 12px 20px; z-index: 9999; font-weight: 700; border-radius: 6px; transition: top 0.2s ease; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.skip-to-content:focus { top: 16px; outline: 3px solid #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all 0.25s ease; font-family: 'DM Sans', sans-serif; white-space: normal; line-height: 1.35; text-align: center; min-height: 48px; box-sizing: border-box; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,92,0.25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d08e10; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.badge-accent { background: #fef3d7; color: #a06010; }
.badge-primary { background: #e8eef7; color: var(--primary); }
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--border); transition: box-shadow 0.25s, transform 0.25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tag { display: inline-block; background: #eef2f7; color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; margin: 3px; }

/* Translate button */
.translate-bar { background: var(--primary); padding: 8px 0; }
.translate-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.translate-bar span { color: rgba(255,255,255,0.7); font-size: 13px; }
.lang-btn { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: 'DM Sans', sans-serif; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:not(.active) { background: rgba(255,255,255,0.15); color: #fff; }
.lang-btn:not(.active):hover { background: rgba(255,255,255,0.25); }

/* Navbar */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(26,58,92,0.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-logo .logo-icon svg { fill: #fff; }
.nav-logo .logo-text { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary); font-weight: 700; line-height: 1.2; }
.nav-logo .logo-sub { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-light); font-weight: 400; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links .nav-item { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links .nav-item:hover { background: var(--bg2); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-width: 240px; padding: 10px; display: none; z-index: 200; }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); transition: background 0.15s; }
.dropdown-menu a:hover { background: var(--bg2); color: var(--primary); }
.dropdown-menu a .dm-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-weight: 700; color: var(--primary); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,58,92,0.6); z-index: 2000; backdrop-filter: blur(4px); }
.mobile-menu.open { display: block; }
.mobile-panel { background: #fff; width: 300px; height: 100%; padding: 28px 20px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-panel .close-btn { float: right; font-size: 22px; cursor: pointer; color: var(--text-light); background: none; border: none; margin-bottom: 20px; }
.mobile-panel a, .mobile-panel .mob-nav-item { display: block; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.mobile-panel .mob-sub { padding-left: 20px; border-bottom: none; font-size: 14px; color: var(--text-light); padding-top: 8px; padding-bottom: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, #1a3a5c 0%, #2557a7 50%, #1a3a5c 100%); color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; color: #fff; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 18px; opacity: 0.88; margin-bottom: 12px; max-width: 560px; }
.hero-questions { background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; border: 1px solid rgba(255,255,255,0.15); max-width: 500px; }
.hero-questions p { opacity: 1; font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.hero-questions p:last-child { margin-bottom: 0; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--accent-light); }
.hero-stat .lbl { font-size: 13px; opacity: 0.75; }

/* Service Cards */
.service-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.25s; cursor: pointer; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.service-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* Why us */
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); }
.why-item .wi-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* CTA Banner */
.cta-banner { background: linear-gradient(135deg, var(--accent) 0%, #d08e10 100%); border-radius: var(--radius); padding: 48px 40px; color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; font-size: 16px; }

/* Cases */
.case-card { background: var(--card-bg); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.case-card .loc { font-weight: 700; font-size: 15px; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.case-card p { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.case-card .result { color: var(--success); font-weight: 600; font-size: 14px; }

/* Brand tabs */
.brand-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.brand-tab { padding: 12px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid var(--border); background: var(--white); color: var(--text); transition: all 0.2s; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.brand-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.brand-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.brand-content { display: none; }
.brand-content.active { display: block; }
.brand-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: var(--radius); padding: 36px; color: #fff; margin-bottom: 28px; }
.brand-hero h2 { color: #fff; margin-bottom: 8px; }
.brand-hero p { opacity: 0.88; }
.warning-box { background: #fff8e6; border: 1px solid #f5c55a; border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.warning-box .wb-icon { font-size: 24px; }
.info-box { background: #e8f0fe; border: 1px solid #b8cff5; border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.tip-box { background: #e8f5ed; border: 1px solid #a0d4b5; border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.step-list { list-style: none; }
.step-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.step-list li:last-child { border-bottom: none; }
.step-list li .step-num { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 16px; min-width: 18px; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.faq-q { padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--card-bg); transition: background 0.2s; font-size: 15px; }
.faq-q:hover { background: var(--bg2); }
.faq-q .faq-arrow { font-size: 18px; transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; background: var(--bg2); font-size: 14px; color: var(--text-light); }
.faq-item.open .faq-a { max-height: 200px; padding: 16px 22px; }

/* Reviews */
.review-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.review-stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--text-light); margin-bottom: 14px; line-height: 1.7; }
.reviewer { font-weight: 700; font-size: 14px; }
.reviewer-sub { font-size: 12px; color: var(--text-light); }

/* Areas */
.area-chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 50px; background: var(--card-bg); border: 1px solid var(--border); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); margin: 6px; }
.area-chip:hover { background: var(--primary); color: #fff; transform: translateY(-2px); transition: all 0.2s; }

/* About */
.about-highlight { background: var(--bg2); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; }
.about-highlight .ah-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary); font-weight: 700; min-width: 70px; }

/* Contact */
.contact-method { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 14px; }
.contact-method .cm-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* Footer */
footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
footer h4 { color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 14px; font-size: 16px; }
footer p, footer a { font-size: 14px; color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--accent-light); }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; }

/* Section headings */
.section-heading { margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--text); margin-bottom: 10px; }
.section-heading p { color: var(--text-light); font-size: 16px; max-width: 560px; }
.section-heading.center { text-align: center; }
.section-heading.center p { margin: 0 auto; }

/* Diagnosis section */
.diag-item { background: var(--card-bg); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.diag-item .di-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; color: var(--primary); }
.diag-arrow { text-align: center; padding: 8px 0; color: var(--primary-light); font-size: 22px; }

/* Phone floating */
.float-phone { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.float-phone a { display: flex; align-items: center; gap: 10px; background: var(--success); color: #fff; padding: 14px 22px; border-radius: 50px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 32px rgba(45,122,79,0.4); transition: all 0.25s; }
.float-phone a:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(45,122,79,0.5); }

/* Responsive */
@media(max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 52px 0 64px; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .brand-tabs { gap: 6px; }
  .brand-tab { padding: 8px 14px; font-size: 13px; }
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .float-phone { bottom: 16px; right: 16px; }
  .float-phone a { padding: 12px 18px; font-size: 14px; }
  .hero-stats { gap: 20px; }
  footer .footer-bottom { flex-direction: column; text-align: center; }
}

/* lang classes */
.lang-es { display: block; }
.lang-en { display: none; }
body.english .lang-es { display: none; }
body.english .lang-en { display: block; }
span.lang-es, span.lang-en, a.lang-es, a.lang-en { display: inline; }
body.english span.lang-es, body.english a.lang-es { display: none; }
body.english span.lang-en { display: inline; }
span.lang-en { display: none; }

/* Smooth page transitions */
.page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Form Controls: 16px font-size to prevent iOS Safari automatic zoom on focus */
input, textarea, select {
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-height: 48px;
  width: 100%;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-light);
  border-color: var(--primary);
}

/* Touch Targets: minimum 48px touch height for interactive links */
.nav-phone, .float-phone a {
  min-height: 48px;
}
.mobile-panel a, .mobile-panel .mob-nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Breadcrumbs Navigation */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs a {
  color: var(--primary-light);
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--primary);
}
.breadcrumbs .separator {
  color: var(--border);
  font-size: 12px;
}

/* Contextual In-Content Links */
.content-link {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-link:hover {
  color: var(--accent);
}

/* Responsive Tables for Technical Hardware Specifications */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.spec-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table tr:nth-child(even) td {
  background: var(--bg2);
}
.spec-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5ed;
  color: var(--success);
}

