/* ═══════════════════════════════════════════════
   INNOVACIÓN TECNOLÓGICA — Modern Tech Dark Theme
   Palette: #07080f bg · #00e5ff cyan · #a259ff violet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #07080f;
  --bg-2:       #0d0f1a;
  --bg-3:       #131627;
  --bg-card:    #10121e;
  --cyan:       #00e5ff;
  --violet:     #a259ff;
  --cyan-dim:   rgba(0, 229, 255, 0.12);
  --violet-dim: rgba(162, 89, 255, 0.12);
  --text:       #e8eaf2;
  --text-muted: #7a7f99;
  --border:     rgba(255,255,255,0.07);
  --border-glow:rgba(0, 229, 255, 0.3);
  --radius:     14px;
  --radius-sm:  8px;
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-image: url("/assets/img/network.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* opcional */
  color: var(--text);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

p { color: var(--text-muted); }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 68px;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
  transition: filter var(--transition);
}
.logo:hover img { filter: drop-shadow(0 0 14px rgba(0,229,255,0.7)); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  gap: 0.25rem;
}

.nav-list a {
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover, .nav-list a[href*="current"] {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── WhatsApp Button ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 0 20px rgba(37,211,102,0.45);
  transform: translateY(-2px);
}

/* ── Language Switch ── */
.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px clamp(1rem, 4vw, 3rem);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ══════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════ */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  margin: 12px auto 0;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan) 0%, #00b8d4 100%);
  color: #07080f;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #33eeff 0%, #00d4f0 100%);
  box-shadow: 0 0 28px rgba(0,229,255,0.5);
  color: #07080f;
  transform: translateY(-3px);
}

/* ══════════════════════════════
   GRID SYSTEM
══════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card, .card-1, .card-2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover, .card-1:hover, .card-2:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.1);
}

.card:hover::before { opacity: 1; }

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.05); }

.card-info {
  padding: 1.25rem 1.25rem 1.5rem;
}
.card-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.card-info p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Service Cards (card-1, card-2) ── */
.card-1, .card-2 {
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.card-1 { border-top: 3px solid var(--cyan); }
.card-2 { border-top: 3px solid var(--violet); }

.card-1::after, .card-2::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.07;
  transition: opacity var(--transition);
}
.card-1::after { background: var(--cyan); }
.card-2::after { background: var(--violet); }
.card-1:hover::after, .card-2:hover::after { opacity: 0.14; }

.card-1 h3, .card-2 h3 { margin-bottom: 0.75rem; }
.card-1 p, .card-2 p { font-size: 0.92rem; }

/* ══════════════════════════════
   HERO (index.html)
══════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(162,89,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero img {
  width: clamp(180px, 25vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.3));
  animation: heroFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.hero-text h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
}

.features article {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.features article::before {
  content: counter(feat);
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}
.features article:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-4px);
}
.features h3 { margin-bottom: 0.6rem; }
.features p  { font-size: 0.92rem; }

/* accent line on feature cards */
.features article:nth-child(1) { border-top: 2px solid var(--cyan); }
.features article:nth-child(2) { border-top: 2px solid var(--violet); }
.features article:nth-child(3) { border-top: 2px solid #00e5c0; }

/* ══════════════════════════════
   SERVICES PAGE
══════════════════════════════ */
.services-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cta-section {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  margin: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
}

/* ══════════════════════════════
   ABOUT PAGE
══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.about-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.about-grid article:hover {
  border-color: rgba(162,89,255,0.35);
  transform: translateY(-4px);
}
.about-grid h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--cyan);
}
.about-grid p { font-size: 0.93rem; }

.about-grid ul { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-grid li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.about-grid li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.75rem;
}

/* Team section */
.team {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.team h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 2rem;
  text-align: center;
}
.team .grid { padding: 0; }
.team .card { text-align: center; }
.team .card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.team .card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1rem 0;
}
.team .card p { padding: 0.25rem 1rem 1.25rem; font-size: 0.85rem; color: var(--cyan); }

/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122,127,153,0.6);
}

.contact-form .btn-primary { align-self: flex-start; }

.form-status { font-size: 0.9rem; color: var(--cyan); }

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.contact-info h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-info p {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-info p:last-child { border-bottom: none; }
.contact-info strong { color: var(--text); }

/* ══════════════════════════════
   GALLERY PAGE
══════════════════════════════ */
.gallery-photos, .gallery-videos {
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-videos { margin-top: 1rem; }

.video-card .video-wrapper { position: relative; overflow: hidden; }
.video-card video {
  width: 100%;
  height: 300px;       /* altura fija */
  object-fit: cover;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.footer a { color: var(--text-muted); font-size: 0.88rem; }
.footer a:hover { color: var(--cyan); }
.footer strong { color: var(--text); }

.map-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrapper iframe { width: 100%; max-width: 100%; display: block; height: 180px; }

/* ── Social buttons ── */
.social-buttons { display: flex; flex-direction: column; gap: 8px; }

.social-buttons .btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.social-buttons .btn:hover { color: #fff; transform: translateX(4px); }
.social-buttons .btn.facebook:hover  { background: rgba(24,119,242,0.15); border-color: #1877f2; }
.social-buttons .btn.instagram:hover { background: rgba(225,48,108,0.15);  border-color: #e1306c; }
.social-buttons .btn.youtube:hover   { background: rgba(255,0,0,0.15);     border-color: #ff0000; }
.social-buttons .btn.linkedin:hover  { background: rgba(0,119,181,0.15);   border-color: #0077b5; }

.social-buttons i { width: 16px; text-align: center; }

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.copyright a { color: var(--cyan); }

/* ══════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.12s; }
.reveal:nth-child(6) { transition-delay: 0.2s;  }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav { position: static; gap: 0.75rem; }

  .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(7,8,15,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
    z-index: 9999;
  }

  .nav-list.open { display: flex; flex-direction: column; }

  .hero { flex-direction: column-reverse; text-align: center; min-height: unset; padding: 3rem 1.5rem; }
  .hero img { width: clamp(120px, 40vw, 200px); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-buttons { flex-direction: row; flex-wrap: wrap; }
  .social-buttons .btn:hover { transform: none; }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex !important; flex-direction: row; position: static; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}