/* ========================================
   ROOT VARIABLES
======================================== */
:root {
  --dtx-primary: #2E3976;
  --dtx-accent: #EE2168;
}

/* ========================================
   GLOBAL ELEMENTS
======================================== */
html, body {
  scroll-behavior: smooth;
}

.object-fit-cover {
  object-fit: cover;
}

section {
  padding: 72px 0;
}

section h2 {
  font-weight: 700;
  margin-bottom: 16px;
}

.text-muted-small {
  color: #64748b;
  font-size: 0.95rem;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dtx-accent) !important;
}

.navbar.scrolled .nav-link {
  color: var(--dtx-primary) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--dtx-accent) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.scrolled .navbar-toggler {
  border-color: rgba(46, 57, 118, 0.5);
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%2846,57,118,0.9%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ========================================
   HERO / HOME SECTION
======================================== */
#home {
  height: 100svh;
  position: relative;
}

#home .carousel,
#home .carousel-inner,
#home .carousel-item {
  height: 100%;
}

#home .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item {
  position: relative;
}

/* overlay con fade gris → transparente */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(92, 92, 92, 0.4) 0%,
    rgba(92, 92, 92, 0.3) 100%
  );
  z-index: 2;
}

.navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* texto sobre el overlay */
.hero-caption {
  position: relative;
  z-index: 3;
}

#home .hero-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

#home h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========================================
   BUTTONS
======================================== */
.btn-dtx {
  background-color: var(--dtx-accent);
  color: #fff;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-dtx:hover {
  background-color: #c91a56;
}

/* ========================================
   TEAM SECTION
======================================== */
.team-card {
  width: 100%;
  max-width: 260px;
}

.team-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 0.6rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  margin-inline: auto;
}

/* ========================================
   PRODUCTS SECTION
======================================== */
#products .card {
  height: 100%;
}

#products .card-body {
  display: flex;
  flex-direction: column;
}

#products .card-body .btn {
  align-self: flex-start;
}

#products .card-body > :is(p, ul):last-child {
  margin-bottom: 1rem;
}

#products .btn-outline-dark {
  border-color: #000;
  color: #000;
  transition: all 0.2s ease;
}

#products .btn-outline-dark:hover {
  background-color: var(--dtx-accent);
  border-color: var(--dtx-accent);
  color: #fff;
}

/* ========================================
   ACCORDION
======================================== */
.accordion-button:not(.collapsed) {
  color: var(--dtx-primary);
  background: #f8fafc;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wa-fab.visible {
  opacity: 1;
  visibility: visible;
}

.wa-fab .btn {
  background-color: #25D366;
  border-color: #25D366;
  transition: all 0.3s ease;
}

.wa-fab .btn:hover {
  background-color: #128C7E;
  border-color: #128C7E;
  transform: scale(1.05);
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: #0b1022;
  color: #cbd5e1;
  padding: 28px 0;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========================================
   FLAGS
======================================== */
.flag-ar {
  width: 20px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transform: translateY(-1px);
}

/* ========================================
   HONEYPOT FIELD (ANTI-SPAM)
======================================== */
.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-img-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
