/*--------------------------------------------------------------
# Tema "Aercon" para ClimaVia
# Se carga DESPUÉS de style.css y bootstrap: sobrescribe colores,
# tipografía y componentes sin tocar la estructura original.
# Para volver al diseño anterior basta quitar el <link> en index.html.
--------------------------------------------------------------*/

:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1d;
  --bg-2: #0f1730;
  --ink: #e7ecf5;
  --ink-soft: #a6b0c4;
  --ink-mute: #6b7691;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7dd3fc;
  --accent-2: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --mint: #a7f3d0;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.07);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html { scroll-behavior: auto; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover, a:active, a:focus { color: #e0f3ff; }

p { color: var(--ink-soft); margin: 0 0 20px 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

em, .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}

#preloader { background: var(--bg-0) url("../img/preloader.svg") no-repeat center center; }

.back-to-top {
  background: var(--card-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  color: var(--ink);
}
.back-to-top:focus { background: var(--card-strong); color: var(--ink); }
.back-to-top:hover { background: var(--accent); color: #062236; }

/*--------------------------------------------------------------
# Botones
--------------------------------------------------------------*/
.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease;
}
.btn-cv:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-cv:active { transform: translateY(0); }

.btn-cv-primary,
#hero .actions a.btn-cv-primary {
  background: linear-gradient(180deg, #e0f3ff, #7dd3fc);
  color: #062236;
  box-shadow: 0 10px 28px -10px var(--accent-glow), inset 0 0 0 1px rgba(125, 211, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-cv-primary:hover, .btn-cv-primary:focus { color: #062236; }

.btn-cv-ghost,
#hero .actions a.btn-cv-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-cv-ghost:hover, .btn-cv-ghost:focus { color: var(--ink); background: rgba(255, 255, 255, .1); }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  height: auto;
  position: relative;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(56, 189, 248, .16), transparent 65%),
    linear-gradient(180deg, rgba(5, 7, 13, .9), rgba(5, 7, 13, .97)),
    url(../img/hero-bg.jpg) top center / cover no-repeat;
}

#hero .hero-container {
  display: block;
  width: 100%;
  max-width: 880px;
  padding: 80px 24px;
  background: transparent;
  text-align: center;
}

#hero .hero-logo { margin: 0 0 8px; }
#hero .hero-logo img {
  max-width: 420px;
  width: 82%;
  height: auto;
  margin: 0 auto 4px;
  filter: drop-shadow(0 10px 40px rgba(56, 189, 248, .25));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-glow);
}

#hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: none;
  margin: 22px 0 18px;
  color: var(--ink);
}
#hero h1 em { font-size: 1.08em; }

#hero .hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--ink-soft);
}

#hero .actions { margin-bottom: 28px; }
#hero .actions a.btn-cv {
  margin: 6px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

#hero .hero-proof {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
}

/*--------------------------------------------------------------
# Header / navegación
--------------------------------------------------------------*/
#header {
  background: rgba(5, 7, 13, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0;
  height: 72px;
}
.is-sticky #header { background: rgba(5, 7, 13, .86); }

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
#header .container::before,
#header .container::after { display: none; }

#header #logo { float: none; }
#header #logo img {
  height: 76px;
  width: auto;
  margin: -2px 0;
  padding: 0;
  display: block;
}

#nav-menu-container { float: none; margin: 0; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li { float: none; }

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
}
.nav-menu a:hover,
.nav-menu li:hover > a,
.nav-menu .menu-active > a { color: var(--ink); background: var(--card-strong); }

