/*
Theme Name: AEMER
Theme URI: https://aemer.info
Author: AEMER
Description: Sitio web oficial de AEMER — Asociación Provincial Empresarial de Gestión Medioambiental y Energías Renovables. Tenerife, Canarias.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: aemer
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #1B3D7B;
  --blue-dark:    #0D2347;
  --blue-light:   #2952A3;
  --orange:       #F5921E;
  --orange-light: #FDB24F;
  --orange-pale:  #FFF3E0;
  --white:        #FFFFFF;
  --gray-light:   #F4F6FB;
  --gray:         #E8ECF4;
  --text:         #1A1A2E;
  --text-medium:  #4A5568;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue-dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

/* ── TOP BAR ── */
#top-bar {
  position: fixed; top: 0; left: 0; width: 100%;
  background: var(--blue-dark);
  z-index: 1001;
  padding: 7px 40px;
}
#top-bar .top-bar-menu {
  display: flex; justify-content: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
#top-bar .top-bar-menu a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color .2s;
}
#top-bar .top-bar-menu a:hover { color: var(--orange); }
.has-top-bar #nav { top: 36px; }

/* ── WORDPRESS ADMIN BAR ── */
#wpadminbar { display: none !important; }
html.admin-bar,
html.admin-bar body { margin-top: 0 !important; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .3s;
}
#nav.scrolled {
  background: rgba(13,35,71,.95);
  backdrop-filter: blur(12px);
  padding: 12px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-logo img {
  height: 52px; width: auto;
  background: white; border-radius: 10px; padding: 7px 14px;
}
.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 22px; color: var(--blue-dark);
  letter-spacing: 1px; text-decoration: none;
}
#nav.scrolled .nav-logo-text { color: white; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--blue-dark); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
#nav.scrolled .nav-links a { color: rgba(255,255,255,.85); }
#nav.scrolled .nav-links a:hover { color: var(--orange); }
.mobile-menu-open .nav-links a { color: rgba(255,255,255,.85); }
.mobile-menu-open .nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange) !important; color: white !important;
  padding: 9px 20px; border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-light) !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: all .3s; }
#nav.scrolled .nav-hamburger span, .mobile-menu-open .nav-hamburger span { background: white; }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  background: var(--white);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(245,146,30,.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(27,61,123,.04) 0%, transparent 50%),
    linear-gradient(rgba(27,61,123,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,61,123,.025) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
}
.hero-content {
  position: relative; max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,146,30,.1); border: 1px solid rgba(245,146,30,.3);
  color: var(--orange); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 900; color: var(--blue-dark);
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px;
}
.hero-title span { color: var(--orange); }
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-medium);
  line-height: 1.75; margin-bottom: 40px; max-width: 520px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: white; padding: 14px 28px;
  border-radius: 8px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,146,30,.35);
  color: white;
}
.btn-secondary {
  background: transparent; color: var(--blue-dark); padding: 14px 28px;
  border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 2px solid var(--blue);
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
}
.btn-secondary:hover { border-color: var(--blue-dark); background: rgba(27,61,123,.06); color: var(--blue-dark); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--gray);
}
.hero-stat strong {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: 28px; font-weight: 800; color: var(--orange);
}
.hero-stat span { font-size: 13px; color: var(--text-medium); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-seal {
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(27,61,123,.04);
  border: 2px solid rgba(27,61,123,.12);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; animation: float 4s ease-in-out infinite;
}
.hero-seal::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--orange), var(--orange-light), var(--orange), transparent 60%);
  animation: spin 8s linear infinite; z-index: -1;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin  { to { transform: rotate(360deg); } }
.hero-seal img { width: 110px; margin-bottom: 14px; }
.hero-seal-text { text-align: center; color: var(--blue-dark); }
.hero-seal-text strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 2px; }
.hero-seal-text span { font-size: 11px; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; }

/* ── SECTIONS ── */
section { padding: 100px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-medium);
  line-height: 1.75; max-width: 600px; margin-bottom: 56px;
}

/* ── QUÉ ES AEMER ── */
#asociacion { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  background: var(--gray-light); border-radius: 12px; padding: 24px;
  border: 1px solid var(--gray); transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,61,123,.1); }
