:root {
  --gold: #fbba00;
  --gold-dark: #e0a500;
  --ink: #1d1d1b;
  --ink-soft: #2b2b29;
  --gray-50: #f7f7f8;
  --gray-100: #eeeeee;
  --gray-400: #9a9a97;
  --gray-600: #5a5a58;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.text-gold { color: var(--gold) !important; }
.text-light-50 { color: rgba(255,255,255,0.65) !important; }
.bg-dark-alt { background: var(--ink); }

/* Buttons */
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--ink);
}
.btn-outline-light:hover { color: var(--ink); }

/* Topbar + Navbar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
}
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--gold); }

.navbar {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--ink);
  padding-left: .85rem;
  padding-right: .85rem;
}
.navbar .nav-link:hover { color: var(--gold-dark); }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background: var(--gray-50);
  color: var(--gold-dark);
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-shapes .shape {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.9;
}
.shape-1 { width: 260px; height: 300px; background: var(--gold); opacity: .95; top: -60px; right: 8%; }
.shape-2 { width: 160px; height: 185px; background: #3a3a37; top: 40%; right: 22%; }
.shape-3 { width: 120px; height: 140px; background: var(--gold); opacity: .25; bottom: -30px; right: 2%; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: .75rem;
}
.eyebrow-dark { color: var(--gold-dark); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
}

/* Page header (interior pages) */
.page-header {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-header .shape-1 { width: 180px; height: 210px; top: -50px; right: 6%; }
.page-header .shape-2 { width: 110px; height: 130px; bottom: -30px; left: 4%; opacity: .5; }
.page-header-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; display: inline-block; }
.page-header-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.ceoe-inline-logo { display: block; max-height: 110px; width: auto; margin-left: auto; margin-right: auto; }
.page-header-subtitle { color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* Sections */
.section-pad { padding: 5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.lead-muted { color: var(--gray-600); font-size: 1.05rem; }

/* Service cards */
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(29,29,27,0.08);
  border-color: transparent;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--ink); }
.service-card p { color: var(--gray-600); margin-bottom: 1rem; font-size: .95rem; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(251,186,0,0.14);
  color: var(--gold-dark);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-link { font-weight: 600; font-size: .9rem; color: var(--ink); }
.service-card:hover .service-link { color: var(--gold-dark); }

/* CEOE band */
.ceoe-band { background: var(--gray-50); }
.ceoe-flyer { max-width: 100%; width: 230px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Contact card */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.contact-card .form-control, .contact-card .form-select {
  border-radius: 10px;
  border: 1px solid var(--gray-100);
  padding: .65rem .9rem;
}
.contact-card .form-control:focus, .contact-card .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(251,186,0,0.2);
}
.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Client badges */
.client-badge {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.client-badge i { font-size: 1.6rem; color: var(--gold-dark); }
.client-badge span { font-weight: 700; font-size: .85rem; }
.client-badge small { color: var(--gray-600); font-size: .75rem; }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

/* Feature blocks (mantenimiento IT, diseno web...) */
.feature-block {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.feature-block h3 { font-size: 1.05rem; margin-bottom: .85rem; }
.feature-block h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(251,186,0,0.16);
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .35rem 0;
  color: var(--gray-600);
  font-size: .93rem;
}
.check-list i { color: var(--gold-dark); margin-top: .2rem; }

/* Mini features (servicios cloud, diseno web) */
.mini-feature { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; }
.mini-feature i { font-size: 1.6rem; color: var(--gold-dark); }
.mini-feature h4 { font-size: 1rem; margin: .6rem 0 .4rem; }
.mini-feature p { color: var(--gray-600); font-size: .9rem; margin: 0; }

.price-tag { margin-top: 1.5rem; }
.price-amount { font-size: 2rem; font-weight: 800; color: var(--ink); }
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--gray-600); }
.price-note { display: block; color: var(--gray-600); font-size: .85rem; margin-top: .35rem; }

/* Pricing cards (VPS) */
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(29,29,27,0.08); }
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 16px 32px rgba(251,186,0,0.18); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 700;
  padding: .25rem .9rem; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.pricing-amount { font-size: 2rem; font-weight: 800; margin-bottom: 1.25rem; }
.pricing-amount small { font-size: .9rem; font-weight: 500; color: var(--gray-600); }

/* Ciberseguridad: steps */
.step-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.step-card p { color: var(--gray-600); font-size: .92rem; margin: 0; }

.insurance-panel {
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 2rem;
}
.coverage-item { display: flex; gap: .85rem; }
.coverage-item i { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.coverage-item h5 { color: #fff; font-size: .92rem; margin-bottom: .25rem; }
.coverage-item p { color: rgba(255,255,255,0.6); font-size: .82rem; margin: 0; }

/* Team */
.team-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  height: 100%;
}
.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.team-role { color: var(--gold-dark); font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
.team-contact { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.team-contact i { margin-right: .5rem; color: var(--gray-400); }

/* Blog */
.blog-card {
  display: block;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(29,29,27,0.08); }
.blog-date { color: var(--gray-600); font-size: .82rem; margin-bottom: .6rem; }
.blog-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: .6rem; }
.blog-card p { color: var(--gray-600); font-size: .92rem; }
.blog-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.tag {
  background: rgba(251,186,0,0.16);
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--gray-600); font-weight: 600; font-size: .9rem; }
.back-link:hover { color: var(--gold-dark); }
.blog-meta { display: flex; gap: 1.25rem; color: var(--gray-600); font-size: .85rem; margin-bottom: .75rem; }
.blog-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
.blog-body p { color: var(--ink); line-height: 1.75; margin-bottom: 1.1rem; }
.blog-body h2 { font-size: 1.25rem; margin: 1.75rem 0 .9rem; }
.blog-body ul { padding-left: 1.2rem; }
.blog-body li { margin-bottom: .5rem; line-height: 1.6; }

/* Legal pages */
.legal-content h2 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
.legal-content h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.legal-content p, .legal-content li { color: var(--gray-600); line-height: 1.7; }
.legal-content ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); }
.footer-heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--gold); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  z-index: 1080;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }

@media (max-width: 991.98px) {
  .section-pad { padding: 3.25rem 0; }
}

@media (max-width: 767.98px) {
  .hero-shapes { opacity: .5; }
  .shape-1 { width: 140px; height: 160px; top: -30px; right: -20px; }
  .shape-2 { display: none; }
  .shape-3 { width: 80px; height: 95px; }
  .page-header .shape-1 { width: 110px; height: 130px; top: -20px; right: -15px; }
  .page-header .shape-2 { display: none; }
}
