/* ===============================
   CLEARCODE v2025 Modern Neural Theme
   Based on Logo Colors: #0c2e8a (Blue), #50d8af (Teal)
   =============================== */

/* RESET & FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700|Raleway:300,400,500,600,700');

:root {
  --primary-color: #50d8af; /* Teal */
  --secondary-color: #0c2e8a; /* Deep Blue */
  --bg-color: #050a10; /* Very Dark Blue/Black */
  --card-bg: rgba(12, 46, 138, 0.15); /* Glassy Blue */
  --text-color: #e0e6ed;
  --heading-color: #ffffff;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Background Canvas Container */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #0a1525 0%, #000000 100%);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #7fffd4;
  text-shadow: 0 0 8px rgba(80, 216, 175, 0.6);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--heading-color);
}

/* --------------------------------------------------------------
# Top Bar
-------------------------------------------------------------- */
#topbar {
  background: #000000;
  border-bottom: 1px solid rgba(80, 216, 175, 0.1);
  height: 40px;
  font-size: 13px;
  transition: all 0.5s;
  color: #fff;
  padding: 0 !important;
}

#topbar .contact-info {
  line-height: 40px;
}

#topbar .contact-info i {
  font-style: normal;
  color: var(--primary-color);
  margin-right: 16px;
}

#topbar .contact-info i a, 
#topbar .contact-info i span {
  padding-left: 5px;
  color: #fff;
  line-height: 40px;
}

#topbar .whatsapp {
  display: inline;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------
# Recursos
-------------------------------------------------------------- */
#Recursos .section-header h2 {
  color: var(--primary-color);
}
#Recursos .section-header p {
  color: #bbb;
  max-width: 900px;
  margin: 0 auto;
}
.rec-controls {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.rec-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.chip:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(80, 216, 175, 0.3);
}
.chip.active {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
}
.rec-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.resource-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  border-color: rgba(80, 216, 175, 0.25);
}
.resource-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.resource-desc {
  font-size: 13px;
  color: #bbb;
  margin: 8px 0 10px 0;
  min-height: 46px;
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
}
.badge.os {
  border-color: var(--secondary-color);
  color: #fff;
}
.card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-download {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--secondary-color);
  color: #fff;
  background: var(--secondary-color);
}
.btn-download:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}
@media (max-width: 991px) {
  .rec-controls {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
#header {
  height: 160px;
  transition: all 0.5s;
  z-index: 997;
  padding: 0;
  background: linear-gradient(rgba(5, 10, 16, 0.35), rgba(5, 10, 16, 0.35)), url("../img/header-bg.png") center center no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(80, 216, 175, 0.2);
}

#header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 30px;
}

#header.fixed-top {
  height: 90px;
  background: linear-gradient(rgba(5, 10, 16, 0.35), rgba(5, 10, 16, 0.35)), url("../img/header-bg.png") center center no-repeat;
  background-size: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#header #logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

#header #logo a {
  display: block;
  height: 100%;
}

#header #logo img.logo-img {
  height: calc(100% - 20px);
  width: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  #header {
    height: auto;
  }
  #header .container {
    padding: 10px 15px;
    flex-direction: column;
    align-items: flex-start;
  }
  #header #logo {
    width: 100%;
  }
  #header #logo img.logo-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  #header.fixed-top {
    height: 70px;
    overflow: hidden;
  }
  #header.fixed-top #logo {
    width: auto;
    height: 100%;
  }
  #header.fixed-top #logo img.logo-img {
    height: 100%;
    width: auto;
    max-height: 100%;
  }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  margin-left: 20px;
}

/* Navbar */
.navbar a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--primary-color);
}

.navbar .dropdown ul {
  background: rgba(12, 46, 138, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 216, 175, 0.2);
}

.navbar .dropdown ul a {
  color: #fff;
}

.mobile-nav-toggle {
  color: #fff;
  display: none;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 10001;
  }
  .navbar {
    width: 100%;
  }
  .navbar ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

#navbar.navbar-mobile {
  position: relative;
  width: 100%;
  margin-top: 8px;
  background: rgba(5, 10, 16, 0.9);
  border: 1px solid rgba(80, 216, 175, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

#navbar.navbar-mobile ul {
  display: block;
}

#navbar.navbar-mobile li {
  margin: 6px 0;
}

#navbar.navbar-mobile a {
  display: block;
  font-size: 14px;
  padding: 8px 6px;
}

