/* =============================================
   SECTIONS.CSS · Hero, About, Servicios,
   Por Qué, Proceso, Testimonios
   ============================================= */

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  background: radial-gradient(ellipse at 65% 50%, #0a1f3d 0%, #04101e 65%, #020812 100%);
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 60vh;
}
.hero-text .badge { margin-bottom: 28px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  color: var(--naranja);
  text-shadow: 0 0 40px rgba(245,166,35,0.5);
}
.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.solar-panel {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(245,166,35,0.35));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%       { transform: translateY(-20px) rotate(-8deg); }
}

/* Stats row */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card { padding: 28px; text-align: center; }
.stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(245,166,35,0.4);
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 1px;
}

/* ===== SOBRE NOSOTROS ===== */
.about { background: var(--gris-claro); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .badge { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 24px; color: var(--negro); }
.about-text p  { color: #444; margin-bottom: 20px; font-size: 17px; }

.about-card {
  padding: 48px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(249,253,250,0.85));
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(245,166,35,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.about-card .sun-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--naranja);
}
.about-card h3 { margin-bottom: 20px; font-size: 24px; }

.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #333;
}
.check-list svg { flex-shrink: 0; color: var(--naranja); margin-top: 4px; }

/* ===== SERVICIOS ===== */
.servicios {
  background: var(--dark-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.servicios::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--naranja), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: rotate(20deg);
  transition: left 0.8s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(245,166,35,0.6); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { left: 150%; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(245,166,35,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--naranja);
  margin-bottom: 24px;
}
.service-card h3 { color: #fff; margin-bottom: 14px; }
.service-card p  { color: rgba(255,255,255,0.7); font-size: 15px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--naranja);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ===== POR QUÉ ATRYASOL ===== */
.por-que { background: #fff; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: 18px;
  border-left: 4px solid var(--naranja);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.15);
}
.feature-card .badge { margin-bottom: 18px; font-size: 10px; letter-spacing: 1.5px; padding: 5px 11px; }
.feature-icon { width: 40px; height: 40px; color: var(--naranja); margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--negro); }
.feature-card p  { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== PROCESO ===== */
.proceso { background: var(--dark-bg); color: #fff; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 48px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--naranja), var(--naranja), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-num {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  color: var(--naranja);
  background: rgba(245,166,35,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245,166,35,0.4);
  box-shadow: 0 0 30px rgba(245,166,35,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.step h3 { color: #fff; margin-bottom: 10px; font-size: 18px; }
.step p  { color: rgba(255,255,255,0.65); font-size: 14px; }

/* ===== TESTIMONIOS ===== */
.testimonios {
  background: linear-gradient(135deg, #F5A623 0%, #FFB627 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.testimonios-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  padding: 36px;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}
.stars { color: #fff; font-size: 18px; margin-bottom: 12px; opacity: 0.9; }
.quote-mark {
  font-size: 64px;
  color: #fff;
  line-height: 0.5;
  margin-bottom: 20px;
  font-family: serif;
  opacity: 0.4;
}
.testi-text {
  font-style: italic;
  color: #fff;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 18px;
}
.testi-name { font-weight: 600; color: #fff; font-size: 14px; }
.testi-role { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 300; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  h1 { font-size: 54px; }
  h2 { font-size: 34px; }
  .hero-content     { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual      { order: -1; }
  .hero-stats       { grid-template-columns: repeat(2, 1fr); }
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .servicios-grid   { grid-template-columns: 1fr 1fr; }
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .timeline         { grid-template-columns: 1fr 1fr; gap: 40px; }
  .timeline::before { display: none; }
  .testimonios-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
  h1 { font-size: 40px; letter-spacing: -1px; }
  h2 { font-size: 28px; }
  .container       { padding: 0 20px; }
  .hero-stats      { grid-template-columns: 1fr 1fr; }
  .servicios-grid  { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: 1fr; }
  .timeline        { grid-template-columns: 1fr; }
  .testimonios-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
}
