/* ========================================================
   PERIODISMO ENFOCADO - ENFOCO
   Estilos principales inspirados en el diseño original de Google Sites
   Tipografías: Oswald (encabezados) + Open Sans (cuerpo)
   Color primario distintivo: #ffd966
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --primary-accent: #ffd966;
  --primary-accent-hover: #f3cc4a;
  --primary-accent-dark: #cba220;
  --brand-yellow: #ffd966;
  
  --dark-bg: #141a22;
  --dark-surface: #1e2631;
  --header-bg: #111720;
  --footer-bg: #0f141a;

  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #24292f;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  --container-max: 1140px;
  --transition: all 0.25s ease-in-out;
}

/* Modo Alto Contraste */
body.high-contrast {
  --light-bg: #000000;
  --light-surface: #111111;
  --border-color: #ffd966;
  --text-main: #ffffff;
  --text-muted: #ffd966;
  --primary-accent: #ffff00;
  --card-bg: #050505;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   TOP ACCESSIBILITY BAR
   ======================================================== */
.top-bar {
  background-color: #0b0f14;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.institutional-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}

.institutional-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  display: inline-block;
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  padding: 3px 9px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.a11y-btn:hover {
  background: var(--primary-accent);
  color: #000;
  border-color: var(--primary-accent);
}

/* ========================================================
   HEADER & NAVBAR
   ======================================================== */
.site-header {
  background-color: var(--header-bg);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo .brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

.site-logo .brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-accent);
}

.nav-link.active {
  color: var(--primary-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background-color: var(--primary-accent);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

/* ========================================================
   HERO / BANNER
   ======================================================== */
.hero-banner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 50px 20px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.75) 0%, rgba(17, 23, 32, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-accent);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #f1f5f9;
  line-height: 1.5;
}

/* ========================================================
   MAIN CONTENT SECTIONS
   ======================================================== */
.main-wrapper {
  flex: 1;
  padding: 40px 0 60px;
}

.page-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.page-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-accent);
  border-radius: 2px;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ========================================================
   CARDS & GRIDS
   ======================================================== */
.content-card {
  background-color: var(--light-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
}

.card-lead-text {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ========================================================
   DECÁLOGO SECTION
   ======================================================== */
.decalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.decalogo-card {
  background-color: var(--light-surface);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-accent);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.decalogo-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-accent-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.decalogo-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.6;
}

.decalogo-cite {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================
   TEAM SECTION (EQUIPO ENFOCO)
   ======================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team-card {
  background-color: var(--light-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 217, 102, 0.7);
}

.team-img-wrap {
  width: 100%;
  height: 320px;
  background-color: #0f141a;
  overflow: hidden;
  position: relative;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.03);
}

.team-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(17, 23, 32, 0.85);
  backdrop-filter: blur(4px);
  color: var(--primary-accent);
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 217, 102, 0.3);
}

.team-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   EMPTY / IN PROGRESS SECTIONS STYLING
   ======================================================== */
.status-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 35px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 217, 102, 0.3);
  display: flex;
  align-items: center;
  gap: 24px;
}

.status-icon {
  font-size: 2.5rem;
  color: var(--primary-accent);
  background: rgba(255, 217, 102, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-accent);
  margin-bottom: 8px;
}

.status-content p {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
}

.article-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.article-card {
  background: var(--light-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.article-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 217, 102, 0.2);
  color: #854d0e;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.article-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.3;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 50px 0 25px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-accent);
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom .enfoco-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-accent);
  letter-spacing: 0.1em;
}

/* ========================================================
   SECTOR DE NOTICIAS (NOTICIAS ENFOCO)
   ======================================================== */
.news-section {
  margin-bottom: 45px;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.news-section-header .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-section-header .section-title::after {
  display: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fef3c7;
  color: #92400e;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d97706;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Noticia Principal Destacada */
.news-featured-card {
  background-color: var(--light-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 25px;
  transition: var(--transition);
}

.news-featured-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 217, 102, 0.8);
}

.news-featured-img-wrap {
  position: relative;
  min-height: 280px;
  background-color: #1a202c;
  overflow: hidden;
}

.news-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-featured-card:hover .news-featured-img-wrap img {
  transform: scale(1.03);
}

.news-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(17, 23, 32, 0.9);
  color: var(--primary-accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 217, 102, 0.35);
  text-transform: uppercase;
}

.news-featured-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-category-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  margin-bottom: 10px;
}

.news-featured-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 14px;
}

.news-featured-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.news-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.news-author-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-accent);
}

/* Grilla de Noticias Secundarias */
.news-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.news-item-card {
  background-color: var(--light-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.news-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.news-item-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text-main);
  margin: 8px 0 12px;
}

.news-item-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 900px) {
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .news-featured-img-wrap {
    min-height: 220px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-link.active::after {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .status-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
