/*
  sections.css - Estilos específicos de secciones (Cifras, Latam, Acompañamiento, Photons)
  Prioridad: BELOW THE FOLD
  Tamaño: ~3.5KB
*/

/* ============================================
   EMAT EN CIFRAS SECTION
   ============================================ */

.home-landing #emat-cifras {
  position: relative;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(15,23,42,0.04);
  background: linear-gradient(180deg, rgba(238,118,1,0.02), transparent 40%);
}

.home-landing .emat-cifras-header h2 {
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 800;
  color: rgba(15,23,42,0.95);
}

.home-landing .emat-cifras-header p {
  margin-top: .25rem;
  color: rgba(15,23,42,0.6);
}

.home-landing .emat-cifras-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #EE7601;
  border-radius: 2px;
  margin-top: 0.6rem;
}

@media (min-width: 768px) {
  .home-landing .emat-cifras-header h2 { 
    font-size: 2.25rem; 
  }
}

/* ============================================
   PHOTONS / FLOATING PARTICLES
   Partículas decorativas que flotan
   ============================================ */

.home-landing-bg-pattern .photons-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.home-landing-bg-pattern .photon {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--emat-solar) 0%, rgba(255, 122, 0, 0.25) 40%, rgba(255, 122, 0, 0) 75%);
  mix-blend-mode: screen;
  opacity: 0.12;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  filter: blur(3px);
}

.home-landing-bg-pattern .photon.is-animated {
  animation-name: photonFloat;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

.home-landing-bg-pattern .photons-container.is-active .photon {
  opacity: 0.28;
  filter: blur(1.5px);
}

.home-landing-bg-pattern .cta-with-photons {
  position: relative;
}

.home-landing-bg-pattern .cta-with-photons::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: -10px;
  top: -8px;
  background: radial-gradient(circle, var(--emat-solar) 0%, rgba(255, 122, 0, 0) 60%);
  filter: blur(4px);
  opacity: 0.9;
  pointer-events: none;
}

/* Mobile: fewer particles and lower opacity */
@media (max-width: 640px) {
  .home-landing-bg-pattern .photon {
    opacity: 0.045;
    filter: blur(1.5px);
  }
}

/* ============================================
   ACOMPAÑAMIENTO SECTION
   Full width background con efecto "Solar Field"
   ============================================ */

.home-landing .acompanamiento-section {
  position: relative;
  background-color: #fffbf7;
  overflow: hidden;
}

.home-landing .acompanamiento-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 0, 0.05) 0%, transparent 70%),
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255, 122, 0, 0.015) 0,
      rgba(255, 122, 0, 0.015) 1px,
      transparent 1px,
      transparent 60px);
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  z-index: 0;
}

.home-landing .acompanamiento-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   LATAM SVG MAP STYLES
   ============================================ */

.map-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.15));
}

.country-path {
  fill: #FFFFFF;
  stroke: #D4D4D4;
  stroke-width: 0.5;
  transition: all 0.3s ease;
}

.country-path:hover {
  fill: #F5F5F5;
}

.country-path.highlighted {
  fill: #FFF5EB;
  stroke: #EE7601;
  stroke-width: 1.5;
  z-index: 10;
  cursor: pointer;
}

.country-path.highlighted:hover {
  fill: #EE7601;
  opacity: 0.8;
  stroke: #EE7601;
}

.country-path.coming-soon {
  stroke: #3B82F6;
  fill: #EFF6FF;
  stroke-width: 1.5;
  cursor: pointer;
}

.country-path.coming-soon:hover {
  fill: #3B82F6;
  opacity: 0.8;
}

.map-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-pin-container {
  pointer-events: auto;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .home-landing-bg-pattern .photon,
  .home-landing-bg-pattern .photons-container,
  .home-landing-bg-pattern .cta-with-photons::before {
    display: none !important;
  }

  .home-landing .equip-visual .equip-image-bg,
  .home-landing .equip-visual .equip-image {
    transition: none;
    transform: none;
  }
}

/* ============================================
   BEMCO OVERRIDES
   ============================================ */

.home-landing #contacto {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(0, 32, 91, 0.90) 0%, rgba(0, 58, 140, 0.84) 45%, rgba(0, 32, 91, 0.92) 100%),
    var(--contacto-bg-image, url('/assets/images/backgrounds/bg-emat-2.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-landing #contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 176, 63, 0.16) 0%, rgba(249, 176, 63, 0) 42%),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.home-landing #contacto > .mx-auto {
  position: relative;
  z-index: 1;
}

/* Contact form field focus + placeholder */
#contacto .js-contacto-field:focus {
  border-color: rgba(249, 176, 63, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(249, 176, 63, 0.12);
}

#contacto .js-contacto-field::placeholder {
  color: rgba(255, 255, 255, 0.28);
}


.home-landing #emat-cifras {
  border-top: 1px solid rgba(0, 32, 91, 0.08);
  background: linear-gradient(180deg, rgba(0, 32, 91, 0.06), rgba(0, 58, 140, 0.03) 38%, transparent 100%);
}

.home-landing .emat-cifras-header h2 {
  color: var(--bemco-text);
}

.home-landing .emat-cifras-header p {
  color: rgba(10, 30, 78, 0.70);
}

.home-landing .emat-cifras-header h2::after {
  background: linear-gradient(90deg, var(--bemco-accent), rgba(249, 176, 63, 0.18));
}

.home-landing-bg-pattern .photon {
  background: radial-gradient(circle, var(--bemco-accent) 0%, rgba(249, 176, 63, 0.28) 42%, rgba(249, 176, 63, 0) 76%);
}

.home-landing-bg-pattern .cta-with-photons::before {
  background: radial-gradient(circle, var(--bemco-accent) 0%, rgba(249, 176, 63, 0) 60%);
}

.home-landing .acompanamiento-section {
  background-color: #F5F7FA;
}

.home-landing .acompanamiento-section::before {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(249, 176, 63, 0.08) 0%, transparent 70%),
    repeating-radial-gradient(circle at 50% 50%,
      rgba(0, 32, 91, 0.018) 0,
      rgba(0, 32, 91, 0.018) 1px,
      transparent 1px,
      transparent 60px);
}

.home-landing .acompanamiento-section::after {
  background-image:
    linear-gradient(rgba(0, 32, 91, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 32, 91, 0.03) 1px, transparent 1px);
}

.country-path.highlighted {
  fill: rgba(249, 176, 63, 0.18);
  stroke: var(--bemco-accent);
}

.country-path.highlighted:hover {
  fill: var(--bemco-accent);
  stroke: var(--bemco-accent);
}

.country-path.coming-soon {
  stroke: var(--bemco-primary-hover);
  fill: rgba(0, 58, 140, 0.10);
}

.country-path.coming-soon:hover {
  fill: var(--bemco-primary-hover);
}
