:root {
  --bg-main: #050814;
  --bg-alt: #0b1020;
  --bg-card: rgba(15, 23, 42, 0.9);
  --border-soft: rgba(148, 163, 184, 0.25);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.25);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-strong: #f9fafb;
  --danger: #ef4444;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.55);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
             radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout base */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
  background: linear-gradient(120deg, #e5e7eb, #60a5fa, #e5e7eb);
  -webkit-background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease-out;
}

.navbar-logo:hover {
  opacity: 0.8;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-menu a {
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-out;
  position: relative;
}

.navbar-menu a:hover {
  color: var(--accent);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.3s ease-out;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.section h3 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-strong);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* HERO */
.hero {
  padding: 6rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  animation: fadeUp 0.8s ease-out both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  background: linear-gradient(120deg, #e5e7eb, #60a5fa, #e5e7eb);
  -webkit-background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-main);
  max-width: 34rem;
  margin-bottom: 1.2rem;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 1.6rem;
  color: var(--text-muted);
}

.hero-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(22, 163, 74, 0.45);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.6);
  filter: brightness(1.05);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* HERO Foto */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.1s both;
}

.hero-photo-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 60%);
  filter: blur(6px);
  opacity: 0.9;
}

.hero-photo {
  position: relative;
  width: 230px;
  max-width: 100%;
  filter: drop-shadow(0 18px 45px rgba(15, 23, 42, 0.9));
  animation: float 4.5s ease-in-out infinite;
}

/* TRUST */
.trust {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.8rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.trust-logos span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  filter: grayscale(100%);
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
}

.trust-logos span:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* GRID / CARDS */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card,
.card-soft {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.8s ease-out both;
  transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card:hover,
.card-soft:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.card:nth-child(1),
.card-soft:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2),
.card-soft:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3),
.card-soft:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4),
.card-soft:nth-child(4) {
  animation-delay: 0.4s;
}

.card:nth-child(5),
.card-soft:nth-child(5) {
  animation-delay: 0.5s;
}

.card:nth-child(6),
.card-soft:nth-child(6) {
  animation-delay: 0.6s;
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

.card h4,
.card-soft h4 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.card p,
.card-soft p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.check-list,
.card-list {
  list-style: none;
  margin-top: 0.4rem;
}

.check-list li,
.card-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-list li::before,
.card-list li::before {
  content: '•';
  position: absolute;
  left: 0.2rem;
  top: 0;
  color: var(--accent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card-cta {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.card-cta:hover {
  text-decoration: underline;
}

/* Testimonios */
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ZONA DE SERVICIO Y TECNOLOGÍAS */
.service-area {
  padding: 3.5rem 0;
  background: radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 70%);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.service-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.service-map-wrapper,
.service-tech-wrapper {
  padding: 1.5rem;
}

.service-map-wrapper h3,
.service-tech-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-strong);
}

.service-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-map-wrapper iframe {
  box-shadow: var(--shadow-soft);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease-out;
}

.tech-item:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-2px);
}

.tech-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease-out;
}

.tech-icon.windows {
  background: rgba(0, 120, 215, 0.2);
  color: #0078d7;
}

.tech-icon.linux {
  background: rgba(255, 153, 0, 0.2);
  color: #ff9900;
}

.tech-icon.network {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.tech-icon.security {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.tech-item:hover .tech-icon {
  transform: scale(1.15) rotate(5deg);
}

.tech-icon svg {
  width: 28px;
  height: 28px;
}

.tech-item h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-strong);
}

.tech-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.footer {
  padding: 2.2rem 0 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p + p {
  margin-top: 0.25rem;
}

/* Animaciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Animaciones con scroll (CSS Scroll-Driven Animations) */
.fade-in-up {
  animation: fadeInUp both linear;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.card.fade-in-up {
  animation-range: entry 5% cover 40%;
}

/* Fallback para navegadores sin soporte de animation-timeline */
@supports not (animation-timeline: view()) {
  .fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .navbar-menu {
    gap: 1.5rem;
  }

  .navbar-menu a {
    font-size: 0.85rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-photo-wrapper {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-area-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

@media (max-width: 600px) {
  .navbar-menu {
    gap: 1rem;
  }

  .navbar-menu a {
    font-size: 0.8rem;
  }

  .navbar-logo {
    font-size: 0.95rem;
  }

  .hero-photo {
    width: 200px;
  }

  .hero-photo-glow {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 3.2rem 0;
  }

  .service-area {
    padding: 2.5rem 0;
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-map-wrapper h3,
  .service-tech-wrapper h3 {
    font-size: 1.4rem;
  }
}

/* BOTÓN FLOTANTE WHATSAPP */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.15);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 18px var(--accent-soft);
  animation: pulse 2s infinite;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
  animation: none;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}
