/* ═══════════════════════════════════════════════════════
   PAGES.CSS – Servicios DEMO Seguridad Privada
   Shared interior page styles
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --demo-primary: var(--c-primary);
  --demo-dark: var(--c-dark);
  --demo-accent: var(--c-accent);
  --demo-text: var(--c-text);
  --font-display: var(--font-head);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--demo-text);
  background: #f8f9ff;
  line-height: 1.65;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1a1d4a 0%, var(--demo-dark) 60%, var(--demo-primary) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(circle at 80% 50%, rgba(98,217,217,.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative; z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(242,242,242,.6);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--demo-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  letter-spacing: .02em;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(242,242,242,.75);
  margin-top: .75rem;
  max-width: 600px;
}

/* ── Section helpers ── */
.section { padding: 5rem 0; }
.section-alt { background: white; }

.section-header { margin-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--demo-accent);
  background: rgba(65,70,166,.08);
  border: 1px solid rgba(65,70,166,.2);
  border-radius: 50px;
  padding: .28rem .9rem;
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--demo-text);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--demo-primary), var(--demo-accent));
  border-radius: 2px;
  margin-top: .9rem;
}

/* ── Anchor sections ── */
.anchor-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(65,70,166,.1);
}

.anchor-section:last-child { border-bottom: none; }

.anchor-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--demo-primary);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.anchor-section h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.4em;
  background: var(--demo-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.anchor-section p {
  font-size: .95rem;
  color: #555;
  max-width: 760px;
  line-height: 1.75;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(65,70,166,0.1);
  box-shadow: 0 2px 14px rgba(65,70,166,0.07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(65,70,166,0.14);
}

/* ── File list (Archivo) ── */
.file-list { list-style: none; }
.file-list li + li { border-top: 1px solid rgba(65,70,166,.08); }

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem .5rem;
  transition: background var(--transition);
  border-radius: 8px;
}

.file-item:hover { background: rgba(65,70,166,.04); }

.file-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--demo-primary), var(--demo-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
}

.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; color: var(--demo-text); font-size: .92rem; }
.file-meta { font-size: .78rem; color: #888; margin-top: .1rem; }

.file-download {
  font-size: .8rem;
  font-weight: 700;
  color: var(--demo-primary);
  text-decoration: none;
  padding: .35rem .85rem;
  border: 1.5px solid var(--demo-primary);
  border-radius: 50px;
  transition: all .2s;
}

.file-download:hover {
  background: var(--demo-primary);
  color: white;
}

/* ── Avisos page grid ── */
.avisos-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.aviso-full-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(65,70,166,0.1);
  box-shadow: 0 3px 16px rgba(65,70,166,0.07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.aviso-full-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(65,70,166,0.14);
}

.aviso-year-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  background: var(--demo-primary);
  color: white;
  padding: .2rem .65rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.aviso-full-card .date {
  font-size: .8rem;
  color: #e07b00;
  font-weight: 700;
  margin-bottom: .4rem;
}

.aviso-full-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--demo-primary);
  margin-bottom: .5rem;
}

.aviso-full-card p {
  font-size: .88rem;
  color: #555;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-top: .75rem;
  background: rgba(65,70,166,.1);
  color: var(--demo-primary);
}

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--demo-primary);
  margin-bottom: 1.2rem;
}

.contact-detail {
  display: flex;
  gap: .9rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--demo-primary), var(--demo-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.contact-detail-text strong { display: block; font-size: .85rem; color: var(--demo-text); }
.contact-detail-text span { font-size: .85rem; color: #666; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--demo-text); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(65,70,166,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--demo-text);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--demo-primary);
  box-shadow: 0 0 0 3px rgba(65,70,166,.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all .22s ease;
  cursor: pointer;
  border: 2px solid transparent;
  width: fit-content;
}

.btn-primary {
  background: var(--demo-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(65,70,166,.3);
}

.btn-primary:hover {
  background: var(--demo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(65,70,166,.45);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .avisos-page-grid { grid-template-columns: 1fr; }
}

/* ── Long text documents ── */
.doc-shell {
  padding: 3.5rem 0 5rem;
  background:
    linear-gradient(180deg, rgba(65,70,166,.03) 0%, rgba(255,255,255,0) 18%),
    #f6f7fc;
}

.doc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.doc-paper {
  background: #fff;
  border: 1px solid rgba(65,70,166,.1);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(45,57,120,.09);
  overflow: hidden;
}

.doc-header {
  padding: 2.5rem 2.5rem 2rem;
  background:
    linear-gradient(135deg, rgba(65,70,166,.06) 0%, rgba(98,217,217,.09) 100%),
    #fff;
  border-bottom: 1px solid rgba(65,70,166,.08);
}

.doc-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--demo-primary);
}

.doc-kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--demo-accent);
}

.doc-title {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--demo-text);
}

.doc-lead {
  margin-top: .85rem;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: #5d638f;
}

.doc-meta {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.doc-meta-card {
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(65,70,166,.08);
  border-radius: 14px;
}

.doc-meta-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6e749c;
}

.doc-meta-value {
  display: block;
  margin-top: .35rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--demo-text);
}

.doc-body {
  padding: 2.25rem 2.5rem 2.75rem;
}

.doc-section + .doc-section {
  margin-top: 2rem;
}

.doc-section-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--demo-primary);
}

.doc-section-title::before {
  content: '';
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--demo-primary) 0%, var(--demo-accent) 100%);
}

