/* ============================================
   MURCIA EN FUTURO — Plan General de Ordenación
   ============================================ */
:root {
  --color-primary: #1370b6;
  --color-primary-dark: #0e5a94;
  --color-primary-light: #1a8ad8;
  --color-accent: #e8f4fc;
  --color-dark: #1a1a1a;
  --color-header: #000000;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-bg: #f7f9fb;
  --color-border: #d8e3ed;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --header-height: 72px;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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(--color-text); background: var(--color-white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === HEADER === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background: var(--color-header); z-index: 1000; transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.header-logo svg { height: 40px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { color: rgba(255,255,255,0.8); font-family: var(--font-heading); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em; position: relative; }
.header-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-primary-light); transition: width var(--transition); }
.header-nav a:hover, .header-nav a.active { color: var(--color-white); }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-cta { background: var(--color-primary); color: var(--color-white) !important; padding: 8px 20px; border-radius: 100px; font-weight: 600; font-size: 0.84rem; }
.header-cta:hover { background: var(--color-primary-light); }
.header-cta::after { display: none !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--color-dark); }
.hero-video-wrap { position: absolute; inset: 0; z-index: 1; }
.hero-video-wrap video, .hero-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { background: linear-gradient(135deg, #071e33 0%, #0e3a5e 30%, #1370b6 70%, #0e5a94 100%); position: relative; }
.hero-placeholder::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 70%, rgba(19,112,182,0.35) 0%, transparent 55%), radial-gradient(ellipse at 75% 25%, rgba(26,138,216,0.2) 0%, transparent 50%); }
.hero-placeholder::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%); }
.hero-content { position: relative; z-index: 3; text-align: center; padding: 0 24px; max-width: 820px; }
.hero-badge { display: inline-block; background: rgba(19,112,182,0.2); border: 1px solid rgba(19,112,182,0.45); color: rgba(255,255,255,0.9); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 22px; border-radius: 100px; margin-bottom: 24px; backdrop-filter: blur(8px); }
.hero h1 { color: var(--color-white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--color-primary-light); }
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 600px; margin: 0 auto 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; padding: 14px 32px; border-radius: 100px; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-light); color: var(--color-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(19,112,182,0.4); }
.btn-outline { background: transparent; color: var(--color-white); border: 2px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--color-white); color: var(--color-white); background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,0.5); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; text-align: center; animation: float 2.5s ease-in-out infinite; }
.hero-scroll .arrow { display: block; margin: 8px auto 0; width: 18px; height: 18px; border-right: 2px solid rgba(255,255,255,0.4); border-bottom: 2px solid rgba(255,255,255,0.4); transform: rotate(45deg); }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }


