@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===========================
   TOKENS
   =========================== */
:root {
  --blue:         #1A5FAD;
  --blue-dark:    #124A8C;
  --blue-light:   #EBF3FF;
  --orange:       #124A8C;
  --orange-dark:  #0D3A6E;
  --dark:         #1C2B3A;
  --text:         #374151;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --bg:           #FFFFFF;
  --bg-alt:       #F8FAFC;
  --r:            10px;
  --r-lg:         18px;
  --shadow:       0 2px 12px rgba(0,0,0,.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,.12);
  --shadow-hover: 0 8px 32px rgba(26,95,173,.18);
  --t:            .25s ease;
  --max:          1200px;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 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, input, textarea, select { font: inherit; }

/* ===========================
   LAYOUT
   =========================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-header p,
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--t);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,118,43,.4);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,95,173,.35);
}

/* ===========================
   HEADER / NAV
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(28,43,58,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.site-header.scrolled {
  background: rgba(28,43,58,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo { margin-right: auto; }
.logo img { height: 126px; width: auto; }

/* ── Selector de idioma (CA / ES) ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.6rem;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  flex-shrink: 0;
}
.lang-switch button {
  background: none;
  border: none;
  color: rgba(255,255,255,.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  transition: var(--t);
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active {
  background: var(--orange);
  color: #fff;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,.88);
  border-radius: var(--r);
  font-weight: 500;
  font-size: 0.93rem;
  transition: var(--t);
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.main-nav .nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  margin-left: 0.5rem;
  font-weight: 600;
}
.main-nav .nav-cta:hover {
  background: var(--orange-dark) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/imgs/salon-d.jpg') center/cover no-repeat;
  opacity: 0.6;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,43,58,.8) 0%, rgba(26,95,173,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 4rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.5);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: scrollBounce 2.2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ===========================
   STATS STRIP
   =========================== */
.stats-strip { background: var(--blue); color: #fff; padding: 2.5rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-item span { font-size: 0.88rem; opacity: 0.82; }

/* ===========================
   SERVICES GRID
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.service-icon {
  width: 140px; height: 140px;
  margin: 0 auto 1.25rem;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.65rem; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* ===========================
   WHY US
   =========================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-image img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  max-height: 520px;
  box-shadow: var(--shadow-md);
}
.why-features { display: flex; flex-direction: column; gap: 1.75rem; }
.why-feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.why-feature-icon {
  width: 50px; height: 50px;
  background: var(--blue-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.why-feature h4 { margin-bottom: 0.3rem; color: var(--dark); }
.why-feature p { color: var(--text-muted); font-size: 0.9rem; }

/* ===========================
   PROJECTS GRID (home teaser)
   =========================== */
.projects-teaser {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.project-thumb {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ccc;
  cursor: pointer;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project-thumb:hover img { transform: scale(1.07); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,43,58,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.project-thumb:hover .project-overlay { opacity: 1; }
.project-overlay-inner { color: #fff; }
.project-overlay-inner h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.project-overlay-inner p { font-size: 0.82rem; opacity: 0.8; }

/* ===========================
   TESTIMONIALS
   =========================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: box-shadow var(--t);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-stars { color: #F59E0B; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.review-service { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2d7dd2 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/imgs/og.png') center/cover no-repeat;
  opacity: 0.08;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2.25rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===========================
   CONTACT MINI (home)
   =========================== */
.contact-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-ico {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-row h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-info-row p,
.contact-info-row a { font-size: 0.93rem; color: var(--text); line-height: 1.6; }
.contact-info-row a:hover { color: var(--blue); }
.social-row { display: flex; gap: 0.75rem; }
.social-btn {
  width: 38px; height: 38px;
  background: var(--blue-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: var(--t);
}
.social-btn:hover { background: var(--blue); color: #fff; }

/* ===========================
   INNER PAGE HERO
   =========================== */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 9rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/imgs/hero.png') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: var(--t); }
.breadcrumb a:hover { color: #fff; }

/* ===========================
   SERVICES PAGE
   =========================== */
.service-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.service-detail:last-child { border-bottom: none; }
.service-detail-left {
  text-align: center;
  position: sticky;
  top: 6rem;
}
.service-detail-left img {
  width: 80px; height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.service-detail-left h2 { font-size: 1.3rem; }
.service-sublist { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.service-subitem {
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--r);
  border-left: 3px solid var(--blue);
}
.service-subitem strong { display: block; margin-bottom: 0.35rem; color: var(--dark); font-size: 0.95rem; }
.service-subitem p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* ===========================
   BEFORE/AFTER SLIDER
   =========================== */
.ba-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  aspect-ratio: 16/9;
  background: #111;
  max-width: 820px;
  margin: 0 auto;
}
.ba-after, .ba-before {
  position: absolute;
  inset: 0;
}
.ba-after img, .ba-before img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before {
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,.9);
  z-index: 2;
  transform: translateX(-50%);
}
.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--blue);
  font-size: 1rem;
}
.ba-label {
  position: absolute;
  bottom: 1rem;
  z-index: 3;
  padding: 0.3rem 0.8rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  backdrop-filter: blur(4px);
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

/* ===========================
   PROJECTS GALLERY
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: flex-start;
}
.contact-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
}
.contact-card-icon {
  width: 46px; height: 46px;
  background: var(--blue-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.3rem; }
.contact-card p, .contact-card a { font-size: 0.93rem; line-height: 1.7; }
.contact-card a:hover { color: var(--blue); }
.map-container {
  margin-top: 3rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 380px;
  border: 1.5px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: none; }
.map-container-full {
  width: 100%;
  height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin: 3rem 0 0;
}
.map-container-full iframe { width: 100%; height: 100%; border: none; }

/* ===========================
   FORM
   =========================== */
.form-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}
.form-card h3 { margin-bottom: 0.5rem; }
.form-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,173,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 222px; margin-bottom: 1.25rem; width: auto;}
.footer-desc { font-size: 0.88rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: var(--t);
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: var(--t);
}
.footer-col ul a:hover { color: #fff; }
.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
}
.footer-col address a { color: rgba(255,255,255,.72); transition: var(--t); }
.footer-col address a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.83rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.45); transition: var(--t); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ===========================
   COOKIE BANNER
   =========================== */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 1.75rem;
  border-radius: var(--r-lg);
  box-shadow: 0 8px 48px rgba(0,0,0,.35);
  max-width: 640px;
  width: calc(100% - 2rem);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,.1);
}
#cookie-banner a { color: #93c5fd; }
#cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; margin-left: auto; }
.cookie-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--t);
}
.cookie-accept:hover { background: var(--orange-dark); }
.cookie-reject {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--t);
}
.cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,.5); }
#cookie-banner.hidden { display: none; }

