/* ============================================================
   BOMBEROS VOLUNTARIOS DE ANGOSTURA
   style.css — Diseño institucional
   Dominio: bomberosangostura.org
   ============================================================ */

/* ---- Variables de color y tipografía ---- */
:root {
  --red:        #CC0000;
  --red-dark:   #990000;
  --red-deep:   #7A0000;
  --gold:       #F5C500;
  --gold-dark:  #C49A00;
  --black:      #111111;
  --dark:       #1A1A1A;
  --dark-2:     #222222;
  --dark-3:     #2E2E2E;
  --gray:       #F4F4F4;
  --gray-mid:   #DDDDDD;
  --text:       #1F1F1F;
  --text-light: #555555;
  --white:      #FFFFFF;

  --font-head:  'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:  'Inter', Arial, sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --transition: 0.25s ease;

  --container:  1200px;
  --header-h:   70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--red-dark); }

ul { list-style: none; }

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

/* ============================================================
   EMERGENCY BAR
   ============================================================ */
.emergency-bar {
  background: var(--red-deep);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 0;
  text-align: center;
  position: relative;
  z-index: 200;
}
.emergency-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.emergency-bar a { color: var(--gold); }
.emergency-bar a:hover { color: var(--white); }
.emergency-bar__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.emergency-bar__num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold) !important;
  letter-spacing: 0.06em;
}
.emergency-bar__sep { opacity: 0.4; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

/* Brand */
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.header__brand:hover { color: var(--gold); }

.header__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__brand-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.header__brand-sub {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn--lg { padding: 15px 36px; font-size: 1rem; }
.btn--sm { padding: 9px 20px; font-size: 0.8rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn--danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--danger:hover { background: #a80000; border-color: #a80000; color: var(--white); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

.btn--whatsapp { background: #25D366; color: var(--white); border-color: #25D366; width: 100%; margin-top: 16px; }
.btn--whatsapp:hover { background: #1DA851; border-color: #1DA851; color: var(--white); }

/* ============================================================
   SECTIONS — base
   ============================================================ */
.section {
  padding: 90px 0;
}
.section--light { background: var(--white); }
.section--gray  { background: var(--gray); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--red   { background: var(--red); color: var(--white); }
.section--emergency { background: var(--red-deep); color: var(--white); }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header--light .section-title,
.section-header--light .section-desc {
  color: var(--white);
}

.section-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-tag--gold { background: var(--gold); color: var(--black); }
.section-tag--white { background: rgba(255,255,255,0.15); color: var(--white); }

.section-title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--dark);
}
.section--dark .section-title,
.section--red .section-title,
.section--emergency .section-title { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}
.section--dark .section-desc,
.section--red .section-desc { color: rgba(255,255,255,0.75); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,0,0,0.88) 0%,
    rgba(120,0,0,0.72) 50%,
    rgba(10,0,0,0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 120px 20px 80px;
}

.hero__badge {
  margin-bottom: 28px;
}
.hero__shield {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(245,197,0,0.3);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero__title--highlight {
  color: var(--gold);
  display: block;
}

.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--red);
  padding: 32px 0;
  border-bottom: 4px solid var(--gold);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat {
  color: var(--white);
  padding: 12px 8px;
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

/* ============================================================
   TWO-COL layout
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col__text p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 1.02rem;
}
.two-col__text p strong { color: var(--dark); }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
}
/* value-icon kept for backwards compat, now using images */
.value-item__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Image frame */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.img-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.img-frame__caption {
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  text-align: center;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__marker {
  background: var(--red);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline__marker::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--red);
}

.timeline__content h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.timeline__content p {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ============================================================
   MISIÓN & VISIÓN
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}
.mv-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.mv-card--mision { background: var(--dark); color: var(--white); border-top: 4px solid var(--red); }
.mv-card--vision { background: var(--red); color: var(--white); border-top: 4px solid var(--gold); }

.mv-card__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.mv-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.mv-card:hover .mv-card__img { transform: scale(1.05); }

.mv-card__body {
  padding: 32px 28px;
  text-align: center;
  flex: 1;
}

.mv-card__title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--gold);
}
.mv-card--vision .mv-card__title { color: var(--white); }
.mv-card__text {
  font-size: 0.97rem;
  line-height: 1.75;
  opacity: 0.9;
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.principle:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(204,0,0,0.08);
  transform: translateY(-3px);
}
/* Principle image */
.principle__img-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray);
  border: 2px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.principle:hover .principle__img-wrap { border-color: var(--red); }
.principle__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.principle h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.principle p { font-size: 0.88rem; color: var(--text-light); }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Image header */
.service-card__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__img { transform: scale(1.06); }

/* Text body */
.service-card__body {
  padding: 24px 22px;
  flex: 1;
}
.service-card__body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--gold);
}
.service-card__body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
}
/* legacy selectors */
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--gold);
}
.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
}

