/* ============================================
   V2 - Modern Content / Page Layout
   ============================================ */

.page-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card__header--blue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-bottom: none;
}
.card__header--blue h1,
.card__header--blue h2,
.card__header--blue h3 {
  color: var(--text-inverse);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card__body {
  padding: 24px;
}

.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-alt);
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-col__media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.two-col__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.two-col__text {
  min-width: 0;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url('../imagenes/flecha.jpg') no-repeat center center;
  background-size: contain;
  margin-top: 2px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.product-card img {
  margin: 0 auto 12px;
  max-height: 100px;
  width: auto;
  border-radius: var(--radius-sm);
}

.product-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Spec table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.spec-table caption {
  background: var(--surface-blue);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.spec-table td {
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.spec-table tr:hover td {
  background: var(--surface-blue);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* Ficha table */
.ficha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ficha-table th {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.ficha-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.ficha-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

/* Links bar */
.links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.links-bar a {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Back link */
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Home button in internal pages */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
  text-decoration: none;
}

.home-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Section title */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Construction notice */
.construction-notice {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.construction-notice::before {
  content: '🔧';
  display: block;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* Welcome section */
.welcome-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--surface-blue) 0%, var(--surface) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.welcome-hero__img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.welcome-hero__text h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.welcome-hero__text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-content { padding: 20px 16px; }
  .card__body { padding: 16px; }
  .card__header { padding: 12px 16px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card { padding: 16px 12px; }
  .welcome-hero { grid-template-columns: 1fr; padding: 20px; }
  .welcome-hero__img { max-width: 200px; margin: 0 auto; }
  .spec-table { font-size: 0.78rem; }
  .spec-table th, .spec-table td { padding: 4px 6px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { padding: 12px 8px; }
  .product-card img { max-height: 70px; }
}
