/* ============================================================
   DataWay — Home (datawaycomputacion.com.ar)
   Requiere: dataway-ui.css  (tokens --dw-*, componentes .dw-*)
   El <body> lleva class="dw dw--home"
   ============================================================ */

* { box-sizing: border-box; }

/* ===== BARRA ANUNCIANTE (Sistema AFIP) ===== */
.promo-bar {
  position: relative;
  background: linear-gradient(90deg, #f59e0b, #f97316 55%, #f59e0b);
  color: #1a1205;
  font-family: var(--dw-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 44px 9px 16px;
  min-height: 40px;
  text-align: center;
}
.promo-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: #1a1205;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}
.promo-bar__link:hover { color: #1a1205; }
.promo-bar__link:hover .promo-bar__cta { gap: 10px; text-decoration: underline; }
.promo-bar__flag { font-size: 1.05rem; line-height: 1; }
.promo-bar__text strong { font-weight: 800; }
.promo-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
  transition: gap 0.25s ease;
}
.promo-bar__cta i { font-size: 0.72rem; }
.promo-bar__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 18, 5, 0.15);
  border: none;
  color: #1a1205;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.promo-bar__close:hover { background: rgba(26, 18, 5, 0.3); }

@media (max-width: 640px) {
  .promo-bar { padding: 8px 40px 8px 12px; }
  .promo-bar__link { font-size: 0.8rem; gap: 6px; }
  .promo-bar__cta { width: 100%; justify-content: center; margin-top: 2px; }
}

/* ===== TOPBAR ===== */
.topbar {
  background: rgba(13,15,20,0.95);
  border-bottom: 1px solid var(--dw-card-border);
  padding: 10px 0;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--dw-text-muted);
  padding: 2px 10px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--dw-primary);
  border-color: var(--dw-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--dw-primary-glow);
}
.topbar-social { display: flex; gap: 15px; align-items: center; }
.topbar-social a { color: var(--dw-text-muted) !important; transition: all 0.3s; }
.topbar-social a:hover { color: var(--dw-primary) !important; filter: drop-shadow(0 0 6px var(--dw-primary-glow)); }

/* ===== NAVBAR (estilos base — menu.css los extiende) ===== */
#mainNav {
  background: rgba(13,15,20,0.95) !important;
  border-bottom: 1px solid var(--dw-card-border);
  backdrop-filter: blur(14px);
}

/* ===== CAROUSEL ===== */
.custom-carousel { margin-top: 0; position: relative; }
.custom-carousel .carousel-item {
  height: 65vh;
  min-height: 420px;
  overflow: hidden;
}
.custom-carousel .carousel-item img {
  position: absolute; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block !important;
  z-index: 1;
  filter: brightness(0.7) saturate(0.9);
}
.custom-carousel .carousel-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,15,20,0.55) 0%, rgba(79,142,247,0.08) 100%);
  z-index: 2;
}
.custom-carousel .carousel-caption {
  bottom: 50%; transform: translateY(50%);
  text-align: left; z-index: 10;
}
.custom-carousel .carousel-caption h1,
.custom-carousel .carousel-caption .carousel-h {
  font-family: var(--dw-font-head);
  font-weight: 700; font-size: 3rem; margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 0 40px rgba(79,142,247,0.6);
  animation: fadeSlideUp 0.8s ease forwards;
}
.custom-carousel .carousel-caption p {
  font-size: 1.15rem; font-weight: 300;
  max-width: 580px; color: rgba(255,255,255,0.8);
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== INTRO / H1 ===== */
.intro-section {
  padding: 56px 0 44px;
  background: var(--dw-bg);
  text-align: center;
}
.intro-section .container { max-width: 820px; }
.intro-title {
  font-family: var(--dw-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  line-height: 1.22;
  color: var(--dw-text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.intro-lead {
  color: var(--dw-text-soft);
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}
.intro-lead strong { color: var(--dw-text); font-weight: 700; }

/* Bajada corta bajo el título de sección (va DEBAJO del h2, sin solaparse) */
.section-intro {
  text-align: center;
  color: var(--dw-text-muted);
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 45px;
}

/* ===== SECCIONES ===== */
.services-section  { padding: 90px 0; background: var(--dw-bg-section); }
.products-section  { padding: 80px 0; background: var(--dw-bg-alt); }
.contact-section   { padding: 90px 0; background: var(--dw-bg-section); }

/* ===== FAQ ===== */
.faq-section { padding: 90px 0; background: var(--dw-bg-alt); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--dw-card);
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--dw-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dw-text);
  list-style: none;
  position: relative;
  padding-right: 46px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dw-primary);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--dw-primary); }
