/* ============================================
   EVR Air Conditioner — estilos globales
   ============================================ */

:root {
  --primary: #1a5f9e;
  --primary-dark: #0d3b66;
  --primary-light: #4a90c2;
  --accent: #2ec4e0;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --bg-light: #f7f9fb;
  --white: #ffffff;
  --whatsapp: #25d366;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.14);
  --max-width: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--gray-700); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-bg {
  background: var(--bg-light);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head p {
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 95, 158, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-bot {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-bot:hover { background: var(--primary); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
}

.brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--gray-100);
  color: var(--primary-dark);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(13,59,102,0.88), rgba(13,59,102,0.72)), var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero .container {
  max-width: 760px;
}

.hero .eyebrow { color: var(--accent); }

.hero h1 { color: var(--white); }

.hero p.lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin: 20px 0 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 140px 0 64px;
  text-align: center;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 14px auto 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.breadcrumb a { text-decoration: underline; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.92rem;
}

.trust-item .icon { color: var(--primary); font-size: 1.3rem; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: 22px; }

.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.94rem; }

.icon-card {
  padding: 30px 26px;
  text-align: left;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 18px;
}

.icon-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icon-card ul li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}

.icon-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ---------- Split section (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split.reverse .img-col { order: 2; }

.check-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--gray-700);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}
.team-card .role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ---------- Gallery / lightbox ---------- */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--gray-700);
  transition: all 0.15s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(900px, 90vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Clients ---------- */
.clients-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.client-chip {
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-700);
}

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.88); margin: 14px 0 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Formulario ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: #e6f7ee; color: #0a7a3d; }
.form-msg.err { background: #fdecec; color: #b3261e; }

.contact-info-list { display: flex; flex-direction: column; gap: 20px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-info-item .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 46px; height: 46px; font-size: 1.2rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { color: var(--white); font-weight: 800; font-size: 1.05rem; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
a.social-icon:hover { background: var(--primary); transform: translateY(-2px); }
.social-icon--soon { opacity: 0.3; cursor: default; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 0.92rem; transition: color 0.15s; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--whatsapp);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Chat widget (Botia) ---------- */
.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 28px rgba(26, 95, 158, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.floating-chat:hover { transform: scale(1.08); }

.chat-widget__panel {
  position: fixed;
  right: 24px;
  bottom: 164px;
  z-index: 200;
  width: min(340px, calc(100vw - 32px));
  height: min(460px, calc(100vh - 200px));
  display: none;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-widget__panel--open { display: flex; }

.chat-widget__header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 700;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg-light);
}

.chat-widget__message {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-widget__message--bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow);
}
.chat-widget__message--bot a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

.chat-widget__message--user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
}

.chat-widget__handoff a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--primary-dark);
}

.chat-widget__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-widget__form input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
}
.chat-widget__form input:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; }
.chat-widget__form button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.chat-widget__form button:disabled,
.chat-widget__form input:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .img-col { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav, .header-cta .btn-primary, .header-cta .btn-bot { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 8px; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .nav-toggle { display: flex; }
  .hero { min-height: 78vh; text-align: left; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 48px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.1rem; }
}
