﻿/* ===== ESTERILIZADORDECEPILLODEDIENTES.ES  STYLE.CSS ===== */
:root {
  --primary: #1e8a6e;
  --primary-dark: #146352;
  --primary-light: #e5f5f1;
  --bg: #f4faf8;
  --border: #d2e8e2;
  --text: #1a2e28;
  --text-muted: #5a7a72;
  --white: #ffffff;
  --shadow: rgba(30,138,110,0.10);
  --overlay: rgba(20,90,70,0.85);
  --footer-bg: #0d3d2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* HEADER */
header {
  background: var(--footer-bg);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-icon { font-size: 1.6rem; }
.logo span { color: #5ddfb8; }
.logo-sub { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.6); }
nav { display: flex; gap: 6px; }
nav a { color: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; transition: background 0.2s; }
nav a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--footer-bg) 0%, #1e5c48 60%, var(--primary) 100%); color: #fff; padding: 80px 24px 90px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 16px; }
.hero h1 strong { color: #5ddfb8; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btn { background: #fff; color: var(--primary-dark); padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; }
.hero-btn:hover { background: #e0faf2; text-decoration: none; transform: translateY(-1px); }
.hero-btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; padding: 12px 26px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.hero-btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* INFO STRIP */
.info-strip { background: var(--primary); display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.info-item { display: flex; align-items: center; gap: 10px; padding: 16px 28px; color: #fff; border-right: 1px solid rgba(255,255,255,0.2); }
.info-item:last-child { border-right: none; }
.info-icon { font-size: 1.5rem; }
.info-item strong { display: block; font-size: 0.95rem; }
.info-item small { font-size: 0.75rem; opacity: 0.85; }

/* SECTIONS */
.section { padding: 60px 24px; }
.bg-white-section { background: var(--white); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 36px; font-size: 0.95rem; }

/* FILTER BAR */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.filter-btn { padding: 7px 18px; border-radius: 20px; border: 2px solid var(--border); background: var(--white); color: var(--text-muted); font-size: 0.88rem; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* PRODUCT GRID */
.products-grid, .featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

/* PRODUCT CARD */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; box-shadow: 0 2px 8px var(--shadow); }
.card:hover { box-shadow: 0 6px 24px var(--shadow); transform: translateY(-3px); }
.card-img-wrap { position: relative; overflow: hidden; background: #f0f9f6; height: 220px; display: flex; align-items: center; justify-content: center; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.3s; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-overlay { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.card:hover .card-img-overlay { opacity: 1; }
.card-img-overlay span { background: #fff; color: var(--primary-dark); padding: 9px 18px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; transform: translateY(8px); transition: transform 0.3s; }
.card:hover .card-img-overlay span { transform: translateY(0); }
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.card-name { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.card-name a { color: var(--text); transition: color 0.2s; }
.card-name a:hover { color: var(--primary); text-decoration: none; }
.card-rating-row { display: flex; align-items: center; gap: 6px; }
.card-stars { color: #f0a500; font-size: 0.9rem; }
.card-vote { font-size: 0.78rem; color: var(--text-muted); }
.card-footer-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.btn-amazon { display: inline-flex; align-items: center; gap: 5px; background: #ff9900; color: #111; padding: 7px 14px; border-radius: 6px; font-weight: 700; font-size: 0.82rem; transition: background 0.2s, transform 0.1s; white-space: nowrap; }
.btn-amazon:hover { background: #e88a00; text-decoration: none; transform: scale(1.03); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 6px 20px var(--shadow); transform: translateY(-2px); }
.blog-card-link { display: block; color: inherit; }
.blog-card-link:hover { text-decoration: none; }
.blog-card-img { background: var(--primary-light); height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 16px 20px; }
.blog-cat { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.blog-read-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* HOW SECTION */
.how-section { background: var(--primary-light); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.how-card { background: var(--white); border-radius: 12px; padding: 24px 20px; text-align: center; border: 1px solid var(--border); }
.how-icon { font-size: 2rem; margin-bottom: 12px; }
.how-card h3 { font-size: 1rem; margin-bottom: 8px; }
.how-card p { font-size: 0.88rem; color: var(--text-muted); }

/* FAQ */
.faq-section { }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
.faq-q { padding: 16px 20px; font-weight: 600; cursor: pointer; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 300; transition: transform 0.2s; }
details[open] .faq-q::after { content: ''; }
.faq-a { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* FOOTER */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); padding: 50px 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-logo span { font-size: 1.4rem; }
.footer-logo strong { color: #5ddfb8; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: #5ddfb8; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.disclaimer { font-size: 0.78rem !important; color: rgba(255,255,255,0.4) !important; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .info-strip { flex-direction: column; }
  .info-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); justify-content: center; }
  .info-item:last-child { border-bottom: none; }
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px 24px 16px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  nav.open { display: flex; }
  nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
  }
  nav a:last-child { border-bottom: none; }
  .hero { padding: 50px 20px 60px; }
}
@media (max-width: 440px) {
  .products-grid, .featured-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Sort Bar ---- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
  white-space: nowrap;
}
.sort-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Search Box ---- */
.search-box {
  position: relative;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 25px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,138,110,0.15);
}

/* ---- Top Sections ---- */
.top-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
}
.top-section-header {
  text-align: center;
  margin-bottom: 28px;
}
.top-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.top-section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.top-rank-wrap {
  position: relative;
}
.top-rank {
  position: absolute;
  top: -8px;
  left: -8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 0.85rem;
  font-weight: 800;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.top-product {
  border: 2px solid #fbbf24 !important;
}
.card-badge-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .sort-bar { justify-content: center; }
  .sort-label { width: 100%; text-align: center; }
  .search-box { min-width: 100%; }
}
