/**
 * Instalduo · Premium design system
 * Electric company · Red & white brand
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  /* Brand – premium red (logo-aligned) */
  --brand: #B91C1C;
  --brand-600: #991B1B;
  --brand-500: #DC2626;
  --brand-50: #FEF2F2;
  --brand-10: #FFF5F5;

  /* Neutrals */
  --ink: #0A1628;
  --text: #1E2D3D;
  --text-muted: #5C6B7A;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --bg: #FAFBFC;
  --bg-warm: #F8FAFA;
  --card: #FFFFFF;
  --card-hover: #FFFFFF;

  /* Elevation */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(185, 28, 28, 0.04);
  --shadow: 0 4px 20px rgba(185, 28, 28, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px -12px rgba(185, 28, 28, 0.12), 0 8px 24px -8px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px -12px rgba(185, 28, 28, 0.2);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

a:hover {
  color: var(--brand-600);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 24px;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 40px;
  }
}

.muted {
  color: var(--muted);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

.brand:hover img {
  opacity: 0.9;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--brand);
  background: var(--brand-10);
}

.app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.app-cta:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
}

/* Language dropdown */
.lang-switch {
  margin-left: 4px;
  position: relative;
}

.lang-current {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}

.lang-current:hover {
  color: var(--text);
  border-color: var(--line);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  min-width: 100px;
  z-index: 50;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-menu button {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: var(--brand-10);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
  background: var(--brand-10);
  border-color: var(--brand-50);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile panel */
.mobile-panel {
  display: none;
}

.mobile-panel.open {
  display: block;
}

@media (max-width: 980px) {
  .nav-links,
  .app-cta,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-panel {
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .mobile-panel .container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
  }

  .mobile-panel a {
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
  }

  .mobile-panel a:hover {
    background: var(--brand-10);
    color: var(--brand);
  }

  .mobile-app-link {
    background: var(--brand) !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
  }

  .mobile-app-link:hover {
    background: var(--brand-600) !important;
  }

  .mobile-lang {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .mobile-lang button {
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
  }

  .mobile-lang button:hover {
    background: var(--brand-10);
    border-color: var(--brand-50);
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink) url('/assets/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 22, 40, 0.55) 0%,
    rgba(5, 22, 40, 0.4) 40%,
    rgba(5, 22, 40, 0.5) 100%
  );
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

/* Staggered hero entrance — the WOW moment */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.8s var(--ease-out) forwards;
}

.hero-kicker.hero-reveal { animation-delay: 0.15s; }
.hero-content h1.hero-reveal { animation-delay: 0.3s; }
.hero-lead.hero-reveal { animation-delay: 0.5s; }
.hero-cta.hero-reveal { animation-delay: 0.7s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Scroll hint — premium touch */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-scroll-hint:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 2px;
  animation: scrollHintPulse 2s ease-in-out infinite;
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint-line { animation: none; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.88) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-alt {
  background: var(--bg-warm);
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-head .section-subtitle {
  margin: 8px 0 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

/* ========== INTRO / ABOUT (Quiénes somos) – WOW ========== */
.intro {
  padding: 120px 0;
  position: relative;
}

.intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0.5;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.intro-content {
  position: relative;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--brand-10) 0%, var(--brand-50) 100%);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}

.intro-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.intro h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.intro-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 24px;
}

.intro-statement {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--ink) 0%, #0d2742 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.intro-statement::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
}

.intro-visual-wrap {
  position: relative;
}

.intro-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(185, 28, 28, 0.25), 0 15px 30px -15px rgba(0, 0, 0, 0.15);
}

.intro-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 22, 40, 0.15) 100%);
  pointer-events: none;
}

.intro-visual img {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.intro-visual:hover img {
  transform: scale(1.05);
}

.intro-visual-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: var(--radius-lg);
  opacity: 0.9;
  z-index: -1;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-soft);
}

/* ========== SERVICES – WOW (icons, premium cards) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  border-radius: 4px 0 0 4px;
  transition: height 0.4s var(--ease-out);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-10) 0%, var(--brand-50) 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--brand);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.05);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========== PROJECTS – WOW (featured + grid, overlays) ========== */
.projects-section .section-head {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.projects-section .section-head .section-subtitle {
  margin: 12px 0 0;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 980px) {
  .projects-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.project-featured {
  grid-row: span 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 480px;
}

@media (max-width: 980px) {
  .project-featured {
    grid-row: span 1;
    min-height: 380px;
  }
}

.project-featured .project-media {
  position: absolute;
  inset: 0;
}

.project-featured .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.project-featured:hover .project-media img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(5, 22, 40, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  transition: background 0.4s var(--ease-out);
}

.project-featured:hover .project-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 22, 40, 0.3) 50%, rgba(5, 22, 40, 0.9) 100%);
}

.project-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  align-self: flex-start;
}

.project-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.project-location {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-grid .project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.project-grid .project-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.project-grid .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-grid .project-card:hover .project-media img {
  transform: scale(1.1);
}

.project-grid .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 22, 40, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
}