/* Keep toggle visible when header reduces in mobile */
@media (max-width: 991px) {
  #header.fixed-top .mobile-nav-toggle {
    position: fixed;
    right: 16px;
    top: 10px;
    z-index: 10002;
  }
  /* Make the mobile menu fixed below the reduced header */
  #header.fixed-top #navbar.navbar-mobile {
    position: fixed;
    top: 70px; /* match mobile fixed-top height */
    left: 0;
    right: 0;
    margin-top: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
/* --------------------------------------------------------------
# Hero Section
-------------------------------------------------------------- */
#hero {
  width: 100%;
  height: 85vh;
  position: relative;
  /* Removed static image to let canvas show, or use a dark overlay */
  background: transparent; 
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

#hero h1 {
  font-size: 58px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero h1 span {
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
}

#hero h2 {
  font-size: 24px;
  color: #ccc;
  margin-bottom: 30px;
  font-weight: 300;
}

#hero .btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.3s;
  line-height: 1;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
  text-transform: uppercase;
}

#hero .btn-get-started:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-color);
}

/* --------------------------------------------------------------
# Sections General
-------------------------------------------------------------- */
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-header h2 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  padding-bottom: 20px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0; /* Or center if centered */
  box-shadow: 0 0 10px var(--secondary-color);
}

.section-header p {
  color: #aaa;
}

/* --------------------------------------------------------------
# Cards (Que Hacemos / Services)
-------------------------------------------------------------- */
.box {
  padding: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.box:hover::before {
  transform: translateX(100%);
}

.box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(80, 216, 175, 0.3);
}

.box .icon i {
  color: var(--primary-color);
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(80, 216, 175, 0.4);
}

.box h4 a {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.box h4 a:hover {
  color: var(--primary-color);
}

.box p {
  font-size: 14px;
  color: #bbb;
  line-height: 26px;
}

/* --------------------------------------------------------------
# Tecnologias / Clients
-------------------------------------------------------------- */
#Tecnologias img, #clients img {
  opacity: 1;
  transition: 0.3s;
  filter: saturate(120%) drop-shadow(0 0 4px rgba(80, 216, 175, 0.25));
  padding: 10px 0;
}

#Tecnologias img:hover, #clients img:hover {
  opacity: 1;
  filter: saturate(140%) drop-shadow(0 0 8px rgba(80, 216, 175, 0.45));
}

.Tecnologias-slider .swiper-pagination {
  position: relative;
  margin-top: 28px;
}

/* Portal edges for slider */
.Tecnologias-slider {
  position: relative;
  overflow: hidden;
}
.Tecnologias-slider::before,
.Tecnologias-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
}
.Tecnologias-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 10, 16, 1) 0%, rgba(5, 10, 16, 0) 100%);
}
.Tecnologias-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5, 10, 16, 1) 0%, rgba(5, 10, 16, 0) 100%);
}
.Tecnologias-slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary-color);
}

/* --------------------------------------------------------------
# Contacto
-------------------------------------------------------------- */
#Desarrollos .youtube-facade {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(80, 216, 175, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#Desarrollos .youtube-facade::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 216, 175, 0.9) 0%, rgba(80, 216, 175, 0.4) 60%, rgba(80, 216, 175, 0.0) 70%);
  box-shadow: 0 0 20px rgba(80, 216, 175, 0.6);
}

#Desarrollos .youtube-facade::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-left: 18px solid #051016;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

#Desarrollos .youtube-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

#Contacto .info-box {
  color: #444;
  text-align: center;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 20px 0 30px 0;
  background: #fff;
}

#Contacto .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  padding: 12px;
}

#Contacto .form-control::placeholder, 
#Contacto textarea::placeholder {
  color: #eef2f6;
  opacity: 0.85;
}

#Contacto .input-group-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

#Contacto .input-group .form-control {
  border-left: none;
}

#Contacto .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(80, 216, 175, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

#Contacto .btn-success {
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: bold;
}

#Contacto .btn-success:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-color);
}

/* --------------------------------------------------------------
# Footer
-------------------------------------------------------------- */
#footer {
  background: #020508;
  padding: 30px 0;
  color: #fff;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* --------------------------------------------------------------
# Back to Top
-------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  z-index: 9999;
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.back-to-top:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

.back-to-top i {
  color: #fff;
}
.back-to-top:hover i {
  color: #000;
}

/* --------------------------------------------------------------
# Cookie Banner
-------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(2, 5, 8, 0.9);
  border-top: 1px solid rgba(80, 216, 175, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 16px;
}
.cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner .btn-accept {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #000;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
}
.cookie-banner .btn-decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
}
