/* Oposiciones Vega Baja — Estilo Luminoso y Profesional */
:root{
  /* Colores principales */
  --bg:#ffffff;
  --bg-alt:#f8fafc;
  --surface:#ffffff;
  --line:#e2e8f0;
  --text:#1e293b;
  --muted:#64748b;
  --accent:#2563eb;
  --accent-light:#3b82f6;
  --accent-dark:#1e40af;
  --cta:#f59e0b;
  --cta-hover:#d97706;
  --success:#10b981;
  --shadow:0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:0 10px 40px rgba(0,0,0,.12);
  --radius:12px;
  --radius-lg:16px;
  --max:1160px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom:2px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex; align-items:center; gap:14px; text-decoration:none;
}

.brand img{
  height:84px; width:auto; display:block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
}

.brand .brand-text{
  display:flex; flex-direction:column; gap:2px;
}

.brand .brand-text strong{
  font-size:14px; 
  letter-spacing:.08em; 
  text-transform:uppercase; 
  color:var(--accent);
  font-weight:700;
}

.brand .brand-text span{
  font-size:18px; 
  font-weight:700;
  color:var(--text);
}

/* Buttons */
.nav-actions{display:flex; align-items:center; gap:10px}

.btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border-radius:10px;
  border:2px solid var(--line);
  background:var(--bg);
  text-decoration:none;
  font-weight:600;
  color:var(--text);
  transition: all 0.2s ease;
  cursor:pointer;
}

.btn:hover{
  background:var(--bg-alt);
  border-color:var(--accent);
  color:var(--accent);
  transform: translateY(-1px);
}

.btn-cta{
  background: linear-gradient(135deg, var(--cta), #fbbf24);
  border:none;
  color:#ffffff;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
  font-weight:700;
}

.btn-cta:hover{
  background: linear-gradient(135deg, var(--cta-hover), var(--cta));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.4);
}

.icon-btn{
  width:46px; height:46px; 
  border-radius:10px;
  border:2px solid var(--line);
  background:var(--bg);
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  cursor:pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover{
  background:var(--bg-alt);
  border-color:var(--accent);
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown{position:relative}

.dropdown-panel{
  position:absolute; right:0; top:56px;
  width:260px;
  background:var(--surface);
  border:2px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow-lg);
  overflow:hidden;
  display:none;
}

.dropdown-panel.open{display:block}

.dropdown-panel a{
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  padding:14px 16px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
  color:var(--text);
  transition: all 0.2s ease;
}

.dropdown-panel a:last-child{border-bottom:0}

.dropdown-panel a:hover{
  background:var(--bg-alt);
  color:var(--accent);
  padding-left:20px;
}

.badge{
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--accent);
  color:#ffffff;
  font-weight:600;
}

/* Hero */
.hero{
  padding:60px 0 40px;
  background: 
    linear-gradient(135deg, rgba(240,249,255,.8) 0%, rgba(254,243,199,.8) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(37,99,235,.02) 35px,
      rgba(37,99,235,.02) 70px
    );
  position: relative;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:stretch;
}

.hero-card{
  border:2px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow: var(--shadow-lg);
  padding:36px;
  position:relative;
  overflow:hidden;
}

.hero-card:before{
  content:"";
  position:absolute;
  top:0; right:0;
  width:300px; height:300px;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  border-radius:50%;
  transform: translate(40%, -40%);
}

.hero-card > *{position:relative; z-index:1}