.faq-answer {
  padding: 0 22px 18px;
  color: var(--dw-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer a { color: var(--dw-primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

.section-title {
  font-weight: 700; text-align: center;
  margin: 0 0 55px; color: var(--dw-text);
  position: relative; letter-spacing: -0.5px;
}
.section-title::after {
  content: '';
  display: block; width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--dw-accent), transparent);
  margin: 14px auto 0; border-radius: 2px;
}
/* Si hay bajada tras el título, el título respira menos abajo */
.section-title + .section-intro { margin-top: 0; }
.services-section .section-title { margin-bottom: 22px; }

/* ===== CARDS SERVICIOS ===== */
.service-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  margin-bottom: 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dw-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79,142,247,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(79,142,247,0.08);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrapper {
  width: 70px; height: 70px;
  margin: 0 auto 22px;
  background: rgba(79,142,247,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dw-primary);
  font-size: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(79,142,247,0.2);
}
.service-card:hover .service-icon-wrapper {
  background: var(--dw-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--dw-primary-glow);
}
.service-title {
  font-weight: 600; font-size: 1.15rem;
  margin-bottom: 12px; color: var(--dw-text);
}
.service-description { color: var(--dw-text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ===== CARDS PRODUCTOS ===== */
.product-card {
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: var(--dw-card);
  transition: all 0.4s ease;
  margin-bottom: 30px;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,142,247,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.product-img { height: 250px; object-fit: cover; width: 100%; filter: brightness(0.85); transition: filter 0.4s; }
.product-card:hover .product-img { filter: brightness(1); }
.product-card .card-body { padding: 25px; background: var(--dw-card); }
.product-card h4 { font-weight: 600; color: var(--dw-text); }
.product-card p, .product-card small { color: var(--dw-text-muted); }

/* ===== NUESTROS SISTEMAS ===== */
.systems-section { padding: 90px 0; background: var(--dw-bg-section); }
.system-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius);
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.system-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dw-primary), #7ab4ff);
  opacity: 0;
  transition: opacity 0.4s;
}
.system-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,142,247,0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 30px rgba(79,142,247,0.1);
}
.system-card:hover::before { opacity: 1; }
.system-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--dw-primary);
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}
.system-card:hover .system-icon {
  background: var(--dw-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--dw-primary-glow);
}
.system-card h4 { font-weight: 600; font-size: 1.1rem; color: var(--dw-text); margin-bottom: 6px; }
.system-card .system-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--dw-primary);
  margin-bottom: 14px; display: block;
}
.system-card p { color: var(--dw-text-muted); font-size: 0.92rem; line-height: 1.65; flex-grow: 1; margin-bottom: 20px; }
.system-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dw-primary); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: gap 0.3s ease;
}
.system-link:hover { gap: 12px; color: #7ab4ff; }
.system-link i { font-size: 0.8rem; }

/* ===== TESTIMONIOS ===== */
.testimonios-section { padding: 90px 0; background: var(--dw-bg-alt); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}
.testimonio-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonio-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: #f5a623;
  font-size: 0.82rem;
}
.testimonio-card .quote {
  color: var(--dw-text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0 0 22px;
  flex-grow: 1;
}
.testimonio-card .quote::before { content: '\201C'; color: var(--dw-primary); font-size: 1.4rem; margin-right: 2px; }
.testimonio-autor { display: flex; align-items: center; gap: 12px; }
.testimonio-autor .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dw-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonio-autor .datos strong { display: block; color: var(--dw-text); font-size: 0.92rem; }
.testimonio-autor .datos span { color: var(--dw-text-muted); font-size: 0.82rem; }

@media (max-width: 900px) {
  .testimonios-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .testimonios-section { padding: 56px 0; }
}

/* ===== INSTAGRAM ===== */
.instagram-section { padding: 90px 0; background: var(--dw-bg); }
.instagram-embed-wrapper { display: flex; justify-content: center; width: 100%; }
.instagram-embed-wrapper blockquote.instagram-media {
  margin: 0 auto !important;
  max-width: 700px !important;
  min-width: 326px !important;
  width: 100% !important;
}
.instagram-embed-wrapper iframe { max-width: 700px !important; }
.instagram-cta { margin-top: 34px; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff !important;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(220,39,67,0.3);
}
.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(220,39,67,0.45);
  color: #fff !important;
}