.pillar-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pillar-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.pillar p  { font-size: 13.5px; color: var(--text-medium); line-height: 1.6; }
.about-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 20px; padding: 48px; color: white; text-align: center;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,146,30,.2), transparent);
  border-radius: 50%;
}
.about-card img {
  height: 90px; width: auto;
  background: white; border-radius: 12px; padding: 10px 18px;
  margin-bottom: 18px; position: relative;
}
.about-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.about-card p  { font-size: 14px; opacity: .8; line-height: 1.6; }
.about-stats { display: flex; justify-content: center; gap: 40px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.about-stat strong { display: block; font-size: 30px; font-weight: 900; color: var(--orange); }
.about-stat span   { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }

/* ── SELLO ── */
#sello { background: var(--blue-dark); color: white; position: relative; overflow: hidden; }
#sello::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(245,146,30,.07) 0%, transparent 50%),
              radial-gradient(circle at 90% 10%, rgba(245,146,30,.05) 0%, transparent 50%);
}
#sello .section-title { color: white; }
#sello .section-sub   { color: rgba(255,255,255,.7); }
.sello-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; position: relative; }
.req-list { display: flex; flex-direction: column; gap: 18px; }
.req {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; background: rgba(255,255,255,.05);
  border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  transition: all .3s;
}
.req:hover { background: rgba(255,255,255,.08); border-color: rgba(245,146,30,.3); }
.req-num {
  width: 38px; height: 38px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.req-renew { background: rgba(245,146,30,.2) !important; color: var(--orange) !important; font-size: 20px; }
.req-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.req-body p  { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.5; }
.sello-right { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.sello-badge {
  width: 240px; height: 240px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,146,30,.15), rgba(245,146,30,.05));
  border: 3px solid var(--orange);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,146,30,.3); }
  50%      { box-shadow: 0 0 0 18px rgba(245,146,30,0); }
}
.sello-badge img {
  height: 72px; width: auto;
  background: white; border-radius: 12px; padding: 8px 16px;
  margin-bottom: 10px;
}
.sello-badge-title  { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.sello-badge-sub    { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .5px; margin-top: 4px; }
.sello-feats { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sello-feat {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; background: rgba(245,146,30,.08);
  border-radius: 8px; border-left: 3px solid var(--orange);
}
.sello-feat svg  { width: 16px; height: 16px; stroke: var(--orange); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sello-feat span { font-size: 14px; color: rgba(255,255,255,.85); }

/* ── INSTALADORES ── */
#instaladores { background: var(--gray-light); }
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 48px; }
.benefit {
  background: white; border-radius: 16px; padding: 30px 26px;
  border: 1px solid var(--gray); transition: all .3s; position: relative; overflow: hidden;
}
.benefit::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0); transition: transform .3s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,61,123,.12); }
.benefit:hover::after { transform: scaleX(1); }
.benefit-icon {
  width: 52px; height: 52px; background: var(--orange-pale);
  border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.benefit-icon svg { width: 26px; height: 26px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.benefit p  { font-size: 14px; color: var(--text-medium); line-height: 1.65; }
.cta-center { text-align: center; }

/* ── CLIENTES ── */
#clientes { background: white; }
.clientes-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.checks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text); }
.check-dot {
  width: 26px; height: 26px; background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-dot svg { width: 13px; height: 13px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.client-box {
  background: linear-gradient(135deg, var(--orange-pale), #FFF8EE);
  border-radius: 20px; padding: 48px 40px; text-align: center;
  border: 2px solid rgba(245,146,30,.2);
}
.client-box-icon {
  width: 72px; height: 72px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.client-box-icon svg { width: 36px; height: 36px; stroke: white; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-box h3 { font-size: 21px; font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; }
.client-box p  { font-size: 14px; color: var(--text-medium); line-height: 1.65; }
.client-box blockquote {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(245,146,30,.2);
  font-size: 13px; color: #888; font-style: italic;
}

/* ── SOCIOS ── */
#socios { background: var(--gray-light); }
.socios { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.socio {
  background: white; border-radius: 16px; padding: 40px 30px;
  text-align: center; border: 1px solid var(--gray); transition: all .3s;
}
.socio:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,61,123,.1); border-color: var(--blue); }
.socio-avatar {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 15px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 22px; color: white;
}
.socio h3    { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.socio-role  { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.socio-chip {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding: 4px 12px;
  background: rgba(245,146,30,.1); border-radius: 20px;
  font-size: 12px; color: var(--orange); font-weight: 600;
}
.socio-chip svg { width: 11px; height: 11px; stroke: var(--orange); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── ÚNETE ── */
#unete {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white; text-align: center;
}
#unete .section-label { color: var(--orange-light); }
#unete .section-title { color: white; margin: 0 auto 16px; max-width: 520px; }
.unete-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 48px; line-height: 1.7; }
.unete-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 780px; margin: 0 auto 48px; }
.unete-path {
  background: rgba(255,255,255,.07); border-radius: 16px; padding: 36px 30px;
  border: 1px solid rgba(255,255,255,.12); text-align: left; transition: all .3s;
}
.unete-path:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.path-icon {
  width: 46px; height: 46px; background: rgba(245,146,30,.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.path-icon svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unete-path h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.unete-path p  { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 20px; }
.btn-outline {
  background: transparent; color: white; padding: 12px 20px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 2px solid rgba(255,255,255,.35);
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.08); color: white; }
.btn-sm { font-size: 14px !important; padding: 12px 20px !important; }
.contact-bar {
  display: flex; justify-content: center; align-items: center; gap: 40px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap;
}
.contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); }
.contact-item svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item a { color: var(--orange-light); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: #07172E; color: rgba(255,255,255,.55);
  padding: 40px; text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo {
  height: 52px; width: auto;
  background: white; border-radius: 10px; padding: 7px 14px;
  opacity: 1;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-copy a { color: rgba(255,255,255,.3); text-decoration: none; }

/* ── ANIMATIONS ── */
.reveal, .reveal-l, .reveal-r {
  opacity: 0; transition: opacity .6s ease, transform .6s ease;
}
.reveal   { transform: translateY(28px); }
.reveal-l { transform: translateX(-28px); }
.reveal-r { transform: translateX(28px); }
.reveal.on, .reveal-l.on, .reveal-r.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-content    { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle   { max-width: 100%; }
  .hero-ctas       { justify-content: center; }
  .hero-visual     { display: none; }
  .about-grid      { grid-template-columns: 1fr; gap: 44px; }
  .sello-grid      { grid-template-columns: 1fr; gap: 44px; }
  .clientes-grid   { grid-template-columns: 1fr; gap: 44px; }
  .unete-paths     { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 768px) {
  section { padding: 72px 20px; }
  #nav, #nav.scrolled { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .benefits { grid-template-columns: 1fr; }
  .socios   { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .contact-bar { flex-direction: column; gap: 18px; }
  .pillars { grid-template-columns: 1fr; }
}
.mobile-menu-open .nav-links {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; width: 270px;
  background: var(--blue-dark); padding: 76px 28px 28px;
  gap: 22px; z-index: 999; box-shadow: -4px 0 24px rgba(0,0,0,.4);
}
.mobile-menu-open .nav-links a { font-size: 17px; }