.nav-menu > li.nav-cta { margin-left: 10px; }
.nav-menu > li.nav-cta > a {
  background: linear-gradient(180deg, #e0f3ff, #7dd3fc);
  color: #062236;
  font-weight: 600;
  box-shadow: 0 10px 28px -10px var(--accent-glow), inset 0 0 0 1px rgba(125, 211, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nav-menu > li.nav-cta > a:hover { color: #062236; filter: brightness(1.06); }

/* Menú móvil */
#mobile-nav-toggle {
  margin: 14px 16px 0 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 13, .7);
  backdrop-filter: blur(10px);
  line-height: 1;
}
#mobile-nav {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding-top: 72px;
}
#mobile-nav ul li a { color: var(--ink-soft); font-weight: 500; padding: 12px 22px; }
#mobile-nav ul li a:hover { color: var(--ink); background: var(--card-strong); }
#mobile-nav ul li.nav-cta a { color: var(--accent); }
#mobile-body-overly { background: rgba(2, 3, 8, .7); }

/*--------------------------------------------------------------
# Secciones: títulos
--------------------------------------------------------------*/
.section-title-A,
.section-title-B {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: none;
  text-align: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title-divider {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  margin: 0 auto 48px;
}

.section-description {
  text-align: left;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

#services,
#transparencia,
#portfolio,
#nosotros,
#contact {
  padding: 96px 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

#transparencia { background: rgba(255, 255, 255, .02); }

#nosotros {
  background:
    radial-gradient(700px 260px at 80% 0, rgba(56, 189, 248, .10), transparent 60%),
    var(--bg-1);
}

/*--------------------------------------------------------------
# Servicios
--------------------------------------------------------------*/
#services {
  background:
    radial-gradient(800px 300px at 50% 0, rgba(56, 189, 248, .08), transparent 60%),
    var(--bg-0);
}

#services .text-center { display: flex; flex-wrap: wrap; }
#services .text-center::before,
#services .text-center::after { display: none; }

#services .text-center > [class*="col-"] {
  display: flex;
  float: none;
  width: 100%;
  margin-bottom: 30px;
}
@media (min-width: 600px) { #services .text-center > [class*="col-"] { width: 50%; } }
@media (min-width: 992px) { #services .text-center > [class*="col-"] { width: 25%; } }

/* Tarjetas con foto de fondo */
.svc-card {
  --c: #38bdf8;
  --c-rgb: 56, 189, 248;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  width: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 28px;
  text-align: left;
  background: var(--bg-1);
  border: 1px solid rgba(var(--c-rgb), .38);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -28px rgba(var(--c-rgb), .55);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc-card--orange { --c: #fb923c; --c-rgb: 251, 146, 60; }
.svc-card--green  { --c: #34d399; --c-rgb: 52, 211, 153; }
.svc-card--purple { --c: #a78bfa; --c-rgb: 167, 139, 250; }

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--c-rgb), .75);
  box-shadow: 0 28px 60px -26px rgba(var(--c-rgb), .8);
}

.svc-card .svc-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 64%;
  object-fit: cover;
  transition: transform .7s ease;
}
.svc-card:hover .svc-bg { transform: scale(1.07); }

/* Velo oscuro + tinte de color */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0) 0%, rgba(5, 7, 13, .12) 30%, rgba(5, 7, 13, .8) 52%, rgba(5, 7, 13, .97) 66%, rgba(5, 7, 13, .99) 100%),
    linear-gradient(135deg, rgba(var(--c-rgb), .3), rgba(var(--c-rgb), 0) 55%);
}

/* Barra de color inferior */
.svc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--c-rgb), .55), var(--c));
}

.svc-body { padding-right: 46px; }

.svc-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--c);
  color: #06121f;
  font-size: 19px;
  box-shadow: 0 8px 22px -6px rgba(var(--c-rgb), .8);
}

.svc-card h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.02em; color: #fff; }
.svc-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  color: rgba(231, 236, 245, .86);
}

.svc-go {
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.svc-go:hover,
.svc-go:focus { background: var(--c); color: #06121f; transform: translateX(2px); }

@media (min-width: 600px) and (max-width: 991px) { .svc-card { min-height: 500px; } }
@media (max-width: 599px) { .svc-card { min-height: 480px; } }

#services p { text-align: left; }

/*--------------------------------------------------------------
# Sustentabilidad
--------------------------------------------------------------*/
/* Contenedor más ancho para que el banner quede rectangular */
#transparencia .container { width: auto; max-width: 1400px; }

.eco {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 10% 0, rgba(52, 211, 153, .08), transparent 60%),
    var(--bg-1);
}

.eco-text { position: relative; z-index: 1; padding: 30px 0 30px 40px; }

.eco-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.eco-title i { margin-left: 6px; font-size: .8em; color: #34d399; }
#transparencia .eco-title span {
  display: block;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eco-divider {
  width: 56px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  box-shadow: 0 0 16px rgba(52, 211, 153, .35);
}

/* Texto en 3 columnas con línea divisoria */
.eco-cols {
  column-count: 3;
  column-gap: 26px;
  column-rule: 1px solid var(--line-strong);
}
#transparencia .eco-cols p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  color: var(--ink-soft);
}
#transparencia .eco-cols p:last-child { margin-bottom: 0; }

/* Imagen completa, más pequeña, con degradé a la izquierda */
.eco-media { position: relative; }
#transparencia img.eco-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 38%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 38%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 1199px) {
  .eco { grid-template-columns: minmax(0, 1fr) 380px; }
  .eco-cols { column-count: 2; }
}