.doc-block {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(65,70,166,.08);
  border-radius: 16px;
  background: #fff;
}

.doc-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.doc-media-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.doc-media-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(65,70,166,.1);
  box-shadow: 0 12px 28px rgba(45,57,120,.08);
  background: linear-gradient(180deg, rgba(65,70,166,.03) 0%, rgba(255,255,255,1) 100%);
}

.doc-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.doc-visual-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid rgba(65,70,166,.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(65,70,166,.04) 0%, rgba(98,217,217,.06) 100%);
}

.doc-visual-band--reverse {
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
}

.doc-visual-copy h2 {
  margin: 0 0 .85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--demo-primary);
}

.doc-visual-copy p {
  margin: 0;
  color: #596186;
  line-height: 1.75;
}

.doc-visual-copy p + p {
  margin-top: .8rem;
}

.doc-visual-frame,
.doc-visual-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(65,70,166,.1);
  background: #fff;
  box-shadow: 0 12px 28px rgba(45,57,120,.08);
}

.doc-visual-frame {
  min-height: 260px;
}

.doc-visual-frame--tall {
  min-height: 100%;
}

.doc-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.doc-visual-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.doc-visual-stack {
  display: grid;
  gap: 1rem;
}

.doc-visual-stack--grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 860px) {
  .doc-visual-band,
  .doc-visual-band--reverse,
  .doc-visual-cluster {
    grid-template-columns: 1fr;
  }

  .doc-visual-frame {
    min-height: auto;
  }
}

.doc-block + .doc-block {
  margin-top: 1rem;
}

.doc-block-title {
  margin-bottom: .75rem;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5a61a1;
}

.doc-text,
.doc-list li,
.doc-ordered li {
  font-size: .98rem;
  line-height: 1.78;
  color: #454c78;
}

.doc-text + .doc-text {
  margin-top: .9rem;
}

.doc-list,
.doc-ordered {
  padding-left: 1.3rem;
}

.doc-list li + li,
.doc-ordered li + li {
  margin-top: .42rem;
}

.doc-ordered.alpha {
  list-style-type: lower-alpha;
}

.doc-ordered.roman {
  list-style-type: lower-roman;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(65,70,166,.08);
  border-radius: 16px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.doc-table th,
.doc-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(65,70,166,.08);
  text-align: left;
  vertical-align: top;
  font-size: .92rem;
  line-height: 1.55;
  color: #4c537f;
}

.doc-table th {
  background: rgba(65,70,166,.06);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--demo-primary);
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-note {
  margin-top: .9rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--demo-accent);
  border-radius: 0 14px 14px 0;
  background: rgba(98,217,217,.08);
  color: #3d4b78;
  line-height: 1.7;
}

.doc-subsection {
  margin-top: 1.25rem;
}

.doc-subtitle {
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--demo-text);
}

.doc-inline-title {
  margin: 1.1rem 0 .5rem;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5a61a1;
}

.doc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(65,70,166,.08);
  border: 1px solid rgba(65,70,166,.1);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--demo-primary);
}

@media (max-width: 900px) {
  .doc-meta,
  .doc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .doc-shell {
    padding: 2rem 0 3rem;
  }

  .doc-container {
    padding: 0 1rem;
  }

  .doc-header,
  .doc-body {
    padding: 1.5rem;
  }

  .doc-meta,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-title {
    font-size: 1.7rem;
  }

  .doc-section-title {
    font-size: 1.3rem;
  }
}
/* --------------------------------------------------
   HOME HERO � Secci�n destacada arriba de avisos
   -------------------------------------------------- */
.home-hero {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.home-hero-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.home-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--c-primary);
  background: rgba(98,217,217,.18);
  border: 1px solid rgba(98,217,217,.4);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.home-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.home-hero-title span {
  display: block;
  color: var(--c-accent-dk);
}
.home-hero-sub {
  color: var(--c-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.home-hero-features {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.6rem;
}
.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(65,70,166,.1);
  border-radius: 10px;
  padding: .65rem .85rem;
  backdrop-filter: blur(4px);
}
.hero-feat-ic {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.1;
}
.hero-feat strong {
  display: block;
  color: var(--c-primary);
  font-family: var(--font-head);
  letter-spacing: .03em;
  font-size: 1rem;
  text-transform: uppercase;
}
.hero-feat span {
  font-size: .88rem;
  color: var(--c-muted);
}
.home-hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.home-hero-art {
  position: relative;
  width: 100%;
}
.home-hero-art-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.home-hero-art-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.home-hero-badge {
  position: absolute;
  bottom: -14px;
  right: -10px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .85rem;
  padding: .55rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--c-accent);
}
@media (max-width: 900px) {
  .home-hero { padding: 0; }
  .home-hero-inner { padding: 0; }
}

/* === Doc cards (used by politica-calidad) === */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: .5rem; }
.doc-card { background: #f7f8ff; border: 1px solid #e2e6f5; border-left: 4px solid #4146a6; border-radius: 10px; padding: 1.1rem 1.2rem; transition: transform .2s, box-shadow .2s; }
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(65,70,166,.12); }
.doc-card-title { margin: 0 0 .4rem; font-size: 1rem; color: #1d2566; font-weight: 700; letter-spacing: .01em; }
.doc-card-text { margin: 0; font-size: .9rem; line-height: 1.55; color: #444; }
.doc-footer-note { margin-top: 2rem; padding: 1rem 1.2rem; background: #1d2566; color: #fff; border-radius: 8px; text-align: center; font-size: .92rem; }
