@import url('design-tokens.css');


/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  padding-bottom: 10px;
  text-transform: uppercase;
}

h1 { font-size: 30px; line-height: var(--lh-heading-lg); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading-lg); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin-bottom: 1rem; }

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--blue-accent); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }

/* Container */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section { padding: var(--section-padding); }

.hero + main > .section:first-child {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--text-white); }
.section-cream { background: var(--bg-offwhite); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin-bottom: 16px; }
.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.3);
  padding: 16px 30px;
  letter-spacing: 0.08em;
}
.btn-primary:hover {
  background: var(--blue-accent);
  color: #fff;
}

.btn-outline { background: transparent; color: var(--red-primary); border: 2px solid var(--red-primary); }
.btn-outline:hover { background: var(--red-primary); color: #fff; }

.btn-submit {
  width: 100%;
  height: 60px;
  padding: 0 32px;
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-btn-submit);
  font-weight: var(--fw-bold);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  line-height: 40px;
  transition: background 0.3s, opacity 0.3s;
}
.btn-submit:hover:not(:disabled) { background: var(--red-hover); }
.btn-submit:disabled { opacity: 0.85; cursor: not-allowed; }

.btn-submit .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Grid Helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--blue-accent);
  color: #fff;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1em;
  transition: transform 0.3s;
}

.top-bar .container {
  padding-top: .75em;
  padding-bottom: .75em;
  max-width: 1080px;
  width: var(--container-width);
}