/* Hero lateral con imagen */
.hero-side{
  border:2px solid var(--line);
  border-radius:var(--radius-lg);
  background-color: #1e293b;
  background-image: 
    linear-gradient(135deg, rgba(30,41,59,.75) 0%, rgba(51,65,85,.70) 100%),
    url(https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=800&h=600&fit=crop&q=80);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  padding:28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hero-side > *{
  position: relative;
  z-index: 2;
}

.hero-side .pill{
  border:2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.hero-side .pill:hover{
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.18);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

.hero-side .pill strong{
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.hero-side .pill span{
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.hero-side .notice{
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.hero-side .notice strong{
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.kicker{
  display:inline-flex; 
  align-items:center; 
  gap:10px;
  padding:8px 14px;
  border:2px solid var(--accent);
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:var(--accent);
  font-weight:700;
  font-size:13px;
}

.kicker .dot{
  width:8px; height:8px; 
  border-radius:999px;
  background:var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1{
  margin:18px 0 12px;
  font-size:44px;
  line-height:1.1;
  letter-spacing:-.02em;
  color:var(--text);
}

.hero p{
  margin:0 0 20px; 
  color:var(--muted); 
  font-size:17px;
  line-height:1.6;
}

.hero-actions{
  display:flex; 
  flex-wrap:wrap; 
  gap:12px; 
  margin-top:20px;
}

.pill{
  display:flex; 
  gap:14px; 
  padding:16px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-alt);
  margin-bottom:14px;
  transition: all 0.2s ease;
}

.pill:hover{
  border-color:var(--accent);
  transform: translateX(4px);
}

.pill strong{
  display:block;
  color:var(--text);
  font-size:15px;
}

.pill span{
  color:var(--muted); 
  font-size:14px;
}

/* Sections */
.section{
  padding:50px 0;
  background:var(--bg);
}

.section:nth-child(even){
  background: 
    linear-gradient(135deg, rgba(240,249,255,.3) 0%, rgba(254,243,199,.2) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(37,99,235,.02) 40px,
      rgba(37,99,235,.02) 41px
    );
}

.section h2{
  margin:0 0 12px; 
  font-size:32px; 
  letter-spacing:-.01em;
  color:var(--text);
}

.section p.lead{
  margin:0 0 30px; 
  color:var(--muted); 
  font-size:17px;
  max-width:680px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.card{
  border:2px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  padding:24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.card:before{
  content:"";
  position:absolute;
  top:-50px;
  right:-50px;
  width:150px;
  height:150px;
  background: radial-gradient(circle, rgba(37,99,235,.04) 0%, transparent 70%);
  border-radius:50%;
  pointer-events:none;
  transition: all 0.3s ease;
}

.card:hover{
  border-color:var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.card:hover:before{
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  transform: scale(1.2);
}

/* Iconos decorativos para tarjetas */
.card-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(59,130,246,.1));
  border:2px solid rgba(37,99,235,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  font-size:24px;
  transition: all 0.3s ease;
}

.card:hover .card-icon{
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(59,130,246,.15));
  border-color: rgba(37,99,235,.4);
}

.card h3{
  margin:0 0 10px; 
  font-size:20px;
  color:var(--text);
  position: relative;
  z-index: 1;
}

.card p{
  margin:0; 
  color:var(--muted);
  line-height:1.6;
  position: relative;
  z-index: 1;
}

.card .meta{
  margin-top:16px; 
  display:flex; 
  gap:8px; 
  flex-wrap:wrap;
  position: relative;
  z-index: 1;
}

.tag{
  font-size:12px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.3);
  color:var(--success);
  font-weight:600;
}

.tag.blue{
  background:rgba(37,99,235,.12); 
  border-color:rgba(37,99,235,.3);
  color:var(--accent);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
  align-items:start;
}

.form{
  border:2px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  padding:28px;
  box-shadow: var(--shadow);
}

.field{
  display:flex; 
  flex-direction:column; 
  gap:8px; 
  margin-bottom:16px;
}

label{
  font-weight:700; 
  font-size:14px; 
  color:var(--text);
}

input,textarea,select{
  background:var(--bg-alt);
  border:2px solid var(--line);
  border-radius:10px;
  padding:12px 14px;
  color:var(--text);
  outline:none;
  transition: all 0.2s ease;
  font-size:15px;
}

input:focus,textarea:focus,select:focus{
  border-color:var(--accent);
  background:var(--bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

textarea{
  min-height:120px; 
  resize:vertical;
}

.small{
  font-size:14px; 
  color:var(--muted);
  line-height:1.5;
}

.notice{
  margin-top:16px;
  padding:14px 16px;
  border-radius:var(--radius);
  background:rgba(16,185,129,.1);
  border:2px solid rgba(16,185,129,.2);
  color:var(--text);
}

/* Footer */
.footer{
  margin-top:0;
  border-top:2px solid var(--line);
  background:var(--bg-alt);
  padding:32px 0;
  color:var(--muted);
}

.footer-grid{
  display:grid; 
  grid-template-columns: 1.2fr .8fr;
  gap:20px; 
  align-items:start;
}

.footer .footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}

.footer a{
  color:var(--text); 
  text-decoration:none;
  transition: color 0.2s ease;
}

.footer a:hover{
  color:var(--accent);
  text-decoration:underline;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .brand .brand-text{display:none}
  .brand img{height:72px}
  .hero h1{font-size:36px}
  .section h2{font-size:28px}
}

@media (max-width: 640px){
  .hero{padding:40px 0 30px}
  .hero-card{padding:24px}
  .hero h1{font-size:32px}
  .nav-actions{gap:6px}
  .btn{padding:10px 14px; font-size:14px}
}
