/**
* CVARX - Complex Business IT Services
* Sitio Web Corporativo
* Paleta: Azul oscuro, petróleo, celeste, grises fríos
*/

/*--------------------------------------------------------------
# CSS Variables - Paleta CVARX
--------------------------------------------------------------*/
:root {
  --primary-dark: #0d1b2a;
  --primary: #1b3a4b;
  --primary-light: #2d5a6b;
  --accent: #4da8da;
  --accent-light: #7ec8e3;
  --accent-glow: #00b4d8;
  --gray-dark: #2b2d42;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --gray-lighter: #e9ecef;
  --white: #ffffff;
  --bg-dark: #0a1628;
  --bg-section: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --gradient-primary: linear-gradient(135deg, #1b3a4b 0%, #2d5a6b 100%);
  --gradient-accent: linear-gradient(135deg, #4da8da 0%, #00b4d8 100%);
  --gradient-dark: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  background: var(--white);
}

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

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: all 0.4s;
  box-shadow: 0 4px 12px rgba(77, 168, 218, 0.4);
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-glow);
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-dark);
}

#header .logo h1 a, #header .logo h1 a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 68px;
}

@media (max-width: 992px) {
  #header {
    height: 70px;
  }
}

.scrolled-offset {
  margin-top: 80px;
}

@media (max-width: 992px) {
  .scrolled-offset {
    margin-top: 70px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

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

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  white-space: nowrap;
  transition: 0.3s;
  text-transform: none;
  letter-spacing: 0.3px;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

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

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  border-radius: 8px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: var(--accent);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
  color: var(--primary-dark);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(13, 27, 42, 0.95);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: var(--white);
  overflow-y: auto;
  transition: 0.3s;
  border-radius: 10px;
}

.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--gray-dark);
}

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

.navbar-mobile .getstarted {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: var(--bg-section);
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  border-radius: 8px;
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: var(--accent);
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  min-height: 100vh;
  background: #0d1b2a;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(77, 168, 218, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(45, 90, 107, 0.2) 0%, transparent 70%);
  z-index: 1;
}

/* Grid pattern overlay */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(77, 168, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 168, 218, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

#hero .hero-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 15px;
}

#hero .hero-logo {
  margin-bottom: 30px;
}

#hero .hero-logo img {
  max-height: 150px;
  filter: brightness(1.1);
}

#hero h1 {
  margin: 0 0 20px 0;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

#hero h1 span {
  color: #4da8da;
}

#hero h2 {
  color: #adb5bd;
  margin-bottom: 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
}

#hero .btn-get-started {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  margin: 10px;
  color: #ffffff;
  background: #4da8da;
  background: linear-gradient(135deg, #4da8da 0%, #00b4d8 100%);
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(77, 168, 218, 0.4);
}

#hero .btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(77, 168, 218, 0.5);
}

#hero .btn-secondary {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  margin: 10px;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

#hero .btn-secondary:hover {
  border-color: #4da8da;
  color: #4da8da;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  #hero h2 {
    font-size: 16px;
    line-height: 1.5;
  }
}

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

.section-bg {
  background-color: var(--bg-section);
}

.section-dark {
  background: var(--gradient-dark);
}

.section-title {
  text-align: center;
  padding-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 0;
  color: var(--text-dark);
  position: relative;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title.light h2 {
  color: var(--white);
}

.section-title.light h2::after {
  background: var(--accent);
}

.section-title.light p {
  color: var(--gray-light);
}

/*--------------------------------------------------------------
# About Us / Quiénes Somos
--------------------------------------------------------------*/
.about {
  padding: 80px 0;
}

.about .content {
  padding: 40px 30px;
}

.about .content h3 {
  font-weight: 700;
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about .content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
}

.about .content ul i {
  font-size: 22px;
  padding-right: 12px;
  color: var(--accent);
}

.about .content ul span {
  color: var(--gray-dark);
  font-weight: 500;
}

.about .image-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .stats-box {
  background: var(--gradient-accent);
  padding: 30px;
  border-radius: 12px;
  color: var(--white);
  text-align: center;
  position: absolute;
  bottom: -30px;
  right: -30px;
  box-shadow: 0 10px 40px rgba(77, 168, 218, 0.4);
}

.about .stats-box h4 {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.about .stats-box p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Services / Soluciones
--------------------------------------------------------------*/
.services {
  padding: 80px 0;
}

.services .service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 30px;
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid var(--gray-lighter);
  position: relative;
  overflow: hidden;
}

.services .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.services .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.services .service-card:hover::before {
  transform: scaleX(1);
}

.services .service-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.services .service-card .icon i {
  font-size: 32px;
  color: var(--accent);
  transition: all 0.4s ease;
}

.services .service-card:hover .icon {
  background: var(--gradient-accent);
}

.services .service-card:hover .icon i {
  color: var(--white);
}

.services .service-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.services .service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/*--------------------------------------------------------------
# Process / Cómo Trabajamos
--------------------------------------------------------------*/
.process {
  padding: 80px 0;
  background: var(--bg-section);
}

.process .process-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.process .process-step .step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(77, 168, 218, 0.3);
  position: relative;
  z-index: 2;
}

.process .process-step h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.process .process-step p {
  color: var(--text-muted);
  line-height: 1.7;
}

.process .process-step .connector {
  position: absolute;
  top: 70px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  z-index: 1;
}

@media (max-width: 991px) {
  .process .process-step .connector {
    display: none;
  }
}

/*--------------------------------------------------------------
# Technology / Tecnología y Enfoque
--------------------------------------------------------------*/
.technology {
  padding: 80px 0;
}

.technology .tech-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid var(--gray-lighter);
}

.technology .tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.technology .tech-card .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.technology .tech-card .icon i {
  font-size: 36px;
  color: var(--accent);
}

.technology .tech-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.technology .tech-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(77, 168, 218, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.cta p {
  color: var(--gray-light);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta .cta-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  color: var(--white);
  background: var(--gradient-accent);
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(77, 168, 218, 0.4);
}

.cta .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(77, 168, 218, 0.5);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding: 80px 0;
}

.contact .info-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--gray-lighter);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact .info-box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact .info-box i {
  font-size: 24px;
  color: var(--accent);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  float: left;
  margin-right: 20px;
}

.contact .info-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.contact .info-box p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.contact .contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact .contact-form .form-group {
  margin-bottom: 20px;
}

.contact .contact-form input,
.contact .contact-form textarea {
  border-radius: 8px;
  border: 1px solid var(--gray-lighter);
  padding: 12px 20px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact .contact-form input:focus,
.contact .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
}

.contact .contact-form button[type="submit"] {
  background: var(--gradient-accent);
  border: none;
  padding: 14px 40px;
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(77, 168, 218, 0.3);
}

.contact .contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 168, 218, 0.4);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--bg-dark);
  color: var(--gray-light);
  font-size: 14px;
  position: relative;
}

#footer .footer-top {
  padding: 80px 0 60px;
  text-align: center;
}

#footer .footer-top .footer-logo img {
  height: 105px;
  margin-bottom: 20px;
}

#footer .footer-top h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

#footer .footer-top p {
  font-size: 16px;
  color: var(--gray-light);
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

#footer .footer-top .social-links {
  margin-top: 20px;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 168, 218, 0.1);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 8px;
  transition: all 0.3s ease;
}

#footer .footer-top .social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

#footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

#footer .copyright {
  text-align: center;
  color: var(--gray);
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  padding-top: 5px;
  color: var(--gray);
}

#footer .credits a {
  color: var(--accent);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .about .stats-box {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 20px;
  }
}
