/* ============================================
   HERRAMIENTAS / TOOL — DEDICATED TOOL PAGE
   public/css/herramientas/tool.css
   ============================================ */


/* ============================================
   SECTION HEADER
   ============================================ */
.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 560px;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
  }
}


/* ============================================
   HERO
   ============================================ */
.tool-hero {
  position: relative;
  padding: var(--space-16) 0;
  background: var(--bg-page);
  overflow: hidden;
}

.tool-hero-grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
  pointer-events: none;
}

.tool-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: 40px;
}

.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.tool-hero-icon {
  font-size: 1.1rem;
}

.badge-coming {
  background: var(--warning-bg);
  color: var(--warning);
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tool-hero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.tool-hero-sub {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.tool-hero-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.tool-price-amount {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.tool-price-period,
.tool-price-divider,
.tool-price-mxn {
  font-size: var(--font-size-base);
  color: var(--text-light);
}

.tool-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.tool-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.tool-hero-trust span {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Right column — problem + who it's for */
.tool-hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tool-hero-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.tool-hero-problem-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.tool-hero-problem-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.tool-hero-for {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.tool-hero-for-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

.tool-hero-for-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-hero-for-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26,122,74,0.15);
}

@media (min-width: 768px) {
  .tool-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-12);
  }

  .tool-hero-content {
    flex: 1;
  }

  .tool-hero-right {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
  }
}


/* ============================================
   VIDEO
   ============================================ */
.tool-video {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tool-video-container {
  max-width: 960px;
  margin: 0 auto;
}

.tool-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  margin: 0 auto;
}

.tool-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video tabs — only visible when multiple videos */
.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  justify-content: center;
}

.video-tab {
  padding: 8px 18px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.video-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.video-frame {
  display: none;
}

.video-frame.active {
  display: block;
}

@media (min-width: 768px) {
  .tool-video-container {
    max-width: 960px;
  }
}


/* ============================================
   SCREENSHOTS
   ============================================ */
.tool-screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.tool-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tool-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.tool-screenshot figcaption {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

@media (min-width: 768px) {
  .tool-screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   FEATURES
   ============================================ */
.tool-features-section {
  padding: var(--space-16) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tool-features-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.tool-features-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: var(--space-2);
}

.tool-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.tool-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.tool-feature-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.tool-feature-check {
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (min-width: 768px) {
  .tool-features-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

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

@media (min-width: 1024px) {
  .tool-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================
   PDF SAMPLES
   ============================================ */
.tool-pdfs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.tool-pdf-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tool-pdf-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.tool-pdf-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tool-pdf-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-pdf-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.tool-pdf-sub {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .tool-pdfs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   PRICING CTA
   ============================================ */
.tool-pricing-cta {
  padding: var(--space-16) 0;
  background: var(--bg-dark);
}

.tool-pricing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.tool-pricing-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.tool-pricing-left h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.tool-pricing-left > p {
  color: var(--gray-300);
  margin-bottom: var(--space-5);
}

.tool-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.price-big {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.price-per {
  font-size: var(--font-size-xl);
  color: var(--gray-500);
}

.tool-pricing-note {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin: 0;
}

.tool-pricing-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
}

.tool-pricing-sub {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .tool-pricing-card {
    flex-direction: row;
    align-items: center;
  }

  .tool-pricing-left {
    flex: 1;
  }

  .tool-pricing-right {
    width: 280px;
    flex-shrink: 0;
  }
}


/* ============================================
   OTHER TOOLS
   ============================================ */
.tool-others {
  padding: var(--space-16) 0;
}

.tool-others-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tool-other-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tool-other-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
  color: var(--text-primary);
}

.tool-other-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-other-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tool-other-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.tool-other-price {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.tool-other-soon {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tool-other-arrow {
  color: var(--gray-300);
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast);
}

.tool-other-card:hover .tool-other-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

@media (min-width: 768px) {
  .tool-others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tool-others-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  padding: var(--space-16) 0 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-brand .navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand .logo-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand {
    max-width: 220px;
  }

  .footer-links {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
  }
}


/* ============================================
   UTILITY
   ============================================ */
.btn-full {
  color: white;
}