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

:root {
  --primary-red: #dc2626;
  --dark-red: #b91c1c;
  --light-gray: #f5f5f5;
  --medium-gray: #e5e5e5;
  --dark-gray: #404040;
  --text-gray: #666;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2px;
  background-color: white;
}

.footer {
  background: var(--dark-gray);
  color: white;
  padding: 40px 20px 20px;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-red);
}

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section h3::before {
  content: "📍";
  font-size: 1.2em;
}

.address {
  margin-bottom: 12px;
  line-height: 1.6;
}

.address p {
  margin: 5px 0;
}

.map-link {
  display: inline-block;
  color: #4dabf7;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 5px;
  transition: color 0.3s;
}

.map-link:hover {
  color: #74c0fc;
  text-decoration: underline;
}

.map-link::before {
  content: "🗺️ ";
}

.phone-list {
  list-style: none;
  margin-top: 10px;
}

.phone-list li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-list li::before {
  content: "📞";
}

.phone-list a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.phone-list a:hover {
  color: var(--primary-red);
}

.phone-badge {
  background: var(--primary-red);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  margin-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-section {
    padding: 15px;
  }
}

.logo-titulo {
  display: flex;
  justify-content: center;
  color: red;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.espacio-logo {
  display: flex;
  align-items: flex-start;
  gap: 15px; /* 👈 REDUCE ESTE VALOR */
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

#nav-container {
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  padding: 13px 20px;
  z-index: 1000;
}

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

.header-text {
  font-size: 22px;
  color: #680000;
  font-weight: bold;
}

.default-footer {
  text-align: center;
}

.default-footer p {
  margin: 0;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

.header-text:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease;
  color: #f50000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-red);
}

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

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  padding: 6px 6px;

  transition: transform 0.2s ease;
}

.logo-muebles-bastidas {
  display: flex;
  align-items: center;

  flex-shrink: 0;
  margin-right: 25px;

  text-decoration: none;
}

.logo-muebles-bastidas img {
  max-height: 60px;
  width: auto;
  display: block;
}

.nav-link img {
  max-height: 50px;
  width: auto;
  display: block;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover img {
  transform: scale(1.1);
  opacity: 1.3;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  padding: 24px 35px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
  font-weight: 600;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(0, 255, 94);
  
  
}

.whatsapp-button svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-button {
  display: inline-block;
  background: white;
  color: var(--primary-red);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Sobre Nosotros */
.sobre-nosotros {
  padding: 80px 20px;
  background: var(--white);
}

.section-title {
  font-size: 39px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-red);
  font-weight: 700;
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.sobre-text p {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.8;
  color: var(--text-gray);
}

.sobre-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Brand Sections */
.brand-section {
  padding: 80px 20px;
  background: var(--white);
}

.brand-section.alt {
  background: var(--light-gray);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.product-description {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 15px;
}

.color-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 30px solid;
  border-color: black;
  cursor: pointer;
  transition: all 0.3s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-red);
}

.product-button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--primary-red);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.product-button:hover {
  background: var(--dark-red);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 10px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  font-weight: 300;
  color: var(--dark-gray);
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: var(--primary-red);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px;
}

.modal-image-section img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-info-section h3 {
  font-size: 28px;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.modal-info-section p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.modal-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 25px;
}

.modal-specs {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.modal-specs h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.modal-specs ul {
  list-style: none;
}

.modal-specs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--medium-gray);
  color: var(--text-gray);
}

.modal-specs li:last-child {
  border-bottom: none;
}

.modal-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #25d366;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #680000;
}

.modal-button:hover {
  background: #1ea952;
}

/* Footer */

/* Brand Page Styles */
.brand-page-section {
  padding: 60px 20px;
  min-height: calc(100vh - 200px);
}

.brand-header {
  text-align: center;
  margin-bottom: 50px;
}

.brand-logo-large {
  max-height: 100px;
  width: auto;
  margin-bottom: 20px;
}

.brand-title {
  font-size: 36px;
  color: var(--dark-gray);
  font-weight: 700;
}

/* Simple Product Card (for brand pages) */
.product-card-simple {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-placeholder {
  width: 290px;
  height: 300px;
  margin: 0 auto;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
}


.product-image-placeholder svg {
  width: 120px;
  height: 120px;
}

.product-info-simple {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title-simple {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-gray);
  line-height: 1.4;
}

.product-price-simple {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-red);
}

/* Product Detail Page Styles */
.product-detail-section {
  padding: 60px 20px;
  min-height: calc(100vh - 200px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  color: #680000;

  margin-bottom: 30px;
  padding: 10px 18px;

  border: 2px solid #680000;
  border-radius: 8px;

  background-color: transparent;
  cursor: pointer;

  transition: color 0.3s, transform 0.2s ease, border-color 0.3s;
}

.back-link:hover {
  color: #f50000;
  border-color: #f50000;
  transform: scale(1.2);
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Nuevos estilos para el contenedor de miniaturas */
.thumbnail-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

.thumbnail-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumbnail-wrapper:hover {
  border-color: var(--text-gray);
  transform: scale(1.05);
}

.thumbnail-wrapper.active {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px white, 0 0 0 5px var(--primary-red);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.color-selector-large {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.color-option-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid black;
  cursor: pointer;
  transition: all 0.3s;
}

.color-option-large:hover {
  transform: scale(1.1);
}

.color-option-large.active {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px white, 0 0 0 6px var(--primary-red);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.3;
}

.product-detail-description {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.7;
}

.product-detail-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-red);
  margin: 10px 0;
}

.product-detail-specs {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 10px;
  margin: 10px 0;
}

.product-detail-specs h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.product-detail-specs ul {
  list-style: none;
}

.product-detail-specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--medium-gray);
  color: var(--text-gray);
  font-size: 16px;
}

.product-detail-specs li:last-child {
  border-bottom: none;
}

.product-detail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  background: #25d366;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
  margin-top: 10px;
}

.product-detail-button:hover {
  background: #1ea952;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail-title {
    font-size: 28px;
  }

  .product-image {
    height: 180px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-price {
    font-size: 20px;
  }
  .product-detail-price {
    font-size: 32px;
  }

  .logo-titulo h1{
    font-size: 20px;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-logo-large {
    max-height: 70px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .sobre-content {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(1fr);
    gap: 15px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .whatsapp-button span {
    display: none;
  }

  .whatsapp-button {
    padding: 26px;
    border-radius: 50%;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;

    background-color: #f5f5f5;
    padding: 80px 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    transition: left 0.3s ease;
    z-index: 2000;
  }

  .nav.active {
    left: 0;
  }

  .nav-link img {
    max-height: 35px;
  }

  body {
    background-color: #ffffff;
  }
}