/* ============================================================
   PREVENCIÓN
   ============================================================ */
.prevention-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.prevention-highlight {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-left: 5px solid var(--red);
  display: flex;
  flex-direction: column;
}
.prevention-highlight__img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.prevention-highlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.prevention-highlight:hover .prevention-highlight__img { transform: scale(1.04); }
.prevention-highlight__body {
  padding: 32px 28px;
  flex: 1;
}
.prevention-highlight h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.prevention-highlight p {
  color: rgba(255,255,255,0.82);
  font-size: 0.97rem;
  margin-bottom: 20px;
}
.prevention-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prevention-list li {
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  position: relative;
}
.prevention-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.prevention-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prev-card {
  background: var(--gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-top: 4px solid var(--red);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.prev-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.prev-card__img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}
.prev-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.prev-card:hover .prev-card__img { transform: scale(1.07); }

.prev-card__body { padding: 16px 18px; flex: 1; }
.prev-card h4, .prev-card__body h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prev-card p, .prev-card__body p { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; }

.prevention-cta {
  text-align: center;
  background: var(--gray);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  border-left: 5px solid var(--red);
}
.prevention-cta p {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ============================================================
   EMERGENCIAS
   ============================================================ */
.emergency-title { font-size: clamp(1.8rem, 4vw, 3rem); }

.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.emergency-num {
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
}
.emergency-num__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.emergency-num__digits {
  display: block;
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-shadow: 0 0 40px rgba(245,197,0,0.4);
  transition: all var(--transition);
}
.emergency-num__digits:hover { transform: scale(1.05); color: var(--white); }
.emergency-num__sub {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.emergency-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* e-contact styles moved to image section */

.emergency-tips {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 4px solid var(--gold);
}
.emergency-tips h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.tips-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tips-list li {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  padding-left: 6px;
}
.tips-list li strong { color: var(--white); }
.tips-warning {
  background: rgba(245,197,0,0.12);
  border: 1px solid rgba(245,197,0,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}
.tips-warning strong { color: var(--gold); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin-bottom: 28px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.gallery-item--wide {
  grid-column: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.gallery-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}
.gallery-note a { color: var(--red); }

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card__img-wrap {
  height: 200px;
  overflow: hidden;
}
.news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-card__img-wrap img { transform: scale(1.06); }

.news-card__img-wrap--icon {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-icon { font-size: 3.5rem; }

.news-card__body { padding: 24px 22px; }
.news-card__tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.news-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.news-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}
.news-card__date {
  font-size: 0.78rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
}

/* ============================================================
   APOYO / DONACIONES
   ============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* support-card styles moved to image section below */

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 8px;
}
.contact-shield {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
  flex-shrink: 0;
}
.contact-block h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--white);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-item strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.contact-item a, .contact-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.contact-item a { color: var(--red); }
.contact-item a:hover { color: var(--red-dark); }

/* Form */
.contact-form-wrap {
  background: var(--gray);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   UBICACIÓN
   ============================================================ */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  border: 3px solid var(--gray-mid);
}
.map-wrap iframe { display: block; }

.location-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.loc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}
.loc-item__icon { font-size: 1.8rem; flex-shrink: 0; }
.loc-item div { display: flex; flex-direction: column; gap: 3px; }
.loc-item strong { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); }
.loc-item span { font-size: 1rem; font-weight: 600; color: var(--dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); color: rgba(255,255,255,0.75); }

.footer__top {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__top-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.footer__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.footer__brand strong { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.04em; }
.footer__brand span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

.footer__nav h4,
.footer__contact h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }
.footer__contact p { font-size: 0.88rem; margin-bottom: 8px; }
.footer__contact a { color: rgba(255,255,255,0.65); }
.footer__contact a:hover { color: var(--gold); }

.footer__escudos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer__escudo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.footer__escudo-img:hover { opacity: 1; }

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.footer__emergency { font-size: 0.9rem !important; color: rgba(255,255,255,0.65) !important; }
.footer__emergency a { color: var(--gold); font-weight: 700; }

/* ============================================================
   TRANSPARENCIA
   ============================================================ */
.trans-container {
  background: var(--gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trans-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}

.trans-tab {
  flex: 1;
  min-width: 140px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 12px;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.trans-tab:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.trans-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(245,197,0,0.06);
}

.trans-panels { padding: 36px; }

.trans-panel { display: none; }
.trans-panel.active { display: block; }

.trans-panel h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  letter-spacing: 0.04em;
}

.trans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trans-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.trans-item h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.trans-item p { font-size: 0.92rem; color: var(--dark); font-weight: 500; }

.trans-law-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trans-law-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.trans-law-list li strong {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 700;
}
.trans-law-list li span {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.trans-notice {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow);
}
.trans-notice__icon { font-size: 2.5rem; flex-shrink: 0; }
.trans-notice h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.trans-notice p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   PQRSD
   ============================================================ */
.pqrsd-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: start;
}

