/* ==========================================================================
   Pimp My TIG Brush Argentina - Custom Design & Compliance Stylesheet
   Jurisdicción: CABA & Gran Buenos Aires, Argentina
   Normas: ASTM A967, ASTM A380, ASME BPE, IRAM
   ========================================================================== */

/* --- 1. Viewport & Overflow Safety (Patches 3.11, 7.2) --- */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  background-color: #0a0a0f !important;
  color: #e8e8ed !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}

/* Long Spanish technical word protection (Patch 3.13) */
h1, h2, h3, h4, h5, h6, p, a, span, li, button {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* --- 2. Bootstrap Defensive Reset & Nav Structure (Patch 3.9) --- */
ul.navbar-nav, .navbar-nav {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.navbar-nav li, .navbar-nav > li, .navbar-nav .nav-item {
  list-style: none !important;
}

/* Nav links styling */
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.logo span {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #00f0ff;
  letter-spacing: 1px;
}

/* Dropdown Sub-menus */
.nav-item-dropdown {
  position: relative;
}

.sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 280px !important;
  background: #111422 !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px !important;
  padding: 10px 0 !important;
  list-style: none !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  z-index: 10000 !important;
}

.nav-item-dropdown:hover .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.sub-menu li a {
  display: block !important;
  padding: 10px 20px !important;
  color: #cbd5e1 !important;
  font-size: 0.90rem !important;
  font-family: 'Outfit', sans-serif !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
  white-space: nowrap !important;
}

.sub-menu li a:hover {
  background: rgba(0, 240, 255, 0.12) !important;
  color: #00f0ff !important;
}

/* Topbar Header */
.topbar-metal {
  background: #06080e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  padding: 6px 4%;
  color: #94a3b8;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-info a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-info a:hover {
  color: #00f0ff;
}

.topbar-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Safe Subpage Padding (Item 3.5.4) */
.subpage-hero {
  padding-top: 150px !important;
  padding-bottom: 60px !important;
  position: relative !important;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #00f0ff;
  text-decoration: none;
}

/* --- 3. White Ticker Transformation (Patch 3.10) --- */
.ticker-section {
  width: 100%;
  background: #070912;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 20;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 48s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  padding: 0 24px;
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #00f0ff;
  border-radius: 50%;
  margin-left: 24px;
  box-shadow: 0 0 8px #00f0ff;
}

/* --- 4. Elastic Content & Flex Cards (Patch 3.13) --- */
.service-card-elastic, .feature-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.service-card-elastic:hover, .feature-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12) !important;
}

.card-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.card-img-wrap img {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease;
}

.service-card-elastic:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-content-wrap {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.card-content-wrap p {
  flex-grow: 1 !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  margin-bottom: 20px !important;
}

.card-action-wrap {
  margin-top: auto !important;
}

/* --- 5. Form Controls & Custom Interactive Styling (Patch 3.7) --- */
.metal-input, .metal-select, select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100% !important;
  display: block !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-family: 'Outfit', sans-serif !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: #111422 !important;
  color: #e2e8f0 !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

select, .metal-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300f0ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

.metal-input:focus, select:focus, input:focus, textarea:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25) !important;
}

textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* iOS Safari font-size >= 16px to prevent zoom (Patch 7.5) */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    font-size: 16px !important;
  }
}

/* Primary Button */
.btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00f0ff;
  color: #0a0a0f !important;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.90rem;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 46px;
}

.btn-cyan:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #00f0ff !important;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.90rem;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #00f0ff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  min-height: 46px;
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

/* --- 6. Passivation Simulator Box --- */
.calc-box {
  background: #101423;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .calc-row {
    grid-template-columns: 1fr;
  }
}

.calc-result-tile {
  background: #090c16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.calc-val-large {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  color: #00f0ff;
  font-weight: 700;
  margin: 10px 0;
}

/* --- 7. Table Responsive Styling --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.metal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.metal-table th {
  background: #111827;
  color: #00f0ff;
  font-family: 'Space Mono', monospace;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
}

.metal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.metal-table tr:hover td {
  background: rgba(0, 240, 255, 0.05);
}

/* --- 8. AFIP & Footer Compliance Styling --- */
.footer-afip-badge {
  display: inline-block;
  margin-top: 15px;
  transition: transform 0.2s ease;
}

.footer-afip-badge:hover {
  transform: scale(1.03);
}

.footer-afip-img {
  width: 130px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.footer-legal-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  text-decoration: none;
  margin-right: 18px;
  transition: color 0.2s;
  display: inline-block;
  padding: 4px 0;
}

.footer-legal-links a:hover {
  color: #00f0ff;
}

/* Floating WhatsApp button (Item 7.8) */
.wa-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.25s ease;
  color: #ffffff !important;
}

.wa-float-btn:hover {
  transform: scale(1.1);
}

/* Modals & Alert Feedback */
.modal-feedback {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-feedback.active {
  display: flex;
}

.modal-box-inner {
  background: #101423;
  border: 1px solid #00f0ff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}
