:root {
  --primary-color: #182534;
  --secondary-color: #1a2c3d;
  --accent-color: #66fcf1;
  --text-active: #c5c6c7;
  --text-muted: #8b8e92;
  --white: #ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--primary-color);
  color: var(--white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Typography Details */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-active);
}

/* Navbar */
.navbar {
  transition: all 0.4s ease-in-out;
  padding: 1.5rem 2rem;
  z-index: 1030;
}

.navbar.transparent {
  background-color: transparent !important;
  box-shadow: none;
}

.navbar.solid {
  background-color: rgba(11, 12, 16, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-right: 2rem;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-logo-container {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s ease-in-out, opacity 0.4s ease-in-out, margin 0.4s ease-in-out;
  margin-right: 0;
}

.navbar.solid .nav-logo-container {
  max-width: 150px;
  opacity: 1;
  margin-right: 1.5rem;
}

.nav-logo {
  height: 25px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(11,12,16,0.3) 0%, rgba(11,12,16,0.8) 100%);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 350px;
  opacity: 0;
  animation: heroLogoFade 1.5s ease-out 0.5s forwards;
}

@keyframes heroLogoFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-15px) rotate(45deg);
  }
  60% {
    transform: translateY(-7px) rotate(45deg);
  }
}

/* Section 2: Servicios */
.section-servicios {
  padding: 8rem 0;
  background-color: var(--primary-color);
}

.section-title {
  text-align: left;
  font-size: 3.5rem;
  margin-bottom: 5rem;
  text-transform: capitalize;
  letter-spacing: 0.1em;
}

.service-card {
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.service-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 4px;
  display: block;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-card-full .service-image {
  aspect-ratio: 4/1;
}

@media (max-width: 768px) {
  .service-card-full .service-image {
    aspect-ratio: 4/3;
  }
}

.service-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.service-content p {
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.service-content p:last-child {
  margin-bottom: 0;
}

/* Section 3: Brands Ribbon */
.ribbon-section {
  background-color: var(--secondary-color);
  padding: 2rem 0;
}

.ribbon-text-container {
  padding: 0 2rem;
  z-index: 2;
  position: relative;
}

.ribbon-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
  line-height: 1.2;
}

.ribbon-scroll-col {
  overflow: hidden;
  position: relative;
}

.ribbon-wrapper {
  display: flex;
  width: max-content;
  align-items: center;
  animation: roll 30s linear infinite;
}

.ribbon-item {
  height: 70px;
  width: auto;
  margin: 0 4rem;
  filter: grayscale(1) brightness(2) opacity(0.6);
  transition: filter 0.3s;
}

.ribbon-item:hover {
  filter: grayscale(0) brightness(1) opacity(1);
}

@keyframes roll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Carousels */
.carousel-section {
  position: relative;
  height: auto;
  padding: 4rem 2rem;
}

.carousel {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.carousel-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  font-size: 5rem;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  white-space: nowrap;
}

.carousel-caption-left {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 12;
  color: var(--white);
  text-align: left;
}

.carousel-caption-left h1 {
  font-size: 6rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -2px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.carousel-item img,
.carousel-item video {
  height: 70vh;
  object-fit: cover;
  filter: brightness(0.6);
}

.custom-arrows {
  top: auto;
  bottom: 5%;
  width: 60px;
  height: 60px;
  background-color: rgba(24, 37, 52, 0.6); /* Match primary theme color somewhat */
  border-radius: 50%;
  opacity: 0.7;
}

.custom-arrows:hover {
  background-color: rgba(24, 37, 52, 1);
  opacity: 1;
}

.carousel-control-prev.custom-arrows {
  left: 5%;
}

.carousel-control-next.custom-arrows {
  right: 5%;
}

/* Section 6: Contacto */
.contacto-section {
  padding: 10rem 0;
  text-align: center;
  background-color: var(--primary-color);
}

.contacto-section h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.contacto-email {
  font-size: 1.5rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.contacto-email:hover {
  opacity: 0.8;
  color: var(--white);
}

/* Footer */
footer {
  background-color: #111b26;
  padding: 4rem 0;
  text-align: center;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .carousel-section, 
  .carousel-item img,
  .carousel-item video {
    height: auto;
  }
  
  .carousel-item img,
  .carousel-item video {
    width: 100%;
    object-fit: contain;
  }

  .custom-arrows {
    bottom: 2%;
    width: 40px;
    height: 40px;
  }

  .carousel-title-overlay {
    font-size: 2.5rem;
  }

  .carousel-caption-left {
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .carousel-caption-left h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .ribbon-title {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}
