/* ===== Fibernext Comunicaciones - Estilos base ===== */
:root {
  --color-primary: #0057a3;
  --color-primary-dark: #003d73;
  --color-accent: #00b894;
  --color-text: #1a1a1a;
  --color-muted: #5a6472;
  --color-bg: #f5f8fb;
  --color-white: #ffffff;
  --color-danger: #d63031;
  --radius: 10px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-white);
  padding: 10px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Topbar */
.topbar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  flex-wrap: wrap;
}
.topbar__legal a {
  color: #cfe6ff;
  margin-left: 14px;
  text-decoration: none;
}
.topbar__legal a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__img { height: 88px; width: auto; display: block; }
.logo__mark { font-weight: 800; font-size: 1.4rem; color: var(--color-primary); }
.logo__sub { font-size: 0.75rem; color: var(--color-muted); letter-spacing: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary); }

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 8px 0;
  list-style: none;
  margin: 8px 0 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 16px; font-weight: 500; }
.dropdown li a:hover { background: var(--color-bg); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 70px 0;
}
.hero__inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero__text { flex: 1 1 420px; }
.hero__text h1 { font-size: 2.4rem; margin-bottom: 14px; }
.hero__text p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__figure { flex: 1 1 320px; text-align: center; font-size: 6rem; perspective: 900px; }
.hero__logo {
  max-width: 100%;
  width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.45)) drop-shadow(0 0 40px rgba(255,255,255,0.15));
  animation: heroLogoFloat 4.5s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  will-change: transform;
}
.hero__logo:hover {
  transform: rotateY(8deg) rotateX(4deg) scale(1.05);
}

@keyframes heroLogoFloat {
  0%   { transform: translateY(0px) rotateY(-6deg) rotateX(2deg); }
  50%  { transform: translateY(-16px) rotateY(6deg) rotateX(-2deg); }
  100% { transform: translateY(0px) rotateY(-6deg) rotateX(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.btn-primary { background: var(--color-accent); color: #003d2a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* Sections */
.section { padding: 60px 0; }
.section--muted { background: #eef3f8; }
.section h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section .lead { color: var(--color-muted); margin-bottom: 34px; max-width: 700px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.card h3 { margin-top: 0; }

/* Pricing */
.plan-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid transparent;
}
.plan-card--featured { border-color: var(--color-accent); transform: scale(1.03); }
.plan-card .price { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); margin: 10px 0; }
.plan-card .price span { font-size: 0.9rem; color: var(--color-muted); font-weight: 400; }
.plan-card ul { list-style: none; padding: 0; text-align: left; margin: 18px 0; }
.plan-card ul li { padding: 6px 0; border-bottom: 1px solid #eee; }

/* Forms */
form.card { max-width: 720px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-group { flex: 1 1 240px; margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccd3db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 4px; }
.required { color: var(--color-danger); }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.alert-success { background: #e3f9ee; border: 1px solid #00b894; color: #00543a; }
.alert-error { background: #fdecea; border: 1px solid var(--color-danger); color: #7a1616; }
.alert-info { background: #e8f1fb; border: 1px solid var(--color-primary); color: #003d73; }

.radicado-box {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 24px;
}
.radicado-box .numero { font-size: 1.8rem; font-weight: 800; letter-spacing: 1px; }

/* Table */
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; font-size: 0.9rem; }
table.data-table th { background: var(--color-primary); color: #fff; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-radicado { background: #e8f1fb; color: var(--color-primary); }
.badge-tramite { background: #fff6e0; color: #a06b00; }
.badge-resuelto { background: #e3f9ee; color: #00543a; }
.badge-cerrado { background: #eee; color: #555; }

/* Speedtest */
.speed-gauge {
  width: 220px; height: 220px; border-radius: 50%;
  border: 14px solid #dde6ee;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; flex-direction: column;
}
.speed-gauge .value { font-size: 2.4rem; font-weight: 800; color: var(--color-primary); }
.speed-gauge .unit { font-size: 0.85rem; color: var(--color-muted); }
.speed-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; margin-top: 24px; }
.speed-results .stat { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.speed-results .stat .num { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }

/* Footer */
.site-footer { background: #10233d; color: #cfd9e6; padding: 50px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 12px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-links a { color: #cfd9e6; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding: 18px 20px; text-align: center; font-size: 0.8rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .has-dropdown .dropdown { position: static; box-shadow: none; display: none; margin: 6px 0 0 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .plan-card--featured { transform: none; }
}
