/* ==========================================================================
   CIBERCOM — MAIN STYLESHEET
   Optimized for Hostinger Deployment
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --bg: #0B0A0F;
  --bg-2: #131118;
  --bg-3: #1B1822;
  --red: #E31837;
  --red-2: #FF4757;
  --coral: #FF6B6B;
  --grad: linear-gradient(120deg, #B00E24 0%, #E31837 55%, #FF4757 100%);
  --text: #F5F2F0;
  --muted: #A39DA6;
  --line: rgba(255, 255, 255, .08);
  --card: rgba(255, 255, 255, .035);
  --radius: 20px;
  --logo: url(../img/cibercom_isotipo.png);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
}

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

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

section {
  padding: 110px 0;
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES & CONTAINERS
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(227, 24, 55, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(227, 24, 55, .4);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--red-2);
  color: var(--red-2);
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  background: var(--card);
}

.dark-2 {
  background: var(--bg-2);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 10, 15, .72);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}

nav.scrolled {
  background: rgba(11, 10, 15, .92);
  border-bottom-color: rgba(227, 24, 55, .2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  color: var(--text);
  flex-shrink: 0;
}

.logo .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--logo) center/contain no-repeat;
}

.logo .lt {
  font-weight: 400;
}

.logo .bd {
  font-weight: 800;
}

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

.nav-item {
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-item .nav-title {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color .2s ease;
}

.nav-item:hover .nav-title,
.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active-page,
.nav-item.active-page .nav-title {
  color: var(--red-2) !important;
  font-weight: 600;
  background: rgba(227, 24, 55, 0.1);
}

.nav-cta {
  padding: 10px 22px;
  font-size: .88rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.menu-toggle:hover {
  color: var(--red-2);
  background: rgba(227, 24, 55, .08);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 24, 55, .22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 71, 87, .12), transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

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

.hero-visual {
  position: relative;
}

.hero-card {
  padding: 28px;
  margin-bottom: 18px;
  transition: transform .3s ease, border-color .3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 24, 55, .3);
}

.hero-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: .85rem;
  color: var(--muted);
}

.hero-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: #fff;
}

.hero-card:nth-child(2) {
  transform: translateX(36px);
}

.hero-card:nth-child(2):hover {
  transform: translateX(36px) translateY(-4px);
}

/* --------------------------------------------------------------------------
   6. STATS SECTION
   -------------------------------------------------------------------------- */
.stats {
  padding: 0 0 90px;
}

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

.stat {
  padding: 34px 28px;
  text-align: left;
}

.stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
}

.stat .lbl {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   7. SOLUCIONES & SECTION HEADINGS
   -------------------------------------------------------------------------- */
.sec-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.sec-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.sol-card {
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

.sol-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 24, 55, .35);
}

.sol-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 24, 55, .14), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.sol-card:hover::after {
  opacity: 1;
}

.sol-card .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(227, 24, 55, .12);
  border: 1px solid rgba(227, 24, 55, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  color: var(--red-2);
}

.sol-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.sol-card p {
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.sol-card ul {
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}

.sol-card li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.sol-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red-2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. METODOLOGÍA (STEPS)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 32px 26px;
  position: relative;
}

.step .n {
  font-family: 'Sora', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}

.step h4 {
  font-size: 1.05rem;
  margin: 14px 0 10px;
}

.step p {
  font-size: .88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. SERVICIOS GESTIONADOS
   -------------------------------------------------------------------------- */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.serv {
  display: flex;
  gap: 22px;
  padding: 30px;
  transition: border-color .3s ease, transform .3s ease;
}

.serv:hover {
  border-color: rgba(227, 24, 55, .35);
  transform: translateY(-2px);
}

.serv .ic {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.serv h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.serv p {
  font-size: .9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. ABOUT / NOSOTROS
   -------------------------------------------------------------------------- */
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-panel {
  padding: 40px;
  transition: transform .3s ease, border-color .3s ease;
}

.about-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 24, 55, .25);
}

.about-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-panel h3 i {
  color: var(--red-2);
}

.about-panel p {
  color: var(--muted);
  font-size: .95rem;
}

.about-panel + .about-panel {
  margin-top: 18px;
}

.about p.body {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   11. CONTACTO & FORMULARIO
   -------------------------------------------------------------------------- */
.contact {
  background: var(--bg-2);
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

form {
  display: grid;
  gap: 16px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .93rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, .15);
}

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

.legal {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.contact-info {
  color: var(--muted);
  font-size: .95rem;
}

.contact-info h4 {
  color: var(--text);
  font-size: 1rem;
  margin: 26px 0 8px;
}

/* Feedback alert / status for form */
.form-feedback {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: .9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(46, 213, 115, .15);
  border: 1px solid rgba(46, 213, 115, .3);
  color: #2ed573;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: var(--bg);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.foot-grid h5 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: 'Inter', system-ui, sans-serif;
}

.foot-grid ul {
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}

.foot-grid li {
  margin-bottom: 10px;
}

.foot-grid a:hover {
  color: var(--red-2);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.socials a:hover {
  border-color: var(--red-2);
  color: var(--red-2);
  transform: translateY(-2px);
  background: rgba(227, 24, 55, .08);
}

/* --------------------------------------------------------------------------
   13. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .wrap,
  .about .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
  }

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

  .sol-grid {
    grid-template-columns: 1fr;
  }

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

  .serv-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-card:nth-child(2) {
    transform: none;
  }

  .hero-card:nth-child(2):hover {
    transform: translateY(-4px);
  }

  .hero {
    padding: 150px 0 90px;
  }

  section {
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .f-row,
  .steps,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   15. ESTILOS ADICIONALES PARA LAS 7 PÁGINAS ESTRATÉGICAS
   -------------------------------------------------------------------------- */
.content-hero {
  position: relative;
  padding: 160px 0 70px;
  background: radial-gradient(circle at top center, rgba(227, 24, 55, 0.15) 0%, transparent 65%);
}

.content-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}

.content-hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 30px;
}

.analogy-box {
  background: linear-gradient(135deg, rgba(227, 24, 55, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(227, 24, 55, 0.3);
  border-left: 4px solid var(--red-2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}

.analogy-box h5 {
  color: var(--red-2);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analogy-box p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.struct-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.struct-card .badge-type {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: rgba(227, 24, 55, 0.15);
  color: var(--red-2);
  border: 1px solid rgba(227, 24, 55, 0.3);
}

.not-card {
  background: rgba(255, 71, 87, 0.04);
  border: 1px dashed rgba(255, 71, 87, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 18px;
}

.not-card h5 {
  color: var(--coral);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.target-quote {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #FFC107;
  padding: 14px 20px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
  font-size: 0.92rem;
  color: var(--text);
}

.target-quote strong {
  color: #FFC107;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hub-nav-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.hub-card {
  padding: 28px;
  transition: transform 0.25 ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 24, 55, 0.4);
  box-shadow: 0 14px 40px rgba(227, 24, 55, 0.15);
}

.hub-card .page-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--red-2);
  letter-spacing: 0.1em;
}

.hub-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 12px;
}

.hub-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.hub-card .link-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--red-2);
  transition: gap 0.2s ease;
}

.hub-card:hover .link-act {
  gap: 14px;
}

.nav-links a.active-page {
  color: var(--red-2);
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(227, 24, 55, 0.08);
  color: var(--text);
}

.nav-dropdown-menu a i {
  color: var(--red-2);
  width: 18px;
}

