/* =============================================
   CONVESA.ES – German Version (DE)
   Faithful reproduction of original design system
   ============================================= */

:root {
  --brand-green: #7AB648;
  --brand-dark: #1D1D1B;
  --brand-gray: #58595B;
  --brand-light: #F5F5F5;
  --brand-white: #FFFFFF;
  --brand-border: #E0E0E0;
  --font-primary: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--brand-dark);
  line-height: 1.6;
  font-size: 16px;
  background: var(--brand-white);
}

a { color: var(--brand-green); text-decoration: none; transition: color .2s; }
a:hover { color: #5a9030; }

img { max-width: 100%; height: auto; display: block; }

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

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--brand-dark);
  color: var(--brand-white);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.top-bar a { color: var(--brand-white); font-size: 13px; }
.top-bar a:hover { color: var(--brand-green); }

/* ========== HEADER / NAV ========== */
.main-header {
  background: var(--brand-white);
  border-bottom: 1px solid var(--brand-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo img { height: 45px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: var(--brand-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--brand-green); }
.main-nav .fitsystem-link img { height: 22px; }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--brand-dark); }
.search-icon { font-size: 18px; cursor: pointer; padding: 10px; color: var(--brand-gray); }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: var(--brand-gray);
}
.breadcrumb a { color: var(--brand-gray); }
.breadcrumb a:hover { color: var(--brand-green); }
.breadcrumb strong { color: var(--brand-dark); }

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,29,27,.75) 0%, rgba(29,29,27,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--brand-white);
  max-width: 700px;
}
.hero h1 {
  font-family: var(--font-primary);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 15px;
}

/* ========== SECTIONS ========== */
.section { padding: 60px 0; }
.section-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--brand-gray);
  margin-bottom: 40px;
}

/* ========== CATEGORY GRID (Home) ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.cat-card {
  text-align: center;
  padding: 20px 10px;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s;
  background: var(--brand-white);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.cat-card img { height: 120px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.cat-card span {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-dark);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  background: var(--brand-white);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.product-card-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--brand-light);
}
.product-card-img img { max-height: 180px; object-fit: contain; }
.product-card-body { padding: 16px; }
.product-card-body h3 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-card-body h3 a { color: var(--brand-dark); }
.product-card-body h3 a:hover { color: var(--brand-green); }
.product-card-cat { font-size: 13px; color: var(--brand-gray); }
.product-card-cat a { color: var(--brand-green); font-size: 13px; }

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail { padding: 40px 0 60px; }
.product-detail h1 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--brand-dark);
}
.product-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-text strong { color: var(--brand-dark); }
.product-text p { margin-bottom: 16px; color: var(--brand-gray); }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-gallery img { border-radius: 6px; cursor: pointer; transition: opacity .2s; }
.product-gallery img:hover { opacity: .85; }
.product-meta { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--brand-border); }
.product-meta h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  margin-bottom: 10px;
}
.product-montaje {
  display: inline-block;
  background: var(--brand-green);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.product-designation {
  background: var(--brand-light);
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 15px;
  line-height: 1.8;
}
.download-section { margin-top: 30px; }
.download-section h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-list { list-style: none; }
.download-list li { margin-bottom: 8px; }
.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--brand-dark);
  transition: all .2s;
}
.download-list a:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: rgba(122,182,72,.05);
}
.badges { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.badges img { height: 50px; width: auto; }

/* ========== PROJECTS GRID ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: white;
}
.project-card-overlay h3 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
}

/* ========== CTA / CONTIGO SIEMPRE ========== */
.cta-section {
  background: var(--brand-light);
  padding: 60px 0;
}
.cta-section .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.cta-section h2 { font-family: var(--font-primary); font-size: 24px; color: var(--brand-green); margin-bottom: 6px; }
.cta-section h3 { font-family: var(--font-primary); font-size: 20px; margin-bottom: 15px; }
.cta-section p { color: var(--brand-gray); margin-bottom: 12px; font-size: 15px; }
.cta-form { background: var(--brand-white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.cta-form h4 { font-family: var(--font-primary); font-size: 16px; margin-bottom: 5px; }
.cta-form .btn-green {
  display: inline-block;
  background: var(--brand-green);
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 10px;
}
.cta-form .btn-green:hover { background: #5a9030; }
.form-group { margin-bottom: 12px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ========== PARTNERS ========== */
.partners {
  padding: 40px 0;
  text-align: center;
}
.partners p { font-size: 14px; color: var(--brand-gray); margin-bottom: 20px; font-style: italic; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partners-logos img { height: 50px; opacity: .6; transition: opacity .2s; }
.partners-logos img:hover { opacity: 1; }

/* ========== FOOTER ========== */
.main-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.8);
  padding: 50px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--brand-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col a { color: rgba(255,255,255,.7); font-size: 13px; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--brand-green); }
.footer-logo img { height: 35px; margin-bottom: 15px; }
.social-links { display: flex; gap: 12px; margin: 15px 0; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: background .2s;
}
.social-links a:hover { background: var(--brand-green); }
.footer-contact { font-size: 13px; line-height: 1.8; }
.footer-contact a { display: inline; color: var(--brand-green); }
.footer-quality img { height: 40px; margin-top: 15px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}
.footer-legal a { color: rgba(255,255,255,.6); display: inline; margin: 0 8px; }

/* ========== ABOUT PAGE ========== */
.about-content { padding: 40px 0 60px; }
.about-content h1 { font-family: var(--font-primary); font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.about-content h2 { font-family: var(--font-primary); font-size: 24px; margin: 30px 0 15px; }
.about-content p { color: var(--brand-gray); margin-bottom: 16px; line-height: 1.7; }

/* ========== CONTACT PAGE ========== */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 40px 0; }
.contact-box {
  background: var(--brand-light);
  padding: 30px;
  border-radius: 8px;
}
.contact-box h3 { font-family: var(--font-primary); font-size: 18px; margin-bottom: 12px; }
.contact-box p { color: var(--brand-gray); font-size: 15px; line-height: 1.8; }
.contact-box a { color: var(--brand-green); }

/* ========== FITSYSTEM PAGE ========== */
.fitsystem-hero {
  background: linear-gradient(135deg, var(--brand-green), #4a8a20);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.fitsystem-hero h1 { font-family: var(--font-primary); font-size: 32px; margin-bottom: 15px; }
.fitsystem-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.fitsystem-feature {
  background: var(--brand-white);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}
.fitsystem-feature h3 { font-family: var(--font-primary); font-size: 18px; color: var(--brand-green); margin-bottom: 10px; }
.fitsystem-feature p { color: var(--brand-gray); font-size: 14px; }

/* ========== LEGAL PAGES ========== */
.legal-content { padding: 40px 0 60px; }
.legal-content h1 { font-family: var(--font-primary); font-size: 28px; margin-bottom: 25px; }
.legal-content h2 { font-family: var(--font-primary); font-size: 20px; margin: 25px 0 10px; }
.legal-content p, .legal-content li { color: var(--brand-gray); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  padding: 20px;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-family: var(--font-primary); font-size: 16px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; color: var(--brand-gray); margin-bottom: 12px; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand-border);
  background: white;
  transition: all .2s;
}
.cookie-btns .accept { background: var(--brand-green); color: white; border-color: var(--brand-green); }
.cookie-btns .reject { background: var(--brand-dark); color: white; border-color: var(--brand-dark); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-info { grid-template-columns: 1fr; }
  .cta-section .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 15px 0;
  }
  .hero { height: 350px; }
  .hero h1 { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .fitsystem-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