.pqrsd-info h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  letter-spacing: 0.04em;
}

.pqrsd-types {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.pqrsd-type {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
  transition: all var(--transition);
}
.pqrsd-type:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.pqrsd-type__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.pqrsd-type strong { display: block; font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; }
.pqrsd-type p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; margin: 0; }

.pqrsd-terms {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 5px solid var(--gold);
}
.pqrsd-terms h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pqrsd-terms ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pqrsd-terms li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  padding-left: 14px;
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 12px;
}
.pqrsd-terms li strong { color: var(--white); }

.pqrsd-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red);
}
.pqrsd-form-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  letter-spacing: 0.04em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.req { color: var(--red); font-weight: 700; }

.pqrsd-check { margin-top: 8px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.checkbox-label strong { color: var(--dark); }

/* Responsive Transparencia/PQRSD */
@media (max-width: 1100px) {
  .trans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pqrsd-layout { grid-template-columns: 1fr; gap: 36px; }
  .trans-grid { grid-template-columns: 1fr 1fr; }
  .trans-law-list li { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .trans-tabs { flex-wrap: wrap; }
  .trans-tab { flex: 1 1 45%; font-size: 0.75rem; padding: 12px 8px; }
  .trans-panels { padding: 24px 16px; }
  .trans-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pqrsd-form-wrap { padding: 24px 16px; }
  .trans-notice { flex-direction: column; gap: 12px; }
}

/* ============================================================
   SUPPORT CARDS — imagen de cabecera
   ============================================================ */
.support-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.support-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.support-card__img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.support-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.support-card:hover .support-card__img { transform: scale(1.06); }
.support-card__body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.support-card__body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.support-card__body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* ============================================================
   CONTACT ITEMS — imagen en lugar de ícono
   ============================================================ */
.contact-item__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   LOCATION ITEMS — imagen en lugar de ícono
   ============================================================ */
.loc-item__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.loc-item__img--round {
  border-radius: 50%;
  border: 2px solid var(--gray-mid);
}

/* ============================================================
   FOOTER — íconos SVG pequeños
   ============================================================ */
.footer__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  opacity: 0.7;
}

/* ============================================================
   TRANSPARENCIA TABS — ícono SVG en pestaña
   ============================================================ */
.trans-tab__img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.trans-tab:hover .trans-tab__img,
.trans-tab.active .trans-tab__img { opacity: 1; }

/* ============================================================
   TRANSPARENCIA NOTICE — ícono SVG grande
   ============================================================ */
.trans-notice__icon-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ============================================================
   PQRSD TYPES — imagen SVG en lugar de emoji
   ============================================================ */
.pqrsd-type__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--transition);
}
.pqrsd-type:hover .pqrsd-type__img { transform: scale(1.12); }

