/* =========================================
   Total View - Product Page Styles
   ========================================= */

:root {
  --primary-red: #ff2d24;
  --dark-red: #d61510;
  --bg-black: #050505;
  --card-bg: rgba(15, 15, 15, 0.6);
  --glass-stroke: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #a1a1a8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.text-red {
  color: var(--primary-red);
}

.btn-primary {
  background: var(--primary-red);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--dark-red);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-stroke);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Hero Section ---------- */
.hero-totalview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 0 80px;
  min-height: 100vh;
}

.hero-content {
  flex: 0 0 50%;
  max-width: 600px;
  text-align: left;
}

.hero-kicker {
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
  display: block;
}

.hero-title-main {
  font-size: 5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0 0 5px;
  letter-spacing: -2px;
}

.hero-subtitle-model {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: #fff;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
  font-family: var(--font-heading);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 0 40px;
  line-height: 1.5;
}

.hero-grid-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 10px;
  margin-bottom: 40px;
}

.hf-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

.hf-icon {
  color: var(--primary-red);
  width: 28px;
  height: 28px;
}

.hf-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.hf-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-display {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  transform: translateX(-120px);
  /* Mueve la imagen a la izquierda */
}

.product-display img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
}

.glow-base {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 30px;
  background: var(--primary-red);
  filter: blur(60px);
  opacity: 0.7;
  z-index: 1;
  border-radius: 50%;
  transform: translateX(-80px);
  /* Sigue a la imagen */
}

.floating-features {
  position: absolute;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.float-feat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 45, 36, 0.1);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 45, 36, 0.3);
}

.float-icon svg {
  width: 20px;
  height: 20px;
}

.float-text h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  color: var(--primary-red);
}

.float-text p {
  margin: 0;
  font-size: 0.75rem;
  color: #ffffff;
}

/* ---------- 3 Column Section ---------- */
.triple-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--glass-stroke);
  border-bottom: 1px solid var(--glass-stroke);
}

.col-panel {
  padding: 0 20px;
}

.col-panel.center-border {
  border-left: 1px solid var(--glass-stroke);
  border-right: 1px solid var(--glass-stroke);
}

.panel-title {
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.check-list-col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list-col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: #ddd;
  line-height: 1.4;
}

.check-icon-col {
  width: 16px;
  height: 16px;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.flow-step {
  text-align: center;
  width: 70px;
}

.f-icon {
  height: 40px;
  margin-bottom: 10px;
  color: #fff;
}

.f-icon svg {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.flow-step h5 {
  margin: 0 0 5px;
  font-size: 0.8rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.f-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.modbus-box {
  border: 1px solid var(--glass-stroke);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.5);
}

.modbus-text h4 {
  margin: 0 0 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.modbus-text p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.modbus-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00B1EB;
  font-style: italic;
}

.apps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apps-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #ddd;
}

.app-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-red);
  flex-shrink: 0;
}

/* ---------- Parameters ---------- */
.params-section {
  padding: 80px 0;
  text-align: center;
}

.params-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.param-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.param-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-red);
}

.param-item h4 {
  margin: 0;
  font-size: 0.9rem;
}

.param-item p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Presentations & Data ---------- */
.pres-data-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 0 80px;
}

/* Comparison Cards */
.comparison-section {
  display: flex;
  gap: 30px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.comp-card {
  flex: 1;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--glass-stroke);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.comp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 36, 0.3);
}

.comp-card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 100px;
  background: var(--primary-red);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.comp-img {
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.comp-title {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 8px;
}

.comp-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  height: 40px;
}

.comp-kicker {
  font-size: 0.7rem;
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.comp-action {
  margin-bottom: 40px;
}

.comp-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.comp-icon svg {
  width: 16px;
  height: 16px;
}

.comp-val {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.comp-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.pres-box,
.data-box {
  background: var(--card-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: 16px;
  padding: 40px;
}

.pres-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.pres-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pres-item img {
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.pres-item h4 {
  margin: 0 0 5px;
  color: var(--primary-red);
  font-size: 1.1rem;
}

.pres-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.data-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.data-img {
  flex: 1;
}

.data-img img,
.data-img video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.data-text {
  flex: 1;
}

.data-text p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---------- Bottom CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(20, 0, 0, 0.8), rgba(0, 0, 0, 1));
  border: 1px solid var(--glass-stroke);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.cta-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 100px;
  /* To make room for bg image if needed */
}

.cta-banner h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-family: var(--font-heading);
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.cta-banner-actions {
  position: relative;
  z-index: 2;
}

/* Footer Override */
.site-footer-btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  border-top: 1px solid var(--glass-stroke);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer-btm .social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .hero-totalview {
    flex-direction: column;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle-model,
  .hero-headline,
  .hero-desc,
  .hero-kicker {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-grid-features {
    justify-content: flex-start;
    text-align: left;
  }

  .floating-features {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
  }

  .triple-section {
    grid-template-columns: 1fr;
  }

  .col-panel.center-border {
    border: none;
    border-top: 1px solid var(--glass-stroke);
    border-bottom: 1px solid var(--glass-stroke);
    padding: 40px 0;
  }

  .params-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .pres-data-section {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .cta-banner-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-title-main {
    font-size: 3.5rem;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .params-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pres-content,
  .data-content {
    flex-direction: column;
  }
}