@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap');

:root {
  --color-navy: #1B2B4B;
  --color-dark-blue: #151F36;
  --color-almost-black: #1A1A2E;
  --color-medium-gray: #6B7280;
  --color-light-gray: #F7F7F5;
  --color-white: #FFFFFF;
  --font-primary: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--color-almost-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

/* Wordmark */
.brand-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.25rem;
}

.brand-wordmark .drial {
  font-weight: 600;
}

.brand-wordmark .athletic {
  font-weight: 400;
}

/* Navbar */
.navbar-custom {
  background-color: var(--color-navy);
  padding: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.brand-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 2px;
}
.brand-wordmark .drial { font-weight: 700; }
.brand-wordmark .athletic { font-weight: 300; opacity: 0.8; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--color-white);
}

/* Custom Hamburger Icon */
.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 28px;
  cursor: pointer;
}
.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}

/* Hover Effect */
.navbar-toggler:hover .hamburger-lines .line1 { transform: translateY(-3px); }
.navbar-toggler:hover .hamburger-lines .line3 { transform: translateY(3px); }
.navbar-toggler[aria-expanded="true"]:hover .hamburger-lines .line1,
.navbar-toggler[aria-expanded="true"]:hover .hamburger-lines .line3 {
  transform: scale(1.1);
}

/* Active/Click Effect (transforms into X) */
.navbar-toggler[aria-expanded="true"] .hamburger-lines .line1 {
  transform: translateY(9px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger-lines .line2 {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger-lines .line3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Custom Desktop Hamburger Menu Dropdown */
@media (min-width: 992px) {
  .navbar .container {
    position: relative;
  }
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: calc(var(--bs-gutter-x) * 0.5);
    width: 250px;
    background-color: var(--color-dark-blue);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
  }
  .navbar-collapse .navbar-nav {
    align-items: flex-end;
    width: 100%;
  }
  .navbar-collapse .nav-item {
    width: 100%;
    text-align: right;
  }
  .navbar-collapse .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .navbar-collapse .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* Hero Section */
.hero-section {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.5;
  z-index: -2;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-navy);
  mix-blend-mode: color;
  opacity: 0.85;
  z-index: -1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-medium-gray);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}
.hero-title {
  font-weight: 500;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-text {
  font-weight: 400;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
  background-color: var(--color-dark-blue);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.stat-item {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-size: 3rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-medium-gray);
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0;
  background-color: var(--color-light-gray);
}
.section-pretitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-medium-gray);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  color: var(--color-almost-black);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Cards */
.brand-card {
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background-color: var(--color-navy);
  mix-blend-mode: color;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.brand-card:hover::before {
  opacity: 0.2;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.brand-card-img {
  height: 350px;
  object-fit: cover;
  width: 100%;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.4s ease;
}
.brand-card:hover .brand-card-img {
  filter: grayscale(0%) contrast(1);
}
.brand-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.brand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.brand-logo {
  max-width: 200px;
  height: auto;
  max-height: 45px;
  object-fit: contain;
}
.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-desc {
  font-size: 1rem;
  color: var(--color-medium-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.brand-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #F0F0F0;
  margin-top: auto;
}
.brand-tag {
  font-size: 0.75rem;
  background-color: var(--color-white);
  color: var(--color-medium-gray);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

/* Services Section */
.services-section {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 7rem 0;
}
.services-section .section-title {
  color: var(--color-white);
}
.service-item {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}
.service-item:hover {
  background-color: rgba(255,255,255,0.05);
}
.service-icon {
  font-size: 1.5rem;
  color: var(--color-medium-gray);
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1rem;
  font-weight: 500;
    margin: 0px 0px 20px 0px;
  line-height: 1.4;
}

/* Contact Section */
.contact-section {
  padding: 7rem 0;
  background-color: var(--color-white);
}
.contact-text {
  font-size: 1.1rem;
  color: var(--color-medium-gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-almost-black);
  margin-bottom: 1.25rem;
}
.contact-info-item i {
  color: var(--color-medium-gray);
  font-size: 1.1rem;
}
.form-control, .form-select {
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--color-almost-black);
  background-color: var(--color-light-gray);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-navy);
  box-shadow: none;
  background-color: var(--color-white);
}
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.btn-primary-custom {
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: 1.1rem 2rem;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  transition: background-color 0.3s;
}
.btn-primary-custom:hover {
  background-color: var(--color-almost-black);
  color: var(--color-white);
}

/* Footer */
.footer-custom {
  background-color: var(--color-navy);
  padding: 2.5rem 0;
}
.footer-custom .brand-wordmark .athletic {
  opacity: 0.6;
}
.footer-text {
  color: var(--color-medium-gray);
  font-size: 0.85rem;
  margin: 0;
}
.footer-links a {
  color: var(--color-medium-gray);
  font-size: 0.85rem;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--color-white);
}

/* Mobile Nav Toggle */
.navbar-toggler {
  border: none;
  color: var(--color-white);
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .navbar-custom .nav-link { margin-left: 0; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .navbar-custom .nav-item:last-child .nav-link { border-bottom: none; }
  .navbar-collapse { padding-top: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 2rem 0; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0;}
  .stat-item:first-child { padding-top: 0; }
  .stats-bar { padding: 2rem 0; }
  .contact-info { margin-bottom: 3rem; }
  .footer-custom .container { flex-direction: column !important; text-align: center; gap: 1rem; }
  .footer-links a { margin: 0 0.75rem; }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--color-navy);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: var(--color-almost-black);
  color: #fff;
  transform: translateY(-5px);
}
.form-control::placeholder,
.form-select:invalid {
  color: #adb5bd !important;
}

/* 3D Flip Form Animation */
.flip-container {
  perspective: 1000px;
  width: 100%;
}
.flipper {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
}
.flip-container.flipped .flipper {
  transform: rotateY(180deg);
}
.front, .back {
  backface-visibility: hidden;
  width: 100%;
  top: 0;
  left: 0;
}
.front {
  z-index: 2;
  transform: rotateY(0deg);
}
.back {
  position: absolute;
  transform: rotateY(180deg);
  background-color: var(--color-dark-blue);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 100%;
}

/* About Section Image Effect */
.about-img-wrapper {
  position: relative;
  display: inline-block;
}
.about-img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-navy);
  mix-blend-mode: color;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 0.375rem; /* Bootstrap rounded */
}
.about-img-wrapper:hover::before {
  opacity: 0.2;
}