/* ============================================================
   EMERGENCY CONTACTS — imagen SVG
   ============================================================ */
.e-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.e-contact:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--gold);
  transform: translateX(4px);
}
.e-contact__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.e-contact__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.e-contact__info strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.e-contact__info span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox.active { display: flex; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(204,0,0,0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__escudos { flex-direction: row; }
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .mv-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prevention-layout { grid-template-columns: 1fr; gap: 32px; }
  .emergency-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .location-info { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .news-grid { grid-template-columns: 1fr 1fr; }

  /* Gallery responsive */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--wide { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .header__brand-title { font-size: 0.92rem; }

  /* Mobile nav */
  .nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-top: 2px solid var(--red);
    padding: 20px;
    z-index: 99;
  }
  .nav.open { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .hamburger { display: flex; }

  .hero { min-height: 100svh; }
  .hero__content { padding: 100px 20px 60px; }
  .hero__title { font-size: 2rem; }
  .hero__shield { width: 90px; height: 90px; }

  .section-title { font-size: 1.9rem; }
  .timeline { padding-left: 24px; }
  .timeline__item { grid-template-columns: 60px 1fr; gap: 14px; }

  .services-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .prevention-cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }

  .emergency-num__digits { font-size: 4rem; }
  .contact-form-wrap { padding: 28px 20px; }

  .footer__top-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__escudos { flex-direction: row; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--wide { grid-column: 1; }
  .gallery-item { height: 220px; }

  .back-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; max-width: 300px; }
  .mv-card { padding: 28px 20px; }
  .section { padding: 52px 0; }
  .emergency-bar .container { flex-direction: column; gap: 4px; }
}

/* ============================================================
   ESTILOS ADICIONALES LARAVEL — PÁGINAS INTERNAS Y ADMIN
   ============================================================ */

/* Footer adicional */
.footer { background: var(--dark); color: #ccc; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 64px; margin-bottom: 12px; border-radius: 50%; }
.footer__name { color: var(--white); font-family: var(--font-head); font-size: 1rem; line-height: 1.4; margin-bottom: 6px; }
.footer__slogan { color: var(--gold); font-size: 0.88rem; font-style: italic; }
.footer__heading { color: var(--white); font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; border-bottom: 1px solid var(--red); padding-bottom: 6px; }
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.footer__list a { color: #ccc; }
.footer__list a:hover { color: var(--gold); }
.footer__phrase { color: var(--gold-dark); font-size: 0.85rem; font-style: italic; margin-bottom: 8px; }
.footer__wa { margin-top: 14px; background: #25d366; color: #fff; border: none; font-size: 0.9rem; padding: 10px 20px; }
.footer__wa:hover { background: #1ebe5d; color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 0.82rem; color: #888; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__admin-link { color: #555; font-size: 0.78rem; }
.footer__admin-link:hover { color: var(--red); }

/* Page hero (páginas internas) */
.page-hero { background: var(--dark-2); color: var(--white); padding: 100px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red-deep) 0%, var(--dark) 100%); opacity: .85; }
.page-hero .container { position: relative; z-index: 1; }
/* page-hero con imagen de fondo generada por IA */
.page-hero--img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero--img::before { background: linear-gradient(135deg, rgba(140,0,0,.72) 0%, rgba(10,10,20,.68) 100%); opacity: 1; }
.page-hero--img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3) 100%); pointer-events: none; }
.page-hero__tag { display: inline-block; background: var(--red); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; }
.page-hero__title { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; margin-bottom: 12px; }
.page-hero__desc { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; }

/* Tarjetas de noticias internas */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card-full { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.news-card-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-full__img { width: 100%; height: 200px; object-fit: cover; }
.news-card-full__body { padding: 20px; }
.news-card-full__cat { font-size: 0.75rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.news-card-full__title { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; color: var(--text); }
.news-card-full__title a { color: inherit; }
.news-card-full__title a:hover { color: var(--red); }
.news-card-full__excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.news-card-full__date { font-size: 0.8rem; color: #999; }

/* Noticia detalle */
.article-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 24px 0; }
.article-content h2, .article-content h3 { font-family: var(--font-head); margin: 28px 0 12px; color: var(--dark); }
.article-content p { margin-bottom: 16px; line-height: 1.8; }

/* Paginación */
.pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pagination-wrap .pagination { display: flex; gap: 6px; list-style: none; }
.pagination-wrap .page-link { padding: 8px 14px; border: 1px solid var(--gray-mid); border-radius: var(--radius); color: var(--text); font-size: 0.9rem; }
.pagination-wrap .page-item.active .page-link { background: var(--red); color: var(--white); border-color: var(--red); }

/* Galería interna */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.album-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--dark); position: relative; }
.album-card__img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-card__img { transform: scale(1.05); }
.album-card__body { padding: 16px 20px; }
.album-card__title { font-family: var(--font-head); color: var(--white); font-size: 1.1rem; }
.album-card__count { font-size: 0.82rem; color: #999; margin-top: 4px; }
.album-card__link { position: absolute; inset: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.photo-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.06); }
.photo-item__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.photo-item:hover .photo-item__overlay { opacity: 1; }
.photo-item__overlay span { color: var(--white); font-size: 0.85rem; text-align: center; padding: 8px; }

/* Transparencia */
.trans-wrap { padding: 60px 0; }
.trans-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.trans-tab { padding: 8px 18px; border: 2px solid var(--gray-mid); border-radius: 30px; font-size: 0.88rem; cursor: pointer; background: none; transition: all var(--transition); font-family: var(--font-body); }
.trans-tab.active, .trans-tab:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.trans-panel { display: none; }
.trans-panel.active { display: block; }
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.doc-item__info { flex: 1; }
.doc-item__title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.doc-item__meta { font-size: 0.82rem; color: var(--text-light); }
.doc-item__btn { flex-shrink: 0; }

/* PQRSD tipos */
.pqrsd-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.pqrsd-type { background: var(--white); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); }
.pqrsd-type img { width: 60px; margin: 0 auto 12px; }
.pqrsd-type h3 { font-family: var(--font-head); font-size: 1rem; color: var(--red); }
.pqrsd-type p { font-size: 0.83rem; color: var(--text-light); margin-top: 6px; }

/* Formularios públicos */
.form-section { background: var(--gray); padding: 60px 0; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); max-width: 780px; margin: 0 auto; }
.form-title { font-family: var(--font-head); font-size: 1.5rem; color: var(--dark); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-control { padding: 11px 14px; border: 1px solid var(--gray-mid); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.92rem; color: var(--text); transition: border-color var(--transition); }
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.12); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-light); }
.form-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }
.form-error { color: #dc2626; font-size: 0.82rem; }
.invalid-feedback { color: #dc2626; font-size: 0.82rem; }
.is-invalid { border-color: #dc2626 !important; }

/* Admin nav link activo en páginas */
.nav__link.active { color: var(--gold); }

/* Responsive adicional */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news-list { grid-template-columns: 1fr 1fr; }
  .pqrsd-types { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .pqrsd-types { grid-template-columns: 1fr 1fr; }
  .page-hero__title { font-size: 1.9rem; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .doc-item { flex-direction: column; align-items: flex-start; }
}
