/* pecesdeacuarios.net — lightweight static theme */
:root {
  --brand: #cc8326;
  --brand-dark: #a85e1e;
  --brand-deep: #9b4d12;
  --bg: #efefef;
  --text: #3a3a3a;
  --muted: #595959;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --max: 1180px;
  --content-pad: clamp(1rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  display: block;
  height: 60px;
  width: auto;
}

.site-search {
  display: flex;
  gap: 0.5rem;
}

.site-search input {
  min-width: 180px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font: inherit;
}

.site-search button {
  border: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: "Lobster Two", cursive;
  font-size: 1rem;
}

/* Navigation */
.site-nav {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.nav-toggle {
  display: none;
  width: 100%;
  border: 0;
  background: var(--brand-dark);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: "Lobster Two", cursive;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--white);
  font-family: "Lobster Two", cursive;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li.is-open > a {
  background: var(--brand-dark);
  text-decoration: none;
}

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--brand);
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.is-open > .sub-menu {
  display: block;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--white);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-menu .sub-menu a:hover {
  background: var(--brand-deep);
  text-decoration: none;
}

/* Main layout */
.site-main {
  max-width: var(--max);
  margin: 1.5rem auto 2rem;
  padding: 0 var(--content-pad);
}

.page-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.page-title {
  font-family: "Lobster Two", cursive;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: #222;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: "Lobster Two", cursive;
  line-height: 1.25;
  color: #222;
  margin: 1.75rem 0 0.75rem;
}

.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.35rem; }
.page-content p { margin: 0 0 1.25rem; }
.page-content ul,
.page-content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.page-content li { margin-bottom: 0.35rem; }

.page-content img.alignleft,
.page-content .alignleft {
  float: left;
  margin: 0.25rem 1.25rem 1rem 0;
  max-width: min(100%, 320px);
}

.page-content img.alignright,
.page-content .alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.25rem;
  max-width: min(100%, 320px);
}

.page-content .clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Card grid (replaces wp-show-posts) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.card-grid .card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-grid .card a {
  color: inherit;
  text-decoration: none;
}

.card-grid .card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ddd;
}

.card-grid .card h3 {
  font-size: 1.05rem;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
}

/* Product / comparison tables (AAWP) */
.comparison-table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--white);
}

.comparison-table th,
.comparison-table td,
.page-content table th,
.page-content table td {
  border: 1px solid #ddd;
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}

.comparison-table th,
.page-content table th {
  background: #f5f5f5;
  font-weight: 700;
}

.comparison-table img {
  max-width: 120px;
}

/* Amazon comparison blocks (AAWP static HTML) */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
}

.aawp-tb__row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) repeat(auto-fit, minmax(120px, 1fr));
  border-bottom: 1px solid #e8e8e8;
}

.aawp-tb__row:last-child {
  border-bottom: 0;
}

.aawp-tb__head {
  font-weight: 700;
  background: #f5f5f5;
  padding: 0.65rem;
  font-size: 0.9rem;
}

.aawp-tb__data {
  padding: 0.65rem;
  border-left: 1px solid #eee;
  font-size: 0.9rem;
}

.aawp-tb__data--highlight {
  background: rgba(204, 131, 38, 0.06);
}

.aawp-tb-thumb img {
  max-width: 110px;
  max-height: 110px;
  display: block;
  margin: 0 auto;
}

.aawp-tb-ribbon {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.35rem;
}

.sui::before {
  content: "✓";
  color: var(--brand);
  margin-right: 0.25rem;
}

.btn,
.page-content .elementor-button,
.page-content a.button {
  display: inline-block;
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-family: "Lobster Two", cursive;
  font-size: 1.05rem;
}

.btn:hover,
.page-content .elementor-button:hover {
  background: var(--brand-dark);
}

/* Table of contents */
.toc-box {
  background: #f9f9f9;
  border: 1px solid #aaa;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc-box .toc_title {
  font-family: "Lobster Two", cursive;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-align: center;
}

.toc-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.toc-box a {
  color: var(--brand);
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Two-column elementor-like layout */
.content-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0;
}

/* Share bar */
.share-bar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.share-bar__title {
  font-family: "Lobster Two", cursive;
  margin: 0 0 0.75rem;
}

.share-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  background: #f3f3f3;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: #e8e8e8;
}

.share-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: var(--white);
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--content-pad) 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: #ffe8cc;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.site-footer__note {
  opacity: 0.92;
  font-size: 0.78rem;
}

.dmca-badge img {
  margin-top: 0.75rem;
  width: 120px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    background: var(--brand-dark);
    padding-left: 0.5rem;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .page-content img.alignleft,
  .page-content img.alignright {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}