.about-img {
  transition: filter 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  filter: grayscale(30%) contrast(1.1);
  display: block;
}
.about-img-wrapper:hover .about-img {
  filter: grayscale(0%) contrast(1);
}


    /* Ajustes finos de contraste y legibilidad */
    .hero-subtitle {
        color: rgba(255,255,255,0.72) !important;
        letter-spacing: 0.12em;
    }

    .hero-text {
        color: rgba(255,255,255,0.88) !important;
        max-width: 720px;
    }

    .stats-bar .stat-label {
        color: rgba(255,255,255,0.78) !important;
    }

    .portfolio-section .section-pretitle,
    .audiences-section .section-pretitle,
    .about-section .section-pretitle,
    .contact-section .section-pretitle {
        color: #7D889F !important;
    }

    .services-section .section-pretitle {
        color: #9EAFD0 !important;
    }

    .portfolio-section .section-title,
    .audiences-section .section-title,
    .about-section .section-title,
    .contact-section .section-title {
        color: #16233F !important;
    }

    .services-section .section-title,
    .services-section .service-title {
        color: #FFFFFF !important;
    }

    .section-text,
    .brand-desc,
    .contact-text,
    .audiences-section .text-muted,
    .about-section .text-muted {
        color: #5A667E !important;
    }

    .services-section .section-text,
    .services-section .text-muted {
        color: rgba(255,255,255,0.78) !important;
    }

    .brand-badge {
        color: #16233F !important;
    }

    /* Iconos +30% aprox. y un poco más visibles */
    .service-icon {
        font-size: 2rem !important;
        line-height: 1;
    }

    .audiences-section .service-icon {
        color: #16233F !important;
    }

    .services-section .service-icon {
        color: #ffffff !important;
    }

    .audiences-section .service-title,
    .about-section h3,
    .contact-section .form-label {
        color: #16233F !important;
    }

    .contact-section .form-control::placeholder,
    .contact-section .form-select,
    .contact-section textarea::placeholder {
        color: #7B859A;
    }

    .services-section .service-item,
    .audiences-section .service-item {
        border-color: rgba(255,255,255,0.06);
    }

/* Buttons */
.btn-brand {
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-brand:hover {
  background-color: var(--color-navy);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #dedede;
}
::-webkit-scrollbar-thumb {
  background: var(--color-navy);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #111a2f; /* Darker navy */
}

/* Button Wrapper Margin */
.brand-btn-wrapper {
  margin-top: 2.5rem !important;
}

@media (max-width: 768px) {
  .hero-section::before {
    background-position: 80% 30%;
  }
}
