/* TACONI SOLUCIONES HIDRÁULICAS - HYDRO ENERGY & DYNAMIC MODERN COMMERCE */
:root {
  --tac-primary: #355CBB;
  --tac-cyan: #4BB1E2;
  --tac-cyan-glow: #00e1ff;
  --tac-dark-bg: #090e17;
  --tac-dark-surface: #111a29;
  --tac-dark-card: #162235;
  --tac-border-glow: rgba(75, 177, 226, 0.25);
  --tac-text-main: #0f172a;
  --tac-text-muted: #64748b;
  --tac-gradient-hydro: linear-gradient(135deg, #0A192F 0%, #152B52 50%, #1E468A 100%);
  --tac-gradient-neon: linear-gradient(90deg, #4BB1E2 0%, #355CBB 100%);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--tac-text-main);
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Dynamic Announcement Bar */
.announcement-bar-v2 {
  background: linear-gradient(90deg, #00122e 0%, #0d2757 50%, #00122e 100%);
  color: #c7d2fe;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(75, 177, 226, 0.2);
}
.pulse-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Glassmorphism Header */
.navbar-v2 {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 0;
  transition: all 0.3s ease;
}
.brand-glow {
  position: relative;
  border-radius: 50%;
  padding: 2px;
  background: var(--tac-gradient-neon);
}
.brand-glow img {
  border: 2px solid #FFFFFF;
}

.nav-link-v2 {
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155 !important;
  padding: 8px 16px !important;
  border-radius: 25px;
  transition: all 0.25s ease;
}
.nav-link-v2:hover, .nav-link-v2.active {
  color: #FFFFFF !important;
  background: var(--tac-primary);
  box-shadow: 0 4px 15px rgba(53, 92, 187, 0.3);
}

/* Hero Section V2: Immersive Hydro Power */
.hero-v2 {
  background-color: #0a192f;
  background-image: url('imagenes/1000432847.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 110px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(75, 177, 226, 0.30) 0%, transparent 55%),
    linear-gradient(180deg, rgba(9, 14, 23, 0.28) 0%, rgba(9, 14, 23, 0.06) 45%, rgba(9, 14, 23, 0.32) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content-v2 {
  display: flex;
  justify-content: flex-end;
}
.hero-glass-card {
  background: rgba(9, 14, 23, 0.24);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 44px 42px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 560px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7ce8ff;
  background: rgba(13, 39, 87, 0.34);
  border: 1px solid rgba(124, 232, 255, 0.48);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title-v2 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 3px 16px rgba(0, 18, 46, 0.45);
}
.gradient-text-cyan {
  background: linear-gradient(90deg, #64d8ff, #b9f4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 18, 46, 0.35));
}
.hero-search-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.hero-search-box input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 10px 18px;
  font-size: 1rem;
}
.hero-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.hero-search-box input:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #FFFFFF;
}

/* Filter Strip & Interactive Layout */
.filter-card-v2 {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  padding: 20px;
}
.category-chip-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #FFFFFF;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.category-chip-v2:hover {
  border-color: var(--tac-cyan);
  background: #f0f9ff;
  color: var(--tac-primary);
}
.category-chip-v2.active {
  background: var(--tac-primary);
  color: #FFFFFF;
  border-color: var(--tac-primary);
  box-shadow: 0 6px 15px rgba(53, 92, 187, 0.25);
}

/* Product Card Dynamic V2 */
.card-product-v2 {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-product-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(53, 92, 187, 0.15);
  border-color: var(--tac-cyan);
}
.v2-img-container {
  height: 230px;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.v2-img-container img {
  max-height: 190px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.card-product-v2:hover .v2-img-container img {
  transform: scale(1.08) rotate(1deg);
}
.v2-badge-brand {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--tac-primary);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.v2-badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.v2-specs-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.v2-spec-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Floating WhatsApp Dynamic */
.whatsapp-v2-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-v2-bubble:hover {
  transform: scale(1.12) rotate(8deg);
  color: white;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
}

/* Custom Buttons V2 */
.btn-v2-gradient {
  background: var(--tac-gradient-neon);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.btn-v2-gradient:hover {
  background: linear-gradient(90deg, #355CBB 0%, #20409a 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(53, 92, 187, 0.35);
  transform: translateY(-2px);
}
.btn-v2-outline {
  border: 1.5px solid #cbd5e1;
  background: white;
  color: #334155;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.btn-v2-outline:hover {
  border-color: var(--tac-cyan);
  color: var(--tac-primary);
  background: #f0f9ff;
}

/* Gallery */
.gallery-section-v2 {
  background: #ffffff;
}
.gallery-heading-v2 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.gallery-heading-v2 h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.4px;
}
.gallery-video-card-v2,
.gallery-photo-card-v2 {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}
.gallery-video-card-v2 {
  border-radius: 18px;
}
.gallery-video-card-v2 video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a192f;
}
.gallery-media-body-v2 {
  padding: 18px 20px 20px;
}
.gallery-media-body-v2 h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.gallery-media-body-v2 p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
.gallery-photo-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery-photo-card-v2 {
  border-radius: 14px;
  min-width: 0;
}
.gallery-photo-card-v2 img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f5f9;
}
.gallery-photo-card-v2 div {
  padding: 13px 14px 15px;
}
.gallery-photo-card-v2 span {
  display: block;
  color: var(--tac-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.gallery-photo-card-v2 strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.35;
}
@media (max-width: 991.98px) {
  .gallery-heading-v2 {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-photo-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .gallery-photo-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-media-body-v2 {
    padding: 15px;
  }
  .gallery-photo-card-v2 div {
    padding: 11px 12px 13px;
  }
}

/* Field work carousel: show one project card at a time */
#ingenieria .col-lg-7 > .row.g-3 {
  position: relative;
  min-height: 370px;
  margin: 0;
  display: block;
}
#ingenieria .col-lg-7 > .row.g-3 > .col-sm-6 {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  opacity: 0;
  transform: translateX(22px);
  animation: field-card-carousel 8s infinite;
}
#ingenieria .col-lg-7 > .row.g-3 > .col-sm-6:nth-child(2) {
  animation-delay: 4s;
}
#ingenieria .col-lg-7 .rounded-4.overflow-hidden {
  background: #ffffff;
  border-radius: 18px !important;
}
#ingenieria .col-lg-7 img {
  height: 290px !important;
}
@keyframes field-card-carousel {
  0%,
  42% {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }
  50%,
  92% {
    opacity: 0;
    transform: translateX(-22px);
    z-index: 0;
  }
  93% {
    opacity: 0;
    transform: translateX(22px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }
}
@media (max-width: 767.98px) {
  #ingenieria .col-lg-7 > .row.g-3 {
    min-height: 330px;
  }
  #ingenieria .col-lg-7 img {
    height: 230px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ingenieria .col-lg-7 > .row.g-3 > .col-sm-6 {
    animation: none;
  }
  #ingenieria .col-lg-7 > .row.g-3 > .col-sm-6:first-child {
    opacity: 1;
    transform: none;
  }
}

/* Interactive Brand Carousel (1 image at a time) */
.brand-carousel-v2 {
  padding: 0 56px;
}
.brand-viewport-v2 {
  overflow: hidden;
  border-radius: 16px;
}
.brand-track-v2 {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-slide-v2 {
  flex: 0 0 100%;
  padding: 0 6px;
}
.brand-item-v2 {
  background: white;
  border-radius: 14px;
  padding: 16px 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.brand-item-v2:hover {
  border-color: var(--tac-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(75, 177, 226, 0.18);
}
.brand-item-v2 img {
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
}
.brand-arrow-v2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--tac-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 2;
}
.brand-arrow-v2:hover {
  background: var(--tac-primary);
  color: #ffffff;
  border-color: var(--tac-primary);
}
.brand-arrow-prev-v2 {
  left: 0;
}
.brand-arrow-next-v2 {
  right: 0;
}

/* Brand filter badge in catalog toolbar */
.brand-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  background: #eef4ff;
  color: var(--tac-primary);
  border: 1px solid #c7d8f5;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.brand-filter-badge button {
  border: none;
  background: transparent;
  color: var(--tac-primary);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.brand-filter-badge button:hover {
  color: #d33;
}

.taconi-cropper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 35, 0.68);
}

.taconi-cropper-backdrop.is-open {
  display: flex;
}

.taconi-cropper-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(8, 18, 35, 0.35);
}

.taconi-cropper-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 12px;
  background: #071a35;
  cursor: grab;
  touch-action: none;
}

.taconi-cropper-canvas:active {
  cursor: grabbing;
}
