/* ═══════════════════════════════════════════════
   inicio.css — EnergiAVerde
   Estilos de: Portada (hero), Introducción y
   sección de Energía Solar (Nivel 1)
═══════════════════════════════════════════════ */

/* ── PORTADA / HERO ── */
#portada {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.45;
}

.hero-bg-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 65% 25%, rgba(74,222,128,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 15% 75%, rgba(251,191,36,0.05) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: "●";
  font-size: 0.5rem;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

h1 .accent  { color: var(--green); }
h1 .accent2 { color: var(--amber); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat .val {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--green);
  display: block;
  letter-spacing: -0.05em;
}
.hero-stat .lbl {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── INTRODUCCIÓN ── */
#introduccion { background: var(--surface); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.intro-text p       { font-size: 0.96rem; }
.intro-text p + p   { margin-top: 0.5rem; }

.intro-pillars { display: flex; flex-direction: column; gap: 1rem; }
.pillar {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.pillar:hover       { border-color: var(--green-dim); }
.pillar-icon        { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.pillar h3          { font-size: 0.95rem; color: var(--text); margin-bottom: 0.2rem; }
.pillar p           { font-size: 0.82rem; margin: 0; }

/* ── ENERGÍA SOLAR (Nivel 1) ── */
#energia { background: var(--bg); }

.energy-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
@media (max-width: 700px) {
  .energy-hero-grid { grid-template-columns: 1fr; }
}

/* Visual animado del sol y paneles */
.solar-visual {
  position: relative;
  height: 300px;
  background: linear-gradient(160deg, #081208 0%, #0f2010 50%, #050d05 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-rays {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(rgba(251,191,36,0.025) 0deg, transparent 8deg, transparent 16deg);
  animation: spin 25s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sv-sun {
  width: 88px; height: 88px;
  background: radial-gradient(circle at 40% 35%, #fde68a, #f59e0b 60%, #d97706);
  border-radius: 50%;
  box-shadow: 0 0 70px 25px rgba(251,191,36,0.25);
  animation: sunpulse 4s ease-in-out infinite;
  z-index: 2; position: relative;
}
@keyframes sunpulse {
  0%,100% { box-shadow: 0 0 70px 25px rgba(251,191,36,0.25); }
  50%      { box-shadow: 0 0 100px 40px rgba(251,191,36,0.45); }
}

.sv-panels {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 90px; gap: 1px; background: #060e06;
}
.sv-panel {
  background: linear-gradient(145deg, #0a1e0a, #142514);
  position: relative;
}
.sv-panel::after {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(74,222,128,0.18); border-radius: 2px;
}
.sv-panel::before {
  content: ''; position: absolute;
  width: 1px; height: 100%; left: 50%;
  background: rgba(74,222,128,0.08);
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.fact-card:hover { border-color: var(--green-dim); }
.fact-icon       { font-size: 1.9rem; margin-bottom: 0.75rem; }
.fact-card h3    { font-size: 1rem; color: var(--text); margin-bottom: 0.35rem; }
.fact-card p     { font-size: 0.84rem; margin: 0; }

/* Selector de tipos de energía */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.type-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.type-btn:hover          { border-color: var(--border2); }
.type-btn.active         { border-color: var(--green); background: rgba(74,222,128,0.07); }
.type-btn .emoji         { font-size: 1.9rem; display: block; margin-bottom: 0.4rem; }
.type-btn .name          { font-size: 0.84rem; font-weight: 500; color: var(--text); }

.type-detail {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESULTADOS ESPERADOS ── */
#resultados { background: var(--bg); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.result-card:hover    { border-color: var(--green-dim); }
.result-card .rc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.result-card h3       { font-size: 1rem; color: var(--text); margin-bottom: 0.4rem; }
.result-card p        { font-size: 0.84rem; margin: 0; }

/* CTA final */
.final-cta {
  background: linear-gradient(135deg, #0f2010, #172515);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.final-cta h3        { font-size: 1.6rem; color: var(--text); margin-bottom: 0.75rem; }
.final-cta p         { max-width: 500px; margin: 0 auto 1.75rem; }
.final-cta-btns      { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
