/* ═══════════════════════════════════════
   ELSE Consultores e Instalaciones, S.L.
   Estilos globales compartidos
═══════════════════════════════════════ */

:root {
  --navy:       #0B1F35;
  --navy-mid:   #132d4a;
  --navy-light: #1A3A5C;
  --blue:       #2563EB;
  --accent:     #F59E0B;
  --accent-l:   #FCD34D;
  --white:      #FFFFFF;
  --off:        #F1F5F9;
  --gray:       #94A3B8;
  --gray-d:     #64748B;
  --text:       #0F172A;
  --border:     #E2E8F0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-weight: 300; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  background: rgba(11,31,53,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
}
.nav-logo img { height: 40px; }
.nav-links { display: flex; gap: 0; list-style: none; position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 400;
  text-decoration: none; padding: 0 14px; height: 68px;
  display: flex; align-items: center; transition: color .2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: #fff; }
.nav-links li.has-sub { position: relative; }
.sub-menu {
  display: none; position: absolute; top: 68px; left: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--accent);
  min-width: 220px; list-style: none; z-index: 300;
}
.nav-links li.has-sub:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block; padding: 10px 18px;
  color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none;
  transition: all .2s; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sub-menu li a:hover { color: var(--accent); background: rgba(255,255,255,0.03); padding-left: 24px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-tel { color: rgba(255,255,255,0.5); font-size: 12px; text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-tel:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--navy);
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 6px;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-l); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 8px; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--navy);
  padding: 120px 5% 60px;
  position: relative; overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}
.page-header-content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.page-header-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page-header-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
}
.page-header h1 em { color: var(--accent); font-style: normal; }
.page-header p { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-top: 14px; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ── SECTIONS ── */
.section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 14px; }
.section-sub { font-size: 15px; color: var(--gray-d); line-height: 1.75; max-width: 680px; margin-bottom: 40px; }

/* ── CONTENT GRID ── */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.content-grid.reverse { }
.content-grid img { width: 100%; border-radius: 12px; object-fit: cover; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: #EFF6FF; border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 20px 24px;
  margin: 24px 0; font-size: 15px; color: var(--navy); line-height: 1.7;
}
.highlight-box strong { color: var(--blue); }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 22px;
  position: relative; overflow: hidden; transition: all .25s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(37,99,235,0.1); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card-icon { width: 46px; height: 46px; background: #EFF6FF; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.card h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--gray-d); line-height: 1.65; }

/* ── DARK SECTION ── */
.section-dark { background: var(--navy); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.55); }
.section-dark .section-tag { color: var(--accent); }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px 18px; text-align: center; }
.stat-card.gold { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.stat-card .num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-card.gold .num { color: var(--accent); }
.stat-card .num span { color: var(--accent); }
.stat-card .lbl { font-size: 11px; color: var(--gray); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  padding: 56px 5%; text-align: center;
}
.cta-banner h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 28px; }
.btn-primary {
  background: var(--accent); color: var(--navy);
  font-size: 14px; font-weight: 500;
  padding: 13px 28px; border-radius: 7px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-primary:hover { background: var(--accent-l); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  font-size: 14px; font-weight: 300; padding: 13px 28px; border-radius: 7px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; margin-left: 12px;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-d); line-height: 1.6; }
.check-list li::before { content: '✓'; width: 22px; height: 22px; flex-shrink: 0; background: #DBEAFE; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--blue); font-weight: 700; }
.check-list.white li { color: rgba(255,255,255,0.7); }
.check-list.white li::before { background: rgba(245,158,11,0.15); color: var(--accent); }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon { width: 42px; height: 42px; flex-shrink: 0; background: #EFF6FF; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ci-text strong { display: block; font-size: 12px; font-weight: 500; color: var(--navy); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.ci-text span, .ci-text a { font-size: 14px; color: var(--gray-d); text-decoration: none; }
.ci-text a:hover { color: var(--blue); }
.contact-form-box { background: var(--off); border-radius: 14px; padding: 36px; }
.contact-form-box h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group label { font-size: 11px; font-weight: 500; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--white); border: 1px solid #CBD5E1; border-radius: 8px;
  padding: 10px 13px; font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 13px; background: var(--navy); color: var(--white);
  border: none; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.form-submit:hover { background: var(--navy-light); }

/* ── BRANDS ── */
.brands-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.brand-item { background: var(--off); border: 1px solid var(--border); border-radius: 8px; width: 130px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; transition: all .2s; }
.brand-item:hover { border-color: #CBD5E1; box-shadow: 0 2px 12px rgba(0,0,0,0.06); background: var(--white); }
.brand-item img { max-width: 100%; max-height: 36px; object-fit: contain; filter: grayscale(100%) brightness(0.7); transition: filter .2s; }
.brand-item:hover img { filter: grayscale(0%) brightness(1); }

/* ── FOOTER ── */
footer { background: #060f1a; border-top: 1px solid rgba(255,255,255,0.06); padding: 56px 5% 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col p { font-size: 13px; color: var(--gray); line-height: 1.8; }
.footer-col a { color: var(--gray); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--gray); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 11px; color: var(--gray); text-align: center; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links > li > a { padding: 0 10px; font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { height: auto; padding: 12px 24px; }
  .sub-menu { position: static; border: none; border-top: none; padding-left: 20px; display: block; background: rgba(0,0,0,0.2); }
  .nav-right { display: none; }
  .content-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
