/* ========================================
   YLEN COOLING & HEATING LLC
   Landing pages design system
   v1.0 — Mayo 2026
   ======================================== */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- DESIGN TOKENS ---- */
:root {
  /* Brand colors (from Ylen logo) */
  --navy:        #0F2A5C;
  --navy-deep:   #081A3D;
  --navy-light:  #1E3A8A;
  --red:         #E63946;
  --red-deep:    #C81F2C;
  --cyan:        #3DA9DE;
  --cyan-deep:   #1E7FB8;

  /* Neutrals */
  --ink:         #0A0F1E;
  --ink-2:       #2A2F3D;
  --ink-3:       #555867;
  --line:        #E5E7EB;
  --line-2:      #F1F3F6;
  --bg:          #FFFFFF;
  --bg-soft:     #F7F8FB;
  --bg-dark:     #0F2A5C;

  /* Accents */
  --success:     #16A34A;
  --amber:       #F59E0B;

  /* Typography */
  --font-display: 'Archivo Black', 'Helvetica Neue', sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radii */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(8, 26, 61, 0.06);
  --shadow-md: 0 6px 24px rgba(8, 26, 61, 0.10);
  --shadow-lg: 0 18px 48px rgba(8, 26, 61, 0.16);

  /* Container */
  --maxw: 1200px;
}

/* ---- BASE ---- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ---- ACCESSIBILITY HELPERS ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ========================================
   STICKY CALL BAR (mobile)
   ======================================== */
.sticky-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  color: #fff;
  padding: var(--sp-4);
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(230, 57, 70, 0.25);
  display: none;
}
.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.sticky-call-bar svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 768px) {
  .sticky-call-bar { display: block; }
  body { padding-bottom: 72px; }
}

/* ========================================
   TOP BAR
   ======================================== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: var(--sp-3) 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.topbar-info { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: var(--sp-2); }
.topbar-info svg { width: 14px; height: 14px; color: var(--cyan); }
.topbar-cta {
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.topbar-cta svg { width: 16px; height: 16px; color: var(--red); }
@media (max-width: 640px) { .topbar-info span:nth-child(2) { display: none; } }

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
  gap: var(--sp-5);
}
.brand img { height: 56px; width: auto; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  transition: transform 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); }
.nav-cta svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .brand img { height: 44px; }
  .nav-cta { padding: var(--sp-3) var(--sp-4); font-size: 0.9rem; }
  .nav-cta span.full { display: none; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  overflow: hidden;
  padding: var(--sp-9) 0 var(--sp-10);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(61, 169, 222, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(61, 169, 222, 0.12);
  border: 1px solid rgba(61, 169, 222, 0.32);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}
.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61, 169, 222, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 169, 222, 0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(61, 169, 222, 0.0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.hero h1 .accent { color: var(--red); }
.hero h1 .accent-cyan { color: var(--cyan); }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
  max-width: 540px;
}
.hero-ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(230, 57, 70, 0.55);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn svg { width: 20px; height: 20px; }

.hero-trustbar {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trustbar .item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.88);
}
.hero-trustbar .item svg { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
  transition: transform 0.3s;
}
.hero-visual:hover { transform: rotate(0deg) scale(1.01); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 42, 92, 0.4) 100%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--ink);
}
.hero-visual-badge .icon-wrap {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.hero-visual-badge .icon-wrap svg { width: 22px; height: 22px; }
.hero-visual-badge .text strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.hero-visual-badge .text small { font-size: 0.8rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero { padding: var(--sp-7) 0 var(--sp-8); }
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { order: -1; transform: rotate(0); }
  .hero-visual img { aspect-ratio: 16 / 10; }
}

/* ========================================
   SERVICES / FEATURES GRID
   ======================================== */
.section { padding: var(--sp-9) 0; }
.section-soft { background: var(--bg-soft); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--sp-8); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin-bottom: var(--sp-4);
}
.section-header h2 .accent { color: var(--red); }
.section-header p {
  font-size: 1.1rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ========================================
   PROCESS (3 steps)
   ======================================== */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan); }
.process-step .num {
  position: absolute;
  top: -18px;
  left: var(--sp-6);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(230, 57, 70, 0.3);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.process-step p { color: var(--ink-3); line-height: 1.6; }

@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; }
}

/* ========================================
   FEATURES (4 cards)
   ======================================== */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.feature {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--red); transform: translateX(4px); }
.feature .icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  color: #fff;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(61, 169, 222, 0.28);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy-deep);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.005em;
}
.feature p { color: var(--ink-3); line-height: 1.55; font-size: 0.97rem; }

@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ========================================
   CTA STRIP
   ======================================== */
.cta-strip {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.12) 0%, transparent 40%);
}
.cta-strip .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.cta-strip p { color: rgba(255,255,255,0.92); margin-top: var(--sp-2); font-size: 1.05rem; }
.cta-strip .btn {
  background: #fff;
  color: var(--red);
  white-space: nowrap;
}
.cta-strip .btn:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }

@media (max-width: 760px) {
  .cta-strip .container { grid-template-columns: 1fr; text-align: center; }
}

/* ========================================
   FORM
   ======================================== */
.form-section { background: var(--bg-soft); }
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.form-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-4);
}
.form-info > p { color: var(--ink-3); font-size: 1.08rem; line-height: 1.6; margin-bottom: var(--sp-6); }
.form-info ul { list-style: none; display: grid; gap: var(--sp-3); }
.form-info ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--ink-2);
  line-height: 1.5;
}
.form-info ul li svg {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--success);
  margin-top: 1px;
}

.form-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--red);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.form-card > p { color: var(--ink-3); margin-bottom: var(--sp-6); }
.form-row { margin-bottom: var(--sp-4); }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: var(--sp-4);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}
.form-card button[type="submit"] {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--r-md);
  letter-spacing: 0.02em;
  margin-top: var(--sp-3);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.32);
}
.form-card button[type="submit"]:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.45);
}
.form-card .small-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: var(--sp-4);
}

@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

/* ========================================
   FAQ
   ======================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--cyan); }
.faq-item summary {
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.7rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-color: var(--red); box-shadow: var(--shadow-sm); }
.faq-item .answer {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--ink-2);
  line-height: 1.65;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer-brand img {
  height: 60px;
  margin-bottom: var(--sp-4);
}
.footer-brand p { line-height: 1.55; max-width: 320px; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; display: grid; gap: var(--sp-3); }
.footer ul a { transition: color 0.15s; }
.footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}
.licenses {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.licenses span {
  background: rgba(255,255,255,0.06);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========================================
   AGENCY CREDITS (footer abajo del footer)
   ======================================== */
.agency-credits {
  background: #050E25;
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.agency-credits .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.agency-credits span {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.agency-credits a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0.85;
}
.agency-credits a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.agency-credits img {
  height: 28px;
  width: auto;
}
@media (max-width: 480px) {
  .agency-credits .container {
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }
  .agency-credits img { height: 24px; }
}