/* ===========================
   THANKS / 404 PAGE
   =========================== */
.standalone-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.standalone-page .icon { font-size: 4rem; margin-bottom: 1.5rem; }
.standalone-page h1 { margin-bottom: 1rem; }
.standalone-page p { color: var(--text-muted); margin-bottom: 2rem; max-width: 440px; }

/* ===========================
   ANIMATIONS
   =========================== */
/* fade-in: visible por defecto; oculto solo cuando JS activo */
.fade-in {
  transition: opacity .55s ease, transform .55s ease;
}
.js-loaded .fade-in {
  opacity: 0;
  transform: translateY(22px);
}
.js-loaded .fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in.d1 { transition-delay: .1s; }
.fade-in.d2 { transition-delay: .2s; }
.fade-in.d3 { transition-delay: .3s; }
.fade-in.d4 { transition-delay: .4s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .services-grid       { grid-template-columns: repeat(2,1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid          { grid-template-columns: repeat(2,1fr); }
  .projects-teaser     { grid-template-columns: repeat(2,1fr); }
  .gallery-grid        { grid-template-columns: repeat(2,1fr); }
  .gallery-item.wide   { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,43,58,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.2rem; padding: 0.75rem 2rem; }
  .main-nav .nav-cta { margin: 0; }
  .why-grid             { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-mini-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-page-grid    { grid-template-columns: 1fr; }
  .reviews-grid         { grid-template-columns: 1fr; }
  .service-detail       { grid-template-columns: 1fr; }
  .service-detail-left  { position: static; }
  .form-row             { grid-template-columns: 1fr; }
  .footer-grid          { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom        { flex-direction: column; text-align: center; }
  .footer-legal         { justify-content: center; }
  .hero-actions         { flex-direction: column; align-items: flex-start; }
  .cta-actions          { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .services-grid    { grid-template-columns: 1fr; }
  .projects-teaser  { grid-template-columns: 1fr; }
  .gallery-grid     { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .section          { padding: 3.5rem 0; }
  .form-card        { padding: 1.75rem 1.25rem; }
  #cookie-banner    { padding: 1rem 1.25rem; }
  .cookie-actions   { margin-left: 0; width: 100%; }
}

/* ===========================
   HERO INNER (logo + texto)
   =========================== */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  padding-top: 5rem;
}
.hero-content { flex: 1; max-width: 620px; }

/* Quitar padding-top previo ya que lo gestiona hero-inner */
.hero-content { padding-top: 0; }

.hero-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;   /* animado por anime.js */
}
.hero-logo-big {
  width: 280px;
  max-width: 30vw;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,.45));
}

@media (max-width: 900px) {
  .hero-brand { display: none; }
  .hero-inner { padding-top: 5rem; }
}

/* ===========================
   FOOTER MEJORAS
   =========================== */
.footer-logo-img {
  height: 72px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.5));
}
.footer-dev {
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.footer-dev a {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity var(--t);
}
.footer-dev a:hover { opacity: 1; }
.footer-dev-logo {
  height: 22px;
  width: auto;
  display: block;
}

/* ===========================
   CURSOR PERSONALIZADO (desactivado)
   =========================== */

#rf-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
}

.rf-cursor-dot {
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  will-change: transform;
  transition: opacity .2s;
}

.rf-cursor-ring {
  position: fixed;
  top: -18px; left: -18px;
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  will-change: transform;
  transition: width .25s ease, height .25s ease,
              top .25s ease, left .25s ease,
              border-color .25s ease, background .25s ease;
}

.rf-cursor-ring.hover {
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  border-color: var(--orange);
  background: rgba(232,118,43,.08);
}


/* ===========================
   LOGO HERO: contenedor 3D
   =========================== */
.hero-brand {
  perspective: 600px;
}

.hero-logo-big {
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, filter;
}
/* Sliders de proyecto en pareja (lado a lado) */
.sl-pair{ display:flex; gap:24px; justify-content:center; align-items:flex-start; flex-wrap:wrap; }
.sl-pair .sl1-outer, .sl-pair .sl2-outer{ width:auto; padding:24px 0; }

/* ===========================
   SERVICIOS (rejilla de tarjetas)
   =========================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cfe0f5;
}
.svc-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, #ffffff 100%);
  border: 1px solid #e3edfb;
  margin-bottom: 1.25rem;
}
.svc-icon img { width: 102px; height: 102px; max-width: none; }
.svc-card h3 {
  margin-bottom: 1.1rem;
  color: var(--dark);
  font-size: 1.25rem;
}
.svc-sub { display: flex; flex-direction: column; gap: 0.9rem; }
.svc-sub li { padding-left: 0.9rem; position: relative; }
.svc-sub li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.svc-sub strong {
  display: block;
  color: var(--blue);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.svc-sub p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}