/* === SECTION SHARED === */
.section { padding: 100px 0;  min-height: 75vh;}
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; color: var(--color-primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.section-header p { color: var(--color-text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-footer-link { text-align: center; margin-top: 48px; }

/* === INTRO CLAIM === */
.section-intro { background: var(--color-white); text-align: center; padding: 100px 0; }
.section-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 750px; margin: 0 auto 24px; }
.section-intro .lead { color: var(--color-text-light); font-size: 1.1rem; max-width: 650px; margin: 0 auto 36px; line-height: 1.75; }

/* === ÁMBITOS / DIMENSIONS === */
.section-ambitos { background: var(--color-bg); }
.dimensions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dimension-block { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.dimension-block:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.dimension-header { padding: 28px 24px 20px; text-align: center; }
.dimension-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; }
.dimension-block:nth-child(1) .dimension-icon { background: rgba(42,157,92,0.12); color: #2a9d5c; }
.dimension-block:nth-child(2) .dimension-icon { background: rgba(230,126,34,0.12); color: #e67e22; }
.dimension-block:nth-child(3) .dimension-icon { background: rgba(19,112,182,0.12); color: var(--color-primary); }
.dimension-header h3 { font-size: 1.15rem; margin-bottom: 8px; }
.dimension-header p { font-size: 0.86rem; color: var(--color-text-light); line-height: 1.55; }
.dimension-items { padding: 0 24px 24px; }
.dimension-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--color-border); font-size: 0.9rem; color: var(--color-text); cursor: default; transition: color var(--transition); }
.dimension-item:hover { color: var(--color-primary); }
.dimension-item .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dimension-block:nth-child(1) .dot { background: #2a9d5c; }
.dimension-block:nth-child(2) .dot { background: #e67e22; }
.dimension-block:nth-child(3) .dot { background: var(--color-primary); }

/* === FASES TIMELINE === */
.section-fases { background: var(--color-white); }
.fases-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.fases-timeline::before { content: ''; position: absolute; top: 40px; left: calc(16.66% + 12px); right: calc(16.66% + 12px); height: 3px; background: var(--color-border); z-index: 0; }
.fase-card { text-align: center; padding: 0 20px; position: relative; }
.fase-number { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--color-white); position: relative; z-index: 1; }
.fase-card:nth-child(1) .fase-number { background: var(--color-primary); }
.fase-card:nth-child(2) .fase-number { background: var(--color-primary-dark); }
.fase-card:nth-child(3) .fase-number { background: #0a4170; }
.fase-period { display: inline-block; background: var(--color-accent); color: var(--color-primary); font-size: 0.78rem; font-weight: 700; padding: 4px 14px; border-radius: 100px; margin-bottom: 14px; }
.fase-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.fase-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.65; }

/* === DOCUMENTACIÓN === */
.section-docs { background: var(--color-bg); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.doc-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--color-white); border-radius: var(--radius); border: 1px solid var(--color-border); transition: all var(--transition); }
.doc-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.doc-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius); background: var(--color-accent); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.doc-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.doc-card p { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.55; }
.doc-badge { display: inline-block; margin-top: 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 100px; }
.doc-badge.available { background: rgba(42,157,92,0.1); color: #2a9d5c; }
.doc-badge.pending { background: rgba(230,126,34,0.1); color: #e67e22; }

/* === EVENTOS === */
.section-eventos { background: var(--color-white); }
.eventos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evento-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.evento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.evento-img { height: 200px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 3rem; }
.evento-date-badge { position: absolute; top: 16px; left: 16px; background: var(--color-white); border-radius: var(--radius); padding: 8px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.evento-date-badge .day { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.evento-date-badge .month { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); }
.evento-body { padding: 20px 24px 24px; }
.evento-type { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 8px; }
.evento-body h3 { font-size: 1.02rem; margin-bottom: 8px; line-height: 1.35; }
.evento-body p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.55; }

/* === PARTICIPA CTA === */
.section-participa { background: linear-gradient(135deg, #071e33 0%, var(--color-primary-dark) 60%, var(--color-primary) 100%); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.section-participa::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(19,112,182,0.15); top: -200px; right: -100px; pointer-events: none; }
.section-participa::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(26,138,216,0.1); bottom: -150px; left: -50px; pointer-events: none; }
.section-participa .container { position: relative; z-index: 1; }
.section-participa h2 { color: var(--color-white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-participa p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.section-participa .btn-white { background: var(--color-white); color: var(--color-primary); font-size: 1rem; padding: 16px 40px; }
.section-participa .btn-white:hover { background: var(--color-accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* === NOTICIAS === */
.section-noticias { background: var(--color-bg); }
.noticias-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.noticia-featured { grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.noticia-featured:hover { box-shadow: var(--shadow-md); }
.noticia-featured .noticia-img { height: 280px; background: linear-gradient(135deg, #0e5a94, #1370b6); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 3rem; }
.noticia-featured .noticia-body { padding: 28px; }
.noticia-small { display: flex; gap: 20px; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.noticia-small:hover { box-shadow: var(--shadow-md); }
.noticia-small .noticia-img { width: 160px; min-height: 140px; flex-shrink: 0; background: linear-gradient(135deg, var(--color-primary), #0a4170); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 2rem; }
.noticia-small .noticia-body { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.noticia-date { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.noticia-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.35; }
.noticia-featured .noticia-body h3 { font-size: 1.25rem; }
.noticia-body p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.55; }

/* === FOOTER === */
.site-footer { background: var(--color-header); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; margin-top: 16px; max-width: 320px; }
.footer-brand .footer-logo { height: 44px; width: auto; opacity: 0.9; }
.footer-col h4 { color: var(--color-white); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-white); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .dimensions-grid { grid-template-columns: 1fr; }
  .fases-timeline { grid-template-columns: 1fr; gap: 40px; }
  .fases-timeline::before { display: none; }
  .eventos-grid { grid-template-columns: 1fr 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .noticia-featured { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .header-nav { display: none; position: fixed; top: var(--header-height); left: 0; width: 100%; background: var(--color-header); flex-direction: column; padding: 24px; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 90vh; }
  .hero-actions { flex-direction: column; align-items: center; }
  .eventos-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .noticia-small { flex-direction: column; }
  .noticia-small .noticia-img { width: 100%; min-height: 160px; }
  .noticia-small .noticia-body { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 60px 0; }
}