@media (max-width: 991px) {
  .eco { grid-template-columns: 1fr; }
  .eco-text { padding: 28px 24px 32px; }
  .eco-media { order: -1; height: 220px; }
  #transparencia img.eco-img {
    object-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
}
@media (max-width: 640px) {
  .eco-cols { column-count: 1; }
}

/*--------------------------------------------------------------
# Portafolio
# Estilos en css/portafolio-galeria.css
--------------------------------------------------------------*/
#portfolio { background: var(--bg-0); }

/*--------------------------------------------------------------
# Nosotros
# Estilos en css/nosotros.css
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Contacto
--------------------------------------------------------------*/
#contact {
  background:
    radial-gradient(700px 260px at 20% 0, rgba(56, 189, 248, .10), transparent 60%),
    var(--bg-1);
}

#contact .info {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
}
#contact .info > div { overflow: hidden; margin-bottom: 14px; }
#contact .info i {
  font-size: 22px;
  color: var(--accent);
  float: left;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-strong);
}
#contact .info p {
  padding: 8px 0 0 54px;
  margin: 0;
  line-height: 1.45;
  color: var(--ink-soft);
}
#contact .info a:hover p { color: var(--ink); }
#contact .whatsapp { color: #4ade80 !important; }
#contact .info i.whatsapp { background: rgba(74, 222, 128, .08); }

#contact .form input,
#contact .form textarea,
#contact .form .form-control {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  box-shadow: none;
  height: auto;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#contact .form .form-control::placeholder { color: var(--ink-mute); }
#contact .form .form-control:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
  background: rgba(255, 255, 255, .06);
}

#contact .form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(180deg, #e0f3ff, #7dd3fc);
  color: #062236;
  box-shadow: 0 10px 28px -10px var(--accent-glow), inset 0 0 0 1px rgba(125, 211, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .12s ease, filter .2s ease;
}
#contact .form button[type="submit"]:hover { background: linear-gradient(180deg, #e0f3ff, #7dd3fc); filter: brightness(1.06); transform: translateY(-1px); }

#contact .form #sendmessage {
  color: var(--mint);
  border: 1px solid rgba(167, 243, 208, .4);
  background: rgba(167, 243, 208, .06);
  border-radius: var(--radius-sm);
}
#contact .form #errormessage {
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .4);
  background: rgba(248, 113, 113, .06);
  border-radius: var(--radius-sm);
}
#contact .form .validation { color: #fca5a5; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-mute);
  font-size: 13px;
}
#footer .copyright { color: var(--ink-mute); }
#footer strong { color: var(--ink-soft); font-weight: 600; }

/*--------------------------------------------------------------
# Móvil
--------------------------------------------------------------*/
/* El menú completo no cabe en tablet: se usa el menú hamburguesa hasta 991px */
@media (max-width: 991px) {
  #nav-menu-container { display: none; }
  #mobile-nav-toggle { display: inline; }
}

@media (max-width: 768px) {
  #header, #header .container { height: 64px; }
  #header #logo img { height: 66px; margin: -1px 0; }
  #services, #transparencia, #portfolio, #nosotros, #contact { padding: 64px 0; }
  #hero .hero-container { padding: 64px 20px; }
}
/* En pantallas chicas la cabecera usa solo el ícono (ver <picture> en index.html) */
@media (max-width: 575px) {
  #header #logo img { height: 42px; margin: 0 0 0 4px; }
}
