:root {
  --primary-color: #AA151B; /* Spanish Red */
  --secondary-color: #F1BF00; /* Spanish Yellow */
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #eaeaea;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, .page-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-text-stroke-color: #000;
  color: #000000;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Header & Nav */
header {
  background-color: #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--secondary-color);
  transition: padding 0.3s ease;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

header.scrolled .nav-container {
  padding: 0.5rem 2rem;
}

.logo img {
  height: 88px;
  width: auto;
  transition: height 0.3s ease;
}

header.scrolled .logo img {
  height: 65px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 10px 0;
  display: block;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000;
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0.5rem 0;
  border: 1px solid #333333;
}

.nav-links > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  padding: 0.8rem 1rem;
  font-weight: 500;
  color: #ffffff;
}

.dropdown-menu a:hover {
  background-color: #222222;
  color: var(--secondary-color);
  padding-left: 1.8rem;
}

/* Main Layout */
main {
  max-width: 1140px;
  margin: 3rem auto;
  padding: 0 2rem;
  min-height: 60vh;
}

.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Content Links Hover Animation */
.content-article a, .home-section a, .category-title-text {
  color: #000;
  text-decoration: none;
  background-position-y: 0%;
  background-image: linear-gradient(transparent 50%, var(--secondary-color) 50%);
  transition: background 500ms ease;
  background-size: auto 175%;
}

.content-article a:hover, .home-section a:hover, .category-card:hover .category-title-text {
  background-position-y: 100%;
}

/* Homepage specific */
.home-banner {
  width: 100%;
  border-radius: 30px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.home-section {
  margin-bottom: 4rem;
  text-align: left;
}

.home-section h2 {
  margin-bottom: 1rem;
}

.home-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: left;
}

.home-image {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* Product Grid */
.product-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .product-grid, .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .product-grid, .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card, .category-card {
  background: var(--card-bg);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  border: 1px solid var(--border-color);
}

.product-card:hover, .category-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
  padding: 0.75rem;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.4s ease;
}

.category-image-wrapper {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 25px;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image, .category-card:hover .category-image {
  transform: scale(1.15);
}

.product-info, .category-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title, .category-title {
  font-size: 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Solid Mosaic Grid (Homepage Categories) */
.solid-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 2rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: none;
}

@media (min-width: 768px) {
  .solid-mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solid-card {
  position: relative;
  display: block;
  background: #ffffff;
  text-decoration: none;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.solid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(1);
}

.solid-card:hover .solid-image {
  transform: scale(1.15);
  filter: brightness(1.1) saturate(1.1);
}

.solid-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 0.5rem;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: "Montserrat", sans-serif;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  transition: all 0.3s ease;
  z-index: 2;
}

.solid-card .category-title-text {
  background-image: none !important;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.solid-card .category-title-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.4s ease;
}

.solid-card:hover .category-title-text {
  color: #ffffff;
}

.solid-card:hover .category-title-text::after {
  width: 100%;
}



.btn-amazon:hover {
  background-color: #8A0E13;
  color: white;
}

/* Blog & Legal Content */
.content-article {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1140px;
  margin: 0 auto;
}

.content-article p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-align: left;
}

.content-article ul, .content-article ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Footer */
footer {
  background-color: #000000;
  color: #dddddd;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaaaaa;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  font-size: 0.85rem;
  color: #777777;
  text-align: center;
  border-top: 1px solid #333333;
  padding-top: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-title {
    font-size: 2rem;
  }
  .content-article {
    padding: 1.5rem;
  }
}


/* SEO Content Styles */
.seo-content { margin: 4rem 0; font-family: 'Montserrat', sans-serif; font-size: 18px; line-height: 1.6; color: var(--text-secondary); text-align: left; }
.seo-heading { font-family: 'Roboto Condensed', sans-serif; font-size: 28px; margin-top: 3rem; margin-bottom: 1.5rem; text-transform: uppercase; color: var(--text-primary); text-align: left; }
.seo-text { margin-bottom: 1.5rem; text-align: left; }
.seo-image { max-width: 100%; height: auto; border-radius: 20px; margin: 2rem auto; display: block; box-shadow: var(--shadow); }
.seo-list { margin-bottom: 1.5rem; padding-left: 2rem; }
.seo-content a, .seo-intro a { color: var(--text-primary); text-decoration: none; font-weight: bold; background-image: linear-gradient(to top, #ffc107 0%, #ffc107 100%); background-repeat: no-repeat; background-size: 100% 4px; background-position: 0 100%; transition: background-size 0.2s ease; }
.seo-content a:hover, .seo-intro a:hover { background-size: 100% 100%; color: #000; }
/* Category Heading */
.category-heading-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 2px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000;
  color: var(--text-primary);
  text-align: center;
  margin: 3rem 0 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.category-heading-title .emoji {
  width: 46px;
  height: 46px;
}

/* SEO Intro */
.seo-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
    margin: 0 auto 3rem auto;
}
.seo-intro p {
  margin: 0;
}

/* Amazon More Button */
.btn-amazon-more {
  display: inline-block;
  background-color: #111;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-amazon-more:hover {
  background-color: #ff9900;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.4);
}

/* Unified Affiliate Card Block */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.product-card-link:hover .product-card {
  /* Internal zoom is handled by .product-image */
}
.product-card-link:hover .product-image {
  transform: scale(1.05);
}
.product-card-link:hover .product-title-text {
  background-size: 100% 100%;
}
.product-card-link:hover .btn-amazon {
  background-color: #ff9900;
  text-decoration: underline;
}

/* Affiliate Product Title (Yellow Underline) */
.product-title {
  margin-bottom: auto;
  font-size: 1.1rem;
}
.product-title-text {
  background-image: linear-gradient(to top, #ffc107 0%, #ffc107 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

/* btn-amazon modifications */
.btn-amazon {
  display: inline-block;
  background-color: #ffc107;
  color: #000;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-family: "JetBrains Mono", sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  text-decoration: none;
}

.grid-divider {
  grid-column: 1 / -1;
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 1rem;
}
.grid-divider h2, .grid-divider h3 {
  margin: 0;
  font-size: 2.2rem;
  font-family: "Roboto Condensed", sans-serif;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center !important;
}

/* Vlog Grid */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .vlog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* No 4 columns on desktop for vlog-grid */

/* Stronger bold for legal and article subheadings */
.content-article p strong {
  color: #000;
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.2px;
}