.project-grid .project-card:hover .project-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 22, 40, 0.5) 40%, rgba(5, 22, 40, 0.9) 100%);
}

.project-grid .project-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.project-grid .project-location {
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* ========== WHY INSTALDUO – WOW (pillars with icons) ========== */
.why-section .section-head {
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-out);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(185, 28, 28, 0.2);
  border-color: var(--brand-50);
}

.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 14px;
  margin-bottom: 20px;
}

.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand);
}

.why-icon svg {
  width: 32px;
  height: 32px;
}

.why-card h4 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========== STATS BAR ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--ink) 0%, #0d1b28 100%);
  color: #fff;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
  text-align: center;
  padding: 0 40px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@media (max-width: 768px) {
  .stat-item { padding: 0 20px; }
  .stat-item[aria-hidden="true"] { display: none; }
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ========== CLIENTS MARQUEE ========== */
.clients {
  padding: 48px 0;
}

.clients-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.clients-track {
  display: flex;
  gap: 64px;
  align-items: center;
  min-height: 120px;
  animation: scroll-x 30s linear infinite;
}

.clients-track img {
  height: 56px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.clients-track:hover img {
  opacity: 0.9;
  filter: grayscale(0);
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== WHISTLE CTA ========== */
.whistle-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  flex-wrap: wrap;
}

.whistle-cta h3 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
}

.whistle-cta p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9375rem;
}

.whistle-cta .btn-primary {
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form > * + * {
  margin-top: 16px;
}

.contact-info h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-info p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-info a {
  color: var(--brand);
  font-weight: 500;
}

/* Social */
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  transition: all 0.2s;
}

.social-row a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-10);
}

.social-row svg {
  width: 22px;
  height: 22px;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-warm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner span,
.footer-inner a {
  margin: 0 4px;
}

/* ========== PAGE LAYOUT (aviso, privacidad, canal) ========== */
.page-main {
  padding: 80px 0 100px;
}

.page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .page-card {
    padding: 32px 24px;
  }
}

.page-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 10px;
}

.page-card p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.page-card ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.page-card li {
  margin: 6px 0;
}

/* Canal de denuncias form */
.canal-form .field-group {
  margin-bottom: 20px;
}

.canal-form input,
.canal-form textarea,
.canal-form select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
}

.canal-form input:focus,
.canal-form textarea:focus,
.canal-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.canal-form textarea {
  min-height: 200px;
  resize: vertical;
}

/* Canal form: textarea counter, date icon, select arrow */
.canal-form .textarea-wrap {
  position: relative;
}
.canal-form .textarea-wrap textarea {
  padding-bottom: 32px;
}
.canal-form .char-count {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.canal-form .date-wrapper {
  position: relative;
}
.canal-form .date-wrapper input {
  padding-right: 44px;
}
.canal-form .date-wrapper svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.canal-form .select-wrapper {
  position: relative;
}
.canal-form .select-wrapper select {
  appearance: none;
  padding-right: 44px;
}
.canal-form .select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}

/* ========== CANAL DE DENUNCIAS – two separate sections ========== */
.canal-hero {
  padding: 60px 0 48px;
  text-align: center;
}

.canal-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.canal-hero p {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.canal-section {
  padding: 64px 0;
}

.canal-section-alt {
  background: var(--bg-warm);
}

.canal-section-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .canal-section-card {
    padding: 32px 24px;
  }
}

.canal-section-head {
  margin-bottom: 28px;
}

.canal-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}

.canal-section-head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.check-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.check-section h2 {
  margin-top: 0;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.check-row input {
  flex: 1 1 220px;
}

.check-form input {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
}

.check-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.canal-form .actions-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ========== REPORT.PHP RESULT PAGES ========== */
.report-page .report-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-10);
  border: 1px solid var(--brand-50);
  color: var(--brand);
  margin-bottom: 16px;
}

.report-page .report-code {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand-10);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0;
}

.report-page .report-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 20px;
}

.report-page .report-field-value {
  margin-top: 6px;
  font-size: 0.9375rem;
}

.report-page .report-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.report-page .report-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.report-page .report-status.pendiente {
  background: rgba(56, 189, 248, 0.12);
  color: #0284c7;
}
.report-page .report-status.pendiente .report-status-dot { background: #38bdf8; }

.report-page .report-status.en_estudio {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}
.report-page .report-status.en_estudio .report-status-dot { background: #facc15; }

.report-page .report-status.cerrada {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.report-page .report-status.cerrada .report-status-dot { background: #22c55e; }

.report-page .report-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.report-page .report-cta-row .btn-secondary {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text);
}

.report-page .report-cta-row .btn-secondary:hover {
  background: var(--brand-10);
  border-color: var(--brand-50);
}

@media (max-width: 520px) {
  .report-page .report-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== FOCUS STATES ========== */
a:focus-visible,
button:focus-visible,
.lang-current:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
