/* Reset y tipografía */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: #1a1a1a;
  background: #f7f7f7;
}

.top-legend {
  width: 100%;
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-on-primary);
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
}

:root {
  --brand-primary: #333333;
  --brand-secondary: #555555;
  --brand-accent: #0078D4;
  --text-on-primary: #ffffff;
}

/* Temas por marca */
.theme-lg {
  --brand-primary: #A50034;
  --brand-secondary: #6D0023;
  --brand-accent: #E0004D;
  --text-on-primary: #ffffff;
}
.theme-samsung {
  --brand-primary: #1428A0;
  --brand-secondary: #0C1E6E;
  --brand-accent: #00AEEF;
  --text-on-primary: #ffffff;
}
.theme-whirlpool {
  --brand-primary: #FFC20E;
  --brand-secondary: #000000;
  --brand-accent: #2D2D2D;
  --text-on-primary: #000000;
}
.theme-mabe {
  --brand-primary: #00A1B4;
  --brand-secondary: #004B61;
  --brand-accent: #00C3D4;
  --text-on-primary: #ffffff;
}
.theme-subzero {
  --brand-primary: #3A5A78;
  --brand-secondary: #1F2E3A;
  --brand-accent: #00A3E0;
  --text-on-primary: #ffffff;
}
.theme-maytag {
  --brand-primary: #002D5A;
  --brand-secondary: #0057A3;
  --brand-accent: #0078D4;
  --text-on-primary: #ffffff;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
}

.brand-bar .brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-secondary);
}

.brand-pill {
  display: inline-block;
  height: 12px;
  width: 12px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-secondary) inset;
}

.hero {
  color: var(--text-on-primary);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  padding: 64px 24px;
}

.hero .container {
  padding: 0;
}

.hero h1 {
  margin: 0 0 12px 0;
  font-size: 42px;
  line-height: 1.1;
}

.hero p {
  margin: 0 0 24px 0;
  font-size: 18px;
  opacity: 0.95;
}

.legend {
  display: inline-block;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  color: var(--text-on-primary);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 8px 12px;
}

.brand-banner {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-accent);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--text-on-primary);
  backdrop-filter: blur(2px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -28px;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

.feature-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #555;
}

.products {
  margin-top: 32px;
}

.products h2 {
  margin: 0 0 12px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.product-card .thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card .body {
  padding: 12px 14px;
}

.service-icon {
  width: 64px;
  height: 64px;
  opacity: 0.95;
}

.product-card .body h4 { margin: 0 0 6px 0; }
.product-card .body p { margin: 0; color: #666; }

.footer {
  margin-top: 40px;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  border-top: 4px solid var(--brand-primary);
  color: var(--text-on-primary);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}

/* Cards en el índice */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #ffffff;
}

.landing-card .head {
  padding: 16px;
  color: var(--text-on-primary);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.landing-card .body {
  padding: 16px;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.link {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--brand-secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
}

.info {
  margin-top: 32px;
}

.info h2 {
  margin: 0 0 12px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
}

.info-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.footer .contact {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.footer .contact a {
  color: var(--text-on-primary);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}
 
.footer .headline {
  font-weight: 700;
  color: var(--text-on-primary);
  margin-bottom: 10px;
}

.footer .legal {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.gallery {
  margin-top: 32px;
}

.gallery h2 { margin: 0 0 12px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  grid-column: span 4;
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item.tall img { height: 220px; }

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 1000;
  background: transparent;
  padding: 0;
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.btn-call {
  background: var(--brand-accent);
  color: #ffffff;
}

@media (max-width: 600px) {
  .info-grid { grid-template-columns: 1fr; }
  .floating-cta {
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
  }
  .footer .contact { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
}
.image-sections { margin-top: 28px; display: grid; gap: 16px; }
.image-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}
.image-section.alt { grid-template-columns: 1fr 1.2fr; }
.image-section .media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.image-section .content { padding: 16px; }
.image-section .content h3 { margin: 0 0 8px 0; }
.image-section .content p { margin: 0; color: #555; }

@media (max-width: 900px) {
  .image-section, .image-section.alt { grid-template-columns: 1fr; }
  .image-section .media img { height: 220px; }
}
.faq {
  margin-top: 32px;
}
.faq h2 { margin: 0 0 12px 0; }
.faq details {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq details[open] { box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--brand-secondary);
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
}
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding: 14px 16px; color: #555; }
/* Floating round action buttons */
.floating-cta .btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.6);
}
.floating-cta .btn svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}
.floating-cta .btn-whatsapp { background: #25D366; }
.floating-cta .btn-call { background: var(--brand-accent); }

/* Timeline */
.timeline { margin-top: 32px; }
.timeline h2 { margin: 0 0 12px 0; }
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.timeline-step {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.timeline-step .num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-step h4 { margin: 0 0 6px 0; }
.timeline-step p { margin: 0; color: #555; }
@media (max-width: 900px) { .timeline-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .timeline-steps { grid-template-columns: 1fr; } }
 .timeline .cta-row { display: none; }
 .footer .cta-row { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
 .footer .cta-row .btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.6); }
 .footer .cta-row .btn svg { width: 22px; height: 22px; fill: #ffffff; }
.issues { margin-top: 32px; }
 .issues h2 { margin: 0 0 8px 0; }
 .issues p { margin: 0 0 12px 0; color: #555; }
 .issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
 .issue-card { background: #ffffff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
 .issue-card h4 { margin: 0 0 6px 0; }
 .issue-card p { margin: 0; color: #555; }
 @media (max-width: 900px) { .issue-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .issue-grid { grid-template-columns: 1fr; } }
 .article-hero { margin: 16px 0 24px; }
 .article-hero img { width: 100%; border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
 .image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
 .image-grid img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
 @media (max-width: 900px) { .image-grid { grid-template-columns: 1fr 1fr; } }
 @media (max-width: 600px) { .image-grid { grid-template-columns: 1fr; } }
section.hero { padding: 40px 0; background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary)); color: var(--text-on-primary); }
section.hero .cta { display: flex; gap: 12px; margin-top: 16px; }
section.hero h1 { margin: 0; font-size: 32px; }
section.hero p { margin: 8px 0 0 0; opacity: 0.95; }
form#contact-form .product-card .body { display: flex; flex-direction: column; gap: 6px; }
form#contact-form label { font-weight: 600; }
input[type="text"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 12px; background: #ffffff; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
input[type="text"]:focus, input[type="tel"]:focus, textarea:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 4px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.08); }
.input-group { position: relative; }
.input-group .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.input-group .icon svg { width: 18px; height: 18px; fill: var(--brand-secondary); }
.input-group input, .input-group select, .input-group textarea { padding-left: 40px; }
select { width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 12px; background: #ffffff; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
select:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 4px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.08); }
.product-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
button.btn.btn-primary { padding: 12px 18px; border-radius: 10px; }
@media (max-width: 600px) { section.hero { padding: 24px 0; } section.hero h1 { font-size: 24px; } }
