/* ============================================================
   MIC Electricitat S.L.U. — Styles
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:     #111111;
  --primary-dark: #000000;
  --accent:      #f59e0b;
  --accent-dark: #d97706;
  --text:        #1e293b;
  --text-light:  #64748b;
  --bg:          #ffffff;
  --bg-light:    #f8fafc;
  --bg-dark:     #111111;
  --border:      #e2e8f0;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
  --transition:  0.25s ease;
  --max-width:   1200px;
  --nav-height:  72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--gray { background: var(--bg-light); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #94a3b8; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,158,11,0.4); }
.btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-white {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn--outline-white:hover { background: #fff; color: var(--primary); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--call { background: #111111; color: #f59e0b; border: 2px solid #f59e0b; }
.btn--call:hover { background: #f59e0b; color: #111111; }
.btn--email { background: var(--primary); color: #fff; }
.btn--email:hover { background: var(--primary-dark); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.navbar__logo { display: flex; align-items: center; gap: 0.75rem; }
.navbar__logo img { height: 44px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.navbar__logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar__menu a, .navbar__menu button {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.navbar__menu a:hover, .navbar__menu button:hover { color: var(--primary); background: var(--bg-light); }
.navbar__menu a.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); border-radius: 0; padding-bottom: 0.35rem; }
.navbar__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 0.75rem;
  line-height: 1.2;
}
.navbar__menu .navbar__phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  transition: color var(--transition);
  white-space: nowrap;
  background: none;
}
.navbar__menu .navbar__phone:hover { color: var(--accent); opacity: 0.8; }
.navbar__hours {
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel { display: block; }
.nav-dropdown__panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
}
.nav-dropdown__panel a:hover { background: var(--bg-light); }
.nav-dropdown__arrow { font-size: 0.7rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropdown__arrow { transform: rotate(180deg); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}
.navbar__mobile.open { display: block; }
.navbar__mobile a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}
.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile a:hover { color: var(--primary); }
.navbar__mobile .mobile-submenu {
  padding-left: 1rem;
}
.navbar__mobile .mobile-submenu a {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 0.5rem 0;
}
.mobile-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 0.75rem 0 0.25rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
/* Slider */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide--active { opacity: 1; }
.hero__slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1;
}
.hero__dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}
.hero__dot--active { background: #fff; border-color: #fff; }

/* legacy .hero__bg per si es fa servir en altres llocs */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-home.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: #cbd5e1; font-size: 1.15rem; margin-bottom: 2rem; max-width: 540px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sub-hero for inner pages */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: #94a3b8; max-width: 600px; margin: 0 auto; }
.page-hero--img {
  position: relative;
  overflow: hidden;
}
.page-hero--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.72) 100%);
  z-index: 0;
}
.page-hero--img .container { position: relative; z-index: 1; }
.page-hero--img .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: #64748b; }

/* --- Stats bar --- */
.stats {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats__item h3 { color: var(--accent); font-size: 2.5rem; margin-bottom: 0.25rem; }
.stats__item p { color: #94a3b8; font-size: 0.875rem; margin: 0; }

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.card--service {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card--service:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-3px); }
.card--service h3 { margin-bottom: 0.5rem; }
.card--service ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card--service ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.card--service ul li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* --- Feature list --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; margin: 0; }

/* --- Split section --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-lg);
  image-orientation: from-image;
}
.split__content h2 { margin-bottom: 1.25rem; }
.split__content p { margin-bottom: 1rem; }

/* --- Brand logos --- */
.brands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.brand-badge {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

/* --- Contact bar --- */
.contact-bar {
  background: var(--primary);
  padding: 3rem 0;
}
.contact-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.contact-bar__item { color: #fff; }
.contact-bar__item .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-bar__item h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-bar__item p, .contact-bar__item a {
  color: #e2e8f0;
  font-size: 1rem;
  margin: 0;
  text-decoration: none;
}
.contact-bar__item a:hover { color: var(--accent); }

/* --- Contact form --- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.8rem; color: var(--text-light); }
.form-note a { color: var(--primary); text-decoration: underline; }
.form-success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: #166534;
  font-weight: 500;
  display: none;
}

/* --- Map placeholder --- */
.map-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--text-light);
}
.map-placeholder .icon { font-size: 3rem; }

/* --- Addresses --- */
.address-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.address-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.address-card h4 { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.address-card p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* --- Gallery grid --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* --- Highlight box --- */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  color: #fff;
  text-align: center;
}
.highlight-box h2 { color: #fff; margin-bottom: 1rem; }
.highlight-box p { color: #94a3b8; margin-bottom: 2rem; }

/* --- CTA Section --- */
.cta { background: var(--accent); padding: 4rem 0; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Accordion (per serveis) --- */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.accordion__trigger:hover { background: var(--bg-light); }
.accordion__trigger.open { color: var(--primary); background: var(--bg-light); }
.accordion__trigger .acc-arrow { font-size: 0.8rem; transition: transform var(--transition); flex-shrink: 0; }
.accordion__trigger.open .acc-arrow { transform: rotate(180deg); }
.accordion__body {
  display: none;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.accordion__body.open { display: block; }
.accordion__body ul { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion__body ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-light);
}
.accordion__body ul li::before { content: '→'; color: var(--accent); font-weight: 700; }

/* --- Legal pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.3rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; font-size: 1.1rem; }
.legal-content p, .legal-content li { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.legal-content th, .legal-content td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; }
.legal-content th { background: var(--bg-light); font-weight: 700; color: var(--text); }

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; filter: invert(1); }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; }
.footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--accent); }
.footer__contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer__contact-item .icon { flex-shrink: 0; margin-top: 0.1rem; }
.footer__contact-item a { color: #94a3b8; }
.footer__contact-item a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__bottom-links a { color: #64748b; }
.footer__bottom-links a:hover { color: var(--accent); }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner.visible { display: flex; }
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.875rem; color: #94a3b8; margin: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* --- Whatsapp float --- */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.float-btn:hover { transform: scale(1.05); }
.float-btn--call { background: #111111; color: #f59e0b; border: 2px solid #f59e0b; }
.float-btn--email { background: var(--primary); }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__menu { display: none; }
  .navbar__hamburger { display: flex; }
  .hero { min-height: 85vh; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }
  .split__img { height: 280px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-bar__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .address-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
  .float-cta { bottom: 1rem; right: 1rem; }
  .float-btn span { display: none; }
  .float-btn { padding: 0.85rem; border-radius: 50%; }
  .cookie-banner__inner { flex-direction: column; }
  .highlight-box { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav-height) + 2rem) 0 2rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}
