/*
Theme Name: AV Energía Exact
Theme URI: https://avenergia.com/
Author: OpenAI
Description: Tema WordPress recreado a medida a partir de la web de Lovable de AV Energía.
Version: 1.0.0
Text Domain: avenergia-exact
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --background: #ffffff;
  --foreground: #211836;
  --card: #ffffff;
  --primary: #a338cc;
  --secondary: #eb3b88;
  --accent: #ef3b3b;
  --muted: #f6f2fa;
  --muted-foreground: #665f74;
  --border: #ece5f3;
  --radius: 18px;
  --gradient-brand: linear-gradient(135deg, #a338cc, #eb3b88, #ef3b3b);
  --gradient-brand-subtle: linear-gradient(135deg, #fbf2fe, #fff1f7, #fff2f2);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(33, 24, 54, 0.72) 0%, rgba(74, 28, 104, 0.54) 100%);
  --shadow-brand: 0 8px 32px -8px rgba(163, 56, 204, 0.3);
  --shadow-card: 0 4px 24px -4px rgba(33, 24, 54, 0.08);
  --shadow-card-hover: 0 12px 40px -8px rgba(163, 56, 204, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
}
.section { padding: 96px 0; }
.section-muted { background: rgba(246, 242, 250, 0.65); }
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title, .hero-title, .card-title, .stat-number, .footer-title, .success-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 16px;
}
.section-subtitle { max-width: 720px; margin: 0 auto; color: var(--muted-foreground); font-size: 1.125rem; }
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-brand { background: var(--gradient-brand); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-primary {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
}
.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.btn-block { width: 100%; border: 0; cursor: pointer; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.brand img { height: 48px; width: auto; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-desktop a:not(.btn) { font-size: .95rem; font-weight: 600; color: #fff; }
.site-header.scrolled .nav-desktop a:not(.btn) { color: var(--foreground); }
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: #fff;
  cursor: pointer;
}
.site-header.scrolled .mobile-toggle { color: var(--foreground); }
.mobile-menu {
  display: none;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 0 24px;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center/cover no-repeat url('assets/images/hero-energy.jpg');
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 128px;
  background: linear-gradient(to top, var(--background), transparent);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 144px 0 160px;
  max-width: 820px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 28px;
  background: var(--gradient-brand);
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
}
.hero-text {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  margin: 0 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.text-center { text-align: center; }
.services-grid, .benefits-grid {
  display: grid;
  gap: 32px;
}
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.service-media { position: relative; height: 220px; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .service-media img { transform: scale(1.06); }
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33,24,54,.42), transparent);
}
.icon-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.card-content { padding: 28px; }
.card-title { margin: 0 0 12px; font-size: 1.4rem; }
.card-text, .benefit-text, .footer-copy, .footer-link, .contact-copy { color: var(--muted-foreground); }
.benefit-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(163,56,204,.28);
  box-shadow: var(--shadow-card-hover);
}
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient-brand);
  margin-bottom: 24px;
}
.stat-row { margin-bottom: 16px; }
.stat-number { font-size: 2rem; font-weight: 700; }
.stat-label { color: var(--muted-foreground); font-size: .92rem; margin-left: 8px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.image-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33,24,54,.32), transparent);
}
.floating-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 18px;
}
.form-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.form-card h3 { margin: 0 0 10px; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.6rem; }
.form-card p { margin: 0 0 18px; color: var(--muted-foreground); }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: .95rem;
  font-weight: 600;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid rgba(163,56,204,.25);
  border-color: rgba(163,56,204,.5);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.success-box {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 48px 36px;
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  margin: 0 auto 22px;
}
.success-title { margin: 0 0 8px; font-size: 1.9rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.contact-item p { margin: 0; }
.contact-label { color: var(--muted-foreground); font-size: .92rem; }
.contact-value { font-weight: 700; }
.site-footer {
  background: var(--foreground);
  color: #fff;
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 18px; filter: brightness(2); }
.footer-title { margin: 0 0 16px; font-size: 1.15rem; }
.footer-link { display: block; color: rgba(255,255,255,.62); margin-bottom: 10px; }
.footer-copy { color: rgba(255,255,255,.62); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; color: rgba(255,255,255,.45); font-size: .95rem; }
.notice {
  background: #eefaf3;
  border: 1px solid #bde4cb;
  color: #226640;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-inner { min-height: 78px; }
  .hero-content { padding: 124px 0 150px; }
}
@media (max-width: 640px) {
  .section { padding: 74px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-card, .success-box { padding: 30px 22px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-title { font-size: 2.8rem; }
}
