/* ===== ONE-PAGE: offset de anclas bajo navbar sticky ===== */
section[id] { scroll-margin-top: 78px; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta basada en el isologo de Tecno Service SRL (azul marino + blanco) */
  --primary:       #123a66;
  --primary-dark:  #081b30;
  --secondary:     #2c6ba0;
  --accent:        #1f78b4;
  --accent-light:  #7ec1ea;
  --dark:          #081b30;
  --light:         #f2f6fa;
  --text:          #222c38;
  --muted:         #5c6b7a;
  --white:         #fff;
  --border:        #dde5ef;
  --radius:    6px;
  --shadow:    0 4px 18px rgba(10,30,55,0.12);
  --transition: 0.25s ease;
  --font: 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--light); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #175f8f; border-color: #175f8f; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: #155a8a; border-color: #155a8a; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 12px rgba(8,27,48,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-tagline {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(18,58,102,0.08);
  color: var(--primary);
}

.nav-links .btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  margin-left: 8px;
}
.nav-links .btn-nav:hover { background: #175f8f; color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #1a5276 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(126,193,234,0.16);
  border: 1px solid rgba(126,193,234,0.45);
  color: var(--accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent-light); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  gap: 16px;
}

.about-img-placeholder p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 0.8rem; }

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-content p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }

.about-features { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature span { color: var(--text); font-size: 0.94rem; }

/* ===== PRODUCTS TABLE ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.product-card:hover { transform: translateY(-3px); }

.product-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 28px 24px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon { font-size: 2.2rem; }

.product-header h3 { font-size: 1.1rem; font-weight: 700; }
.product-header p { font-size: 0.83rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

.product-body { padding: 24px; }

.product-list { display: flex; flex-direction: column; gap: 8px; }

.product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.product-item:last-child { border-bottom: none; }

.product-item::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong { display: block; font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.contact-item-text span { font-size: 0.9rem; color: var(--muted); }

/* ===== FORM ===== */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30,111,163,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .brand-name { color: var(--white); font-size: 1.2rem; }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 64px 0;
  color: var(--white);
  text-align: center;
}

.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.8); }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ===== ALERT / TOAST ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 0.92rem;
  display: none;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== BRAND LOGO IMAGE ===== */
.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* Wordmark de respaldo para fondos oscuros (footer), replica la estética del logo */
.brand-wordmark {
  display: inline-block;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--white);
  margin-bottom: 14px;
}
/* Logo real sobre fondo oscuro (footer): chip blanco de respaldo, ya que el archivo del logo no tiene fondo transparente */
.footer-logo-badge {
  display: inline-block;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.footer-logo-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.brand-wordmark small {
  font-size: 0.6rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: 4px;
  letter-spacing: 1px;
}

/* ===== CATÁLOGO DE SELLOS ===== */
.catalog-category { margin-bottom: 58px; }
.catalog-category:last-child { margin-bottom: 0; }

.category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.category-heading h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.category-heading .category-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.category-note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 720px;
  margin: 0 0 26px;
  line-height: 1.7;
}

.seal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.seal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.seal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(8,27,48,0.14);
}

.seal-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-icon { width: 32px; height: 32px; color: var(--primary); }

.seal-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.seal-card-body .seal-aka {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.seal-card-body p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

.seal-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.seal-tag.tag-hidraulico { background: rgba(18,58,102,0.10); color: var(--primary); }
.seal-tag.tag-neumatico  { background: rgba(31,120,180,0.12); color: var(--accent); }
.seal-tag.tag-ambos      { background: rgba(92,107,122,0.14); color: var(--muted); }

.catalog-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 0;
}
.catalog-toc a {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
}
.catalog-toc a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-badge { bottom: 16px; right: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border); flex-direction: column; padding: 16px;
    box-shadow: 0 8px 20px rgba(8,27,48,0.12); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; }
  .hamburger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .seal-grid { grid-template-columns: 1fr; }
  .category-heading h3 { font-size: 1.1rem; }
}
