/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #d32f2f;
  --color-primary-dark: #9a0007;
  --color-secondary: #1565c0;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  --color-bg: #ffffff;
  --color-bg-light: #f5f7fa;
  --color-bg-dark: #1a1f2b;
  --color-text: #222831;
  --color-text-light: #5f6b7a;
  --color-border: #d1d9e0;
  --color-warning-bg: #fff3e0;
  --color-warning-border: #ff9800;
  --color-alert: #ffeb3b;
  --color-alert-dark: #f57f17;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --max-width: 1100px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-headings: "Oswald", "Roboto Condensed", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top notice */
.top-notice {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Navbar */
.navbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.1rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: var(--color-whatsapp-dark);
  text-decoration: none;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 18px 32px;
  font-size: 1.15rem;
  flex-direction: column;
  line-height: 1.3;
}

.btn-large small {
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #0d0d0d 0%, #2a0a0a 35%, #b71c1c 70%, #ff6f00 100%);
  color: #fff;
  padding: 50px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.hero-alert-icon {
  font-size: 4rem;
  margin-bottom: 10px;
  animation: pulse-alert 1.5s infinite;
  display: inline-block;
}

@keyframes pulse-alert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), var(--shadow-lg);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--color-alert);
  color: #000;
  border: 3px solid #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
  animation: badge-glow 2s infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 235, 59, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 235, 59, 0.7); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 40px rgba(255, 87, 34, 0.4);
}

.hero-impact {
  font-family: var(--font-headings);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-alert);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #ffe0b2;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: #fff;
  border-bottom: 2px solid var(--color-alert);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-actions .btn {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 28px;
}

.btn-pulse {
  animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(211, 47, 47, 0); }
}

.hero-note {
  font-size: 0.85rem;
  color: #ffcc80;
}

/* Sections */
.section {
  padding: 64px 20px;
}

.section-image {
  background: var(--color-bg-light);
}

.project-figure {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.project-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.project-figure figcaption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.section-light {
  background: var(--color-bg-light);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #e0e6ed;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark a {
  color: #82b1ff;
}

.section-warning {
  background: linear-gradient(rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.88)), url('fondo.jpg') center/cover no-repeat fixed;
  color: #fff;
  border-top: 4px solid var(--color-warning-border);
  border-bottom: 4px solid var(--color-warning-border);
  position: relative;
}

.section-warning::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(183, 28, 28, 0.25);
  pointer-events: none;
}

.section-warning .container {
  position: relative;
  z-index: 1;
}

.section-warning h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}

.alert-header {
  text-align: center;
  margin-bottom: 36px;
}

.alert-badge {
  display: inline-block;
  background: var(--color-alert);
  color: #000;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.alert-lead {
  font-size: 1.2rem;
  color: #ffecb3;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.section-cta {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3eaf3 100%);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--color-text-light);
}

.section-dark .section-intro {
  color: #b0bec5;
}

/* Core case section */
.section-header-core {
  text-align: center;
  margin-bottom: 32px;
}

.core-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header-core h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.core-intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

.case-highlight {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 50%, #ff6f00 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.case-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.05) 12px,
    transparent 12px,
    transparent 24px
  );
  pointer-events: none;
}

.highlight-icon {
  font-size: 4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.highlight-content {
  position: relative;
  z-index: 1;
}

.highlight-shout {
  font-family: var(--font-headings);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.highlight-detail {
  font-size: 1.05rem;
  color: #ffecb3;
}

/* Case grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.case-card-core {
  border-left-width: 6px;
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.case-card-core h3 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.case-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline h3 {
  text-align: center;
  margin-bottom: 28px;
  color: var(--color-text);
}

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-list li {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.timeline-list time {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}

.timeline-list p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Evidence grid */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.evidence-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.evidence-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.evidence-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.evidence-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.evidence-card p {
  color: #b0bec5;
  font-size: 0.95rem;
}

.evidence-card-image {
  grid-column: span 1;
}

.evidence-figure {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.evidence-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.evidence-figure figcaption {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #90a4ae;
  text-align: center;
}

/* Highlight box */
.highlight-box {
  background: rgba(255,255,255,0.07);
  border-left: 5px solid var(--color-warning-border);
  padding: 28px;
  border-radius: var(--radius);
  max-width: 900px;
  margin: 0 auto;
}

.highlight-box h3 {
  margin-bottom: 12px;
  color: #ffcc80;
}

.highlight-box p {
  margin-bottom: 12px;
}

.highlight-box .small {
  font-size: 0.85rem;
  color: #90a4ae;
}

/* Alert section */
.alert-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.alert-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.checklist {
  list-style: none;
  margin-bottom: 20px;
}

.checklist li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.checklist li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.alert-card {
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--color-warning-border);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.alert-card h3 {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-family: var(--font-headings);
  font-size: 1.3rem;
}

.alert-card p {
  color: var(--color-text);
  font-size: 1rem;
}

/* CTA box */
.cta-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 12px;
  margin-bottom: 0 !important;
}

.form-embed {
  max-width: 640px;
  margin: 28px auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.form-embed iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.cta-fallback {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p, .faq-item ul {
  padding: 0 22px 18px;
  color: var(--color-text-light);
}

.faq-item ul {
  padding-left: 44px;
}

.faq-item li {
  margin-bottom: 6px;
}

/* Reference list */
.reference-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
}

.reference-list li {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.reference-list a {
  word-break: break-all;
}

/* Floating form button */
.form-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-secondary);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.2s;
}

.form-float:hover, .form-float:focus {
  transform: scale(1.08);
  text-decoration: none;
  background: #0d47a1;
}

/* Footer */
.footer {
  background: #11151d;
  color: #90a4ae;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  max-width: 900px;
  margin: 0 auto 16px;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: #82b1ff;
  margin: 0 8px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #607d8b;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .alert-content {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .section {
    padding: 48px 20px;
  }
}

@media (max-width: 480px) {
  .top-notice {
    font-size: 0.8rem;
  }

  .case-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list {
    padding-left: 0;
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-list li {
    padding-left: 0;
  }

  .timeline-list li::before {
    display: none;
  }
}

/* Print */
@media print {
  .navbar, .whatsapp-float, .hero-actions, .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