.top-bar-info { display: flex; align-items: center; gap: 8px; }
.top-bar-phone { margin-right: 13px; }
.top-bar-phone .fas { margin-right: 3px; font-size: 11px; }
.top-bar-phone a { color: #fff; text-decoration: none; }
.top-bar-email { color: #fff; text-decoration: none; }
.top-bar-email .fas { margin-right: 4px; font-size: 11px; }
.top-bar-email:hover, .top-bar-phone a:hover { opacity: 0.8; color: #fff; }

.top-bar-social { display: inline-flex; align-items: center; }
.top-bar-social a { color: #fff; margin-left: 12px; font-size: 13px; transition: opacity 0.2s; }
.top-bar-social a:hover { opacity: 0.7; color: #fff; }

/* Navbar */
.navbar {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: var(--bg-offwhite);
  transition: background-color 0.4s, padding 0.3s, box-shadow 0.3s, top 0.3s;
}
.navbar.scrolled { top: 0; padding: 8px 0; box-shadow: 0 0 7px rgba(0,0,0,0.1); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  width: var(--container-width);
}

.navbar-logo img { height: 43px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-links li { padding-right: 22px; }
.navbar-links li:last-child { padding-right: 0; }

.navbar-links a {
  color: var(--text-nav);
  font-size: var(--fs-nav);
  font-weight: var(--fw-nav);
  text-decoration: none;
  transition: opacity 0.4s ease-in-out;
  position: relative;
  padding-bottom: 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.navbar-links a:hover::after, .navbar-links a.active::after { transform: scaleX(1); }
.navbar-links a:hover { opacity: 0.7; color: var(--text-nav); }
.navbar-links a.active { color: var(--text-nav); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #000; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 160px 0 40px;
  background: linear-gradient(180deg, var(--bg-hero-overlay-start) 0%, var(--bg-hero-overlay-end) 99%), url('/img/hero-bg.jpg') center/cover no-repeat;
  overflow: visible;
}

.hero > .container { position: relative; z-index: 1; }

.hero-content {
  display: flex;
  gap: var(--gap-row);
  align-items: flex-start;
  width: var(--hero-content-width);
  max-width: var(--hero-max-width);
  margin: 0 auto;
}

.hero-left {
  width: 58.8%;
  flex-shrink: 1;
  min-width: 0;
  background: var(--bg-panel-white);
  padding: 80px 60px;
  border-radius: var(--radius-panel);
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--blue-accent);
}

.hero-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
  line-height: var(--lh-relaxed);
}

.hero h1 {
  color: var(--text-heading);
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4.75rem);
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.hero-subtitle-red {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  color: var(--red-primary);
  font-weight: var(--fw-bold);
  font-style: italic;
  margin-bottom: 10px;
  line-height: var(--lh-heading);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 0;
  line-height: var(--lh-relaxed);
  text-align: justify;
}

/* Hero Form */
.hero-form-wrapper {
  width: 38.2%;
  flex-shrink: 0;
  background: var(--bg-white);
  padding: 25px 35px 30px;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  margin-bottom: -180px;
}

.hero-form-wrapper .form-label,
.hero-form-wrapper .field-hint { display: none; }
.hero-form-wrapper .form-row { display: block; }
.hero-form-wrapper .form-group { margin-bottom: var(--input-spacing); }

.hero-form-wrapper .form-group input,
.hero-form-wrapper .form-group textarea {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border-light);
}

.hero-form-wrapper .gdpr-label-header {
  display: block;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  font-size: var(--fs-body);
  margin-bottom: 8px;
}

/* Hero Contact Buttons */
.hero-contact-buttons {
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  animation: heroFadeIn 1150ms ease-in-out 150ms forwards;
}
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-contact-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  max-width: 100%;
}

.hero-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: clamp(0.75rem, 1.2vw + 0.3rem, 1rem);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all 300ms ease;
  white-space: nowrap;
}

.hero-phone {
  background: var(--red-primary);
  color: #fff;
  border-radius: 5px 0 0 5px;
  box-shadow: var(--shadow-btn);
}
.hero-phone:hover { background: var(--blue-accent); color: #fff; }

.hero-contact-sep {
  background: #6D6D6D;
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
}
.hero-contact-sep:hover { background: #555; }

.hero-whatsapp {
  background: #D8DBE2;
  color: var(--teal);
  border-radius: 0 5px 5px 0;
  box-shadow: var(--shadow-btn);
  font-size: 16px;
}
.hero-whatsapp:hover { background: var(--bg-dark); color: var(--teal); }

.hero-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red-primary);
  font-size: clamp(0.75rem, 1vw + 0.3rem, 0.9375rem);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color 300ms ease;
}
.hero-contact-email:hover { color: var(--blue-accent); }

/* Hero Bottom Row */
.hero-bottom-row {
  display: flex;
  align-items: center;
  gap: var(--gap-row);
  margin: 10px auto 0;
  width: var(--hero-content-width);
  max-width: var(--hero-max-width);
}

.hero-bottom-divider {
  width: 38.2%;
  flex-shrink: 0;
  height: 2px;
  background: transparent;
  position: relative;
}
.hero-bottom-divider::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 2px;
  width: calc(100% + 30vw);
  background: var(--blue-accent);
}

.hero-bottom-row .hero-scroll-down {
  flex-shrink: 0;
  width: 58.8%;
  flex-direction: row;
  justify-content: flex-start;
}

/* Hero Scroll Down */
.hero-scroll-down {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero-scroll-down:hover { color: #fff; }

.hero-scroll-arrow { font-size: 16px; color: var(--blue-accent); animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* Footer */
.footer { background: var(--bg-dark); color: #fff; padding: 60px 0 0; }

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Flipbox Cards --- */
.footer-flipboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.flipbox {
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  min-height: 200px;
}

.flipbox-front, .flipbox-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 4px;
  transition: transform 0.6s;
  padding: 20px;
  text-align: center;
}

.flipbox-front i {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
}

.flipbox-front h4 {
  color: #fff;
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: var(--fw-body);
  line-height: 30px;
  text-transform: uppercase;
  padding-bottom: 0;
}

.flipbox-whatsapp .flipbox-front { background: #016fb9; }
.flipbox-phone .flipbox-front { background: #ff3c38; }
.flipbox-email .flipbox-front { background: linear-gradient(135deg, #016fb9 0%, #e8638a 100%); }

.flipbox-back {
  background: var(--blue-accent);
  transform: rotateY(180deg);
  color: #fff;
}

.flipbox-back p {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.flipbox:hover .flipbox-front { transform: rotateY(-180deg); }
.flipbox:hover .flipbox-back { transform: rotateY(0deg); }

.flipbox-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: var(--text-heading);
  font-weight: var(--fw-bold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
}
.flipbox-btn:hover { background: var(--red-primary); color: #fff; }

.flipbox-email { grid-column: 1 / -1; }

/* --- Footer Form Area --- */
.footer-form-area {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
}

.footer-contact-form .form-label {
  color: var(--red-primary);
  font-weight: 700;
}

.footer-contact-form .form-label.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.footer-contact-form .form-group input,
.footer-contact-form .form-group textarea {
  background: #fff;
  color: #414141;
  border: 1px solid #ccc;
}

.footer-contact-form .form-group input::placeholder,
.footer-contact-form .form-group textarea::placeholder {
  color: #999;
}

.gdpr-title {
  display: block;
  margin-bottom: 8px;
}

.footer-contact-form .gdpr-label span {
  color: #333;
}

.footer-contact-form .gdpr-label a {
  color: var(--blue-accent);
}

/* --- Footer Social --- */
.footer-social { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: background 0.3s, border-color 0.3s;
}
.footer-social a:hover { background: var(--red-primary); border-color: var(--red-primary); color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-body);
}
.footer-bottom a { color: rgba(255,255,255,0.5); margin: 0 4px; }
.footer-bottom a:hover { color: #fff; }

/* Go To Top */
#go-to-top {
  position: fixed;
  bottom: 100px;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--red-primary); /* #E8381A */
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  border-radius: 5px 0 0 5px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: none;
}
#go-to-top.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  animation: fadeInRight 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
#go-to-top:hover { background: var(--red-hover); }

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f4f4f4;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  z-index: 100000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 20px 22px;
  max-height: 90vh;
  overflow: hidden;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-main {
  max-width: none;
  padding-bottom: 14px;
}
.cookie-title {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 10px;
}
.cookie-notice-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cookie-notice { flex: 1; }
.cookie-text { font-size: 14px; color: #212121; line-height: 1.5; margin: 0; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

.cookie-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--blue-accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-accept { background: var(--blue-accent); color: #fff; }
.cookie-btn-accept:hover { background: #015a96; }
.cookie-btn-reject { background: transparent; color: var(--blue-accent); }
.cookie-btn-reject:hover { background: rgba(1,111,185,0.05); }
.cookie-btn-customize { background: transparent; color: var(--blue-accent); }
.cookie-btn-customize:hover { background: rgba(1,111,185,0.05); }

/* Cookie Preference Panel (inline below banner) */
.cookie-preference {
  display: none;
  border-top: 1px solid #e0e0e0;
}
.cookie-preference.visible { display: block; }

.cookie-preference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  flex-shrink: 0;
}
.cookie-preference-title {
  font-size: 18px;
  font-weight: 700;
  color: #212121;
}
.cookie-preference-close {
  display: none;
}

.cookie-preference-body {
  padding: 0;
  overflow-y: auto;
  max-height: 45vh;
}

.cookie-preference-description {
  font-size: 13px;
  line-height: 1.6;
  color: #212121;
  margin-bottom: 12px;
}
.cookie-preference-description p { margin: 0 0 8px; }

/* Show more / Show less toggle */
.cookie-desc-extra { display: none; }
.cookie-desc-extra.visible { display: block; }
.cookie-desc-extra.visible + .cookie-desc-truncated,
.cookie-preference-description.expanded .cookie-desc-truncated { display: none; }
.cookie-show-more,
.cookie-show-less {
  color: var(--blue-accent);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.cookie-show-more:hover,
.cookie-show-less:hover { text-decoration: underline; }

/* Hide accept/reject in footer on desktop */
.cookie-footer-mobile-only { display: none; }

.cookie-separator {
  height: 1px;
  background: #e0e0e0;
  margin: 12px 0;
}

/* Accordion items */
.cookie-accordion {
  border-bottom: 1px solid #f4f4f4;
}
.cookie-accordion-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  cursor: pointer;
}
.cookie-accordion-chevron {
  flex-shrink: 0;
  width: 20px;
  margin-top: 2px;
  color: #212121;
  font-size: 10px;
  transition: transform 0.2s;
}
.cookie-accordion.active .cookie-accordion-chevron {
  transform: rotate(90deg);
}
.cookie-accordion-header-wrapper { flex: 1; }
.cookie-accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-accordion-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  cursor: pointer;
}
.cookie-always-active {
  font-size: 12px;
  color: #1b8a2d;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-accordion-des {
  font-size: 12px;
  line-height: 1.5;
  color: #212121;
  margin-top: 6px;
}
.cookie-accordion-des p { margin: 0; }

/* Accordion body (hidden by default, shown when active) */
.cookie-accordion-body {
  display: none;
  padding: 0 0 14px 20px;
}
.cookie-accordion.active .cookie-accordion-body { display: block; }

.cookie-audit-table {
  background: #f4f4f4;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 4px 0;
  color: #212121;
  font-size: 12px;
}
.cookie-des-table {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #ebebeb;
}
.cookie-des-table:last-child { border-bottom: none; }
.cookie-des-table li {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  line-height: 1.5;
}
.cookie-des-table li > div:first-child {
  font-weight: 700;
  min-width: 80px;
  flex-shrink: 0;
}
.cookie-des-table li > div:last-child { flex: 1; }
.cookie-empty-text {
  padding: 16px;
  margin: 0;
  color: #666;
  font-size: 12px;
}

/* Toggle switch for categories */
.cookie-switch {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}
.cookie-switch-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.cookie-switch input:checked + .cookie-switch-slider { background: #1b8a2d; }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(18px); }

/* Preference footer */
.cookie-preference-footer {
  display: flex;
  gap: 10px;
  padding: 16px 0 8px;
  justify-content: flex-end;
  flex-shrink: 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
}
.cookie-preference-footer .cookie-btn-save { background: transparent; color: var(--blue-accent); }

/* Cookie Settings Float Button */
.cookie-settings-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 45px;
  height: 45px;
  background: var(--blue-accent);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.2s;
}
.cookie-settings-btn:hover { transform: scale(1.08); }
.cookie-settings-btn.visible { display: flex; }
.cookie-settings-btn-inner {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Mobile Sticky Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mobile-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-align: center;
}
.mobile-bar-phone { background: var(--red-primary); color: #fff; }
.mobile-bar-faq { background: #555; color: #fff; }
.mobile-bar-whatsapp { background: #25D366; color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-left { padding: 60px 30px; }
}

@media (max-width: 768px) {
  /* Top bar - single row: phone + email left, social right */
  .top-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .top-bar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .top-bar-social { margin-left: 8px; }

  .navbar { top: 48px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .navbar.scrolled { top: 0; }
  .navbar-logo img { height: 45px; }
  .hamburger { display: flex; }
  .hamburger span { background: var(--blue-accent); width: 26px; height: 3px; }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
  }
  .navbar-links.open { right: 0; }
  .navbar-links a { color: #fff; }
  .navbar-links a:hover, .navbar-links a.active { color: var(--red-primary); }

  .hero { padding: 140px 0 40px; min-height: auto; }
  .hero > .container { width: 95%; }
  .hero-content { flex-direction: column; width: 100%; text-align: left; }
  .hero-left { width: 100%; padding: 60px 40px 50px; }
  .hero-left::before { top: 35px; width: 220px; height: 3px; }
  .hero-label { margin-top: 15px; font-size: 14px; letter-spacing: 0.12em; }
  .hero h1 { margin-bottom: 24px; }
  .hero-subtitle-red { font-size: 30px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 18px; }
  .hero-form-wrapper { width: 100%; padding: 40px 30px 20px; margin-top: 20px; margin-bottom: 0; border-radius: var(--radius-panel); }

  .hero + main > .section:first-child { padding-top: 50px; }

  .hero-bottom-row { flex-direction: column; width: 90%; gap: 20px; }
  .hero-bottom-divider { width: 100%; margin-left: 0; }
  .hero-bottom-row .hero-scroll-down { width: auto; justify-content: center; }


  .section { padding: 50px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .flipbox { min-height: 150px; }

  .mobile-bar { display: none; } /* removed — not present on live site */

  /* Cookie banner mobile - initial bar */
  .cookie-banner {
    padding: 16px 20px;
  }
  .cookie-notice-group {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .cookie-notice { text-align: center; }
  .cookie-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .cookie-buttons .cookie-btn-accept {
    order: -1;
    width: 100%;
    text-align: center;
    padding: 14px 22px;
    border-radius: 6px;
  }
  .cookie-buttons .cookie-btn-customize,
  .cookie-buttons .cookie-btn-reject {
    flex: 1;
    text-align: center;
    border-radius: 6px;
  }

  /* Cookie banner mobile - full screen when preferences open */
  .cookie-banner.cookie-prefs-open {
    top: 0;
    bottom: 0;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .cookie-banner.cookie-prefs-open .cookie-main {
    display: none;
  }
  .cookie-banner.cookie-prefs-open .cookie-preference {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-top: none;
  }
  .cookie-preference-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
  }
  .cookie-preference-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .cookie-preference-body {
    flex: 1;
    overflow-y: auto;
    max-height: none;
    padding: 0 20px;
  }
  .cookie-preference-footer {
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 8px;
    flex-shrink: 0;
  }
  .cookie-preference-footer .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 14px 22px;
    border-radius: 6px;
  }
  .cookie-footer-mobile-only { display: inline-block; }
  .cookie-preference-footer .cookie-btn-accept { order: -1; }
  .cookie-preference-footer .cookie-btn-reject { order: 1; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.8rem; }
  .hero-subtitle-red { font-size: 22px; }
  h2 { font-size: 1.5rem; }
}
