/* ============================================
   CONTENT ORGANS ESPAÑA — contentorgans.es
   Based on contentorgans.com design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

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

:root {
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-light: #ffffff;
  --text-dark: #212529;
  --text-muted: #999999;
  --accent: #f5b731;
  --accent-hover: #e0a520;
  --font: 'Source Sans 3', sans-serif;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ── */
.header {
  background: var(--bg-darker);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 50px;
  width: auto;
  margin-right: 30px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-nav a {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-nav a.nav-main {
  font-size: 17px;
  font-weight: 600;
}

.header-nav a.nav-secondary {
  font-size: 15px;
  font-weight: 400;
}

.header-nav a:hover { color: var(--accent); }

.header-nav .btn-service {
  border: 1px solid var(--text-light);
  padding: 6px 18px;
  border-radius: 3px;
}

.header-nav .btn-service:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 11px;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--bg-darker);
  border: 1px solid #333;
  border-radius: 6px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #ccc !important;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(245,183,49,0.1);
  color: var(--accent) !important;
}
.dropdown-menu .dropdown-divider {
  height: 1px;
  background: #333;
  margin: 6px 0;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* ── PRODUCT HERO ── */
.product-hero {
  background: var(--bg-dark);
  padding: 60px 0;
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-hero-image img {
  width: 100%;
  border-radius: 4px;
}

.product-hero-info {
  color: var(--text-light);
}

.product-hero-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-hero-info p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 15px;
}

.product-hero-info .price {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 25px;
}

/* ── PRODUCT NAV (sticky sub-nav) ── */
.product-nav {
  background: var(--bg-white);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 70px;
  z-index: 90;
  padding: 12px 0;
}

.product-nav .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.product-nav .product-title {
  font-size: 18px;
  font-weight: 600;
  margin-right: 30px;
}

.product-nav a {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 300;
}

.product-nav a:hover { color: var(--accent); }

/* ── SECTIONS ── */
.section {
  padding: 70px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-white {
  background: var(--bg-white);
  color: var(--text-dark);
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

.section-dark h2 { color: var(--text-light); }

.section p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 750px;
}

.section-dark p { color: #cccccc; }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img { border-radius: 4px; }

/* ── SPECS TABLE ── */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  font-size: 15px;
}

.section-dark .specs-table th,
.section-dark .specs-table td {
  border-bottom-color: #333;
}

.section-light .specs-table th,
.section-light .specs-table td {
  border-bottom-color: #ddd;
}

.specs-table th {
  font-weight: 600;
  width: 40%;
  color: var(--text-muted);
}

.section-dark .specs-table td { color: var(--text-light); }

/* ── IMAGE GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover { transform: scale(1.03); }

/* ── PRICING TABLE ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.pricing-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pricing-card .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-card .price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── FEATURES LIST ── */
.features-list {
  list-style: none;
  margin-top: 20px;
}

.features-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
  font-weight: 300;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── CTA ── */
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  margin-top: 25px;
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo img {
  height: 35px;
  margin-bottom: 20px;
}

.footer-info {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-info .contact-icon {
  font-size: 28px;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-info a { color: var(--text-muted); }
.footer-info a:hover { color: var(--accent); }

.footer-nav h4,
.footer-newsletter h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── SAMPLE SET / PRODUCT CARDS GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card-grid .card {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-grid .card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-grid .card .card-body {
  padding: 18px;
}

.card-grid .card .card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.card-grid .card .card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: none;
}

.card-grid .card a {
  color: inherit;
  text-decoration: none;
}

/* ── BREADCRUMBS ── */
.breadcrumb {
  background: var(--bg-darker);
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: #444;
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--text-light);
}

/* ── PAGE HERO (non-product) ── */
.page-hero {
  background: var(--bg-dark);
  padding: 60px 0;
  color: var(--text-light);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: #cccccc;
  max-width: 750px;
}

/* ── CAMBIARE LINKS GRID ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.model-grid a {
  display: block;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.model-grid a:hover {
  background: #2a2a2a;
  border-color: var(--accent);
  color: var(--accent);
}

/* ── BADGES ── */
.badge-new {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-hybrid {
  display: inline-block;
  background: #8b5cf6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .product-hero .container { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col.reverse { direction: ltr; }
  .footer .container { grid-template-columns: 1fr; gap: 30px; }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-nav.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-darker); padding: 20px; z-index: 200; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu { position: static; margin-top: 5px; border: none; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 4px; min-width: 0; }
  .dropdown-menu::before { display: none; }
  .dropdown-menu a { padding: 8px 15px; }
}

@media (max-width: 576px) {
  .product-hero-info h1 { font-size: 26px; }
  .section { padding: 40px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