/* ===== CONTACTO ===== */
.contact-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-card-border);
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.contact-info li {
  margin-bottom: 15px; color: var(--dw-text-muted);
  list-style: none;
}
.contact-info li i { color: var(--dw-primary); margin-right: 10px; font-size: 18px; }
.contact-section h4 { color: var(--dw-text); }
.contact-section .text-muted { color: var(--dw-text-muted) !important; }

.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 50%;
  color: var(--dw-primary) !important;
  font-size: 17px;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: var(--dw-primary);
  color: #fff !important;
  box-shadow: 0 0 20px var(--dw-primary-glow);
  transform: translateY(-3px);
}

.form-control {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 15px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--dw-text);
  transition: all 0.3s;
}
.form-control::placeholder { color: var(--dw-text-muted); }
.form-control:focus {
  background: rgba(79,142,247,0.07);
  border-color: var(--dw-primary);
  color: var(--dw-text);
  box-shadow: 0 0 0 3px var(--dw-primary-glow);
}
.btn-submit {
  background: var(--dw-primary);
  border: none;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  width: 100%;
  color: white;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: var(--dw-primary-dark);
  box-shadow: 0 0 20px var(--dw-primary-glow);
  transform: translateY(-2px);
}

/* ===== WHATSAPP BTN ===== */
.btnWhatsapp {
  width: 52px; height: 52px;
  position: fixed;
  background-color: #25d366;
  font-size: 28px !important;
  color: #FFF !important;
  border-radius: 50%;
  bottom: 22px; right: 22px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all 0.3s;
  z-index: 9000;
  text-decoration: none;
}
.btnWhatsapp:hover {
  transform: scale(1.12);
  color: #FFF !important;
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}

/* ===== ANIMACIONES SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dw-bg); }
::-webkit-scrollbar-thumb { background: rgba(79,142,247,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dw-primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .custom-carousel .carousel-item { height: 50vh; min-height: 320px; }
  .custom-carousel .carousel-caption h1, .custom-carousel .carousel-caption .carousel-h { font-size: 2rem; }
  .custom-carousel .carousel-caption p  { font-size: 1rem; }
  .services-section, .contact-section { padding: 60px 0; }
  .products-section { padding: 50px 0; }
  .contact-card { padding: 30px 20px; }
}

@media (max-width: 767px) {
  .custom-carousel .carousel-item { height: 45vh; min-height: 260px; }
  .custom-carousel .carousel-caption { text-align: center; padding: 0 15px; }
  .custom-carousel .carousel-caption h1, .custom-carousel .carousel-caption .carousel-h { font-size: 1.4rem; margin-bottom: 10px; }
  .custom-carousel .carousel-caption p  { font-size: 0.9rem; max-width: 100%; }

  .services-section, .contact-section { padding: 45px 0; }
  .products-section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; margin-bottom: 35px; }

  .service-card { padding: 25px 18px; margin-bottom: 20px; }
  .service-card:hover { transform: none; }

  .product-img { height: 180px; }
  .product-card .card-body { padding: 18px; }
  .product-card:hover { transform: none; }

  .contact-card { padding: 25px 15px; border-radius: 10px; }
  .contact-info li { font-size: 14px; }

  .topbar .container { flex-direction: column; gap: 8px; }
  .topbar-social { gap: 12px; }

  .btn-submit { padding: 12px; font-size: 15px; }
  .form-control { padding: 10px 12px; margin-bottom: 12px; }

  .btnWhatsapp { width: 46px; height: 46px; font-size: 24px !important; bottom: 15px; right: 15px; }

  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3,
  .reveal-delay-4, .reveal-delay-5, .reveal-delay-6 { transition-delay: 0s; }
}

@media (max-width: 480px) {
  .custom-carousel .carousel-caption h1, .custom-carousel .carousel-caption .carousel-h { font-size: 1.2rem; }
  .custom-carousel .carousel-caption { display: block !important; }
  .section-title { font-size: 1.2rem; }
  .service-title { font-size: 1rem; }
}
