:root {
  --primary-navy: #1B3A5F;
  --primary-gold: #B8944D;
  --primary-teal: #5A9B9E;
  --dark-gray: #333;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}


::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}


hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}


audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}


fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}


textarea {
  resize: vertical;
}



body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-navy);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-gold));
  border-radius: 2px;
}

#mainNav {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4d6f 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#mainNav.scrolled {
  padding: 0.5rem 0;
  background: rgba(27, 58, 95, 0.98);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.4rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transform: scale(1.3);
}

.brand-text {
  background: linear-gradient(135deg, var(--primary-gold), #d4a962);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-gold);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-gold) !important;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

#hero {
  position: relative;
  min-height: 100vh;
}

.carousel-item {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4d6f 50%, var(--primary-teal) 100%);
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 58, 95, 0.9) 0%,
    rgba(90, 155, 158, 0.8) 100%
  );
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
}

.carousel-item h1 {
  animation: fadeInUp 0.8s ease-out;
  color: white !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-item p {
  animation: fadeInUp 1s ease-out;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

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

#nosotros {
  background: var(--white);
  position: relative;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.customization-card {
  background: linear-gradient(135deg, rgba(27, 58, 95, 0.03), rgba(90, 155, 158, 0.03));
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  border: 1px solid rgba(90, 155, 158, 0.2);
}

.custom-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(90, 155, 158, 0.3);
  transition: var(--transition);
}

.custom-icon:hover {
  transform: rotate(180deg) scale(1.1);
  background: linear-gradient(135deg, var(--primary-gold), #d4a962);
}

.custom-icon i {
  font-size: 3rem;
  color: white;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  font-size: 2rem;
  color: white;
}

#servicios {
  background: var(--light-gray);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-teal);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-gold), #d4a962);
  transform: rotateY(180deg);
}

.service-icon i {
  font-size: 2.5rem;
  color: white;
}

.service-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #d4a962) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  padding: 0.8rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(184, 148, 77, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d4a962, var(--primary-gold)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 148, 77, 0.4);
}

.btn-outline-light {
  border: 2px solid white !important;
  color: white !important;
  font-weight: 600;
  padding: 0.8rem 2rem;
  background: transparent !important;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: white !important;
  color: var(--primary-navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

#contacto {
  background: var(--white);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-teal));
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary-gold);
  transform: scale(1.1);
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-item h4 {
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.contact-link:hover {
  color: var(--primary-gold);
  transform: translateX(5px);
}

.contact-item p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4d6f 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: scale(1.3);
}

.footer-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-title {
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(5px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--primary-gold);
  font-size: 1.2rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary-gold);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2.5rem 0 1.5rem;
}

.footer-copyright,
.footer-slogan {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-slogan {
  font-style: italic;
  color: var(--primary-gold);
}

@media (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }

  .navbar-collapse {
    background: rgba(27, 58, 95, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .carousel-item h1 {
    font-size: 2rem !important;
  }

  .carousel-item p {
    font-size: 1rem !important;
  }

  #nosotros,
  #servicios,
  #contacto {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .customization-card {
    padding: 2rem 1.5rem;
  }

  .custom-icon {
    width: 80px;
    height: 80px;
  }

  .custom-icon i {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .service-card {
    margin-bottom: 1.5rem;
  }

  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }

  .footer-copyright,
  .footer-slogan {
    text-align: center !important;
    margin-top: 0.5rem;
  }

  #nosotros,
  #servicios,
  #contacto {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .customization-card {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }

  .customization-card h3 {
    font-size: 1.5rem;
  }

  .feature-item {
    font-size: 0.9rem;
  }
}



.hidden,
[hidden] {
  display: none !important;
}


.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media print {
  box-shadow: none !important;
  text-shadow: none !important;

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

