/* ============================================================
   Aidara SA — Stylesheet
   Paleta: tonos madera (marrón oscuro → amarillo pálido)
   ============================================================ */

:root {
  --wood-dark:  #3B1F0D;
  --wood-mid:   #7B4A1E;
  --wood-warm:  #C8892A;
  --wood-light: #E6CF8B;
  --wood-pale:  #F5EDD3;
  --wood-text:  #2A1505;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.04em;
  color: var(--wood-text);
  background-color: var(--wood-pale);
}

a {
  color: var(--wood-mid);
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--wood-warm);
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#mainNav {
  min-height: 60px;
  background-color: var(--wood-dark);
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#mainNav .navbar-brand img {
  transition: opacity 0.2s;
}

#mainNav .navbar-brand img:hover {
  opacity: 0.85;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.65rem 0.9rem;
  color: var(--wood-light);
  border: 1px solid var(--wood-warm);
  background: transparent;
}

#mainNav .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

#mainNav .nav-link {
  color: var(--wood-light);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

#mainNav .nav-link:hover {
  color: var(--wood-warm);
}

#mainNav .nav-link.active {
  color: var(--wood-warm);
  border-bottom: 2px solid var(--wood-warm);
}

/* Botón selector de idioma */
.lang-btn {
  background: transparent;
  border: 1px solid var(--wood-warm);
  color: var(--wood-light);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.5rem;
}

.lang-btn:hover {
  background: var(--wood-warm);
  color: var(--wood-dark);
}

.lang-btn span {
  opacity: 0.5;
  margin: 0 2px;
}

.lang-btn .lang-active {
  opacity: 1;
  color: var(--wood-warm);
}

.lang-btn:hover .lang-active {
  color: var(--wood-dark);
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 0;
    padding-bottom: 0;
  }

  #mainNav .nav-link {
    padding: 1.2rem 1.1rem;
  }

  #mainNav .nav-link.active {
    border-bottom: 3px solid var(--wood-warm);
  }
}

/* ============================================================
   HERO / MASTHEAD
   ============================================================ */

.masthead {
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(59, 31, 13, 0.55) 0%,
    rgba(59, 31, 13, 0.3) 50%,
    rgba(230, 207, 139, 0.85) 100%
  ), url('../img/2.jpg') center center / cover no-repeat;
}

.masthead-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1rem 4rem;
  width: 100%;
}

.masthead h1 {
  font-family: 'Parisienne', cursive;
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: 0.15rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(59, 31, 13, 0.7);
  margin-bottom: 1rem;
}

.masthead h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--wood-dark);
  max-width: 32rem;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .masthead {
    min-height: 85vh;
  }
  .masthead h1 {
    font-size: 5rem;
  }
  .masthead h2 {
    font-size: 1.2rem;
  }
}

@media (min-width: 992px) {
  .masthead {
    min-height: 100vh;
  }
  .masthead h1 {
    font-size: 7rem;
    line-height: 1;
  }
  .masthead h2 {
    font-size: 1.35rem;
  }
}

/* ============================================================
   BOTÓN PRIMARIO
   ============================================================ */

.btn-wood {
  display: inline-block;
  background-color: var(--wood-dark);
  color: var(--wood-light);
  border: none;
  border-radius: 3px;
  padding: 0.9rem 2.2rem;
  font-family: 'Varela Round', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-wood:hover, .btn-wood:focus {
  background-color: var(--wood-mid);
  color: var(--wood-pale);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-wood:active {
  transform: translateY(0);
  background-color: var(--wood-dark);
}

.btn-wood-outline {
  background-color: transparent;
  border: 2px solid var(--wood-dark);
  color: var(--wood-dark);
}

.btn-wood-outline:hover {
  background-color: var(--wood-dark);
  color: var(--wood-pale);
}

/* ============================================================
   SECCIÓN NOSOTROS
   ============================================================ */

.about-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(
    to bottom,
    var(--wood-light) 0%,
    rgba(230, 207, 139, 0.4) 60%,
    var(--wood-pale) 100%
  );
}

.about-section h2 {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-section p {
  color: var(--wood-text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-section .about-img {
  max-width: 260px;
  opacity: 0.8;
}

/* ============================================================
   SECCIÓN PRODUCTOS
   ============================================================ */

.products-section {
  padding: 5rem 0;
  background-color: #fff;
}

.products-section h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.products-section h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--wood-warm);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Tarjetas de producto */
.product-card {
  background: var(--wood-pale);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(59, 31, 13, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 31, 13, 0.18);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h4 {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.product-card-body p {
  color: #5a3a1a;
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

.product-card-body .product-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wood-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card-body .product-link:hover {
  color: var(--wood-warm);
}

.product-card .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--wood-warm);
  color: var(--wood-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.product-card-wrap {
  position: relative;
}

/* ============================================================
   SECCIÓN SERVICIOS
   ============================================================ */

.services-section {
  padding: 6rem 0;
  background: linear-gradient(
    to bottom,
    var(--wood-pale) 0%,
    var(--wood-light) 50%,
    var(--wood-pale) 100%
  ), url('../img/8.jpg') center center / cover no-repeat;
  background-blend-mode: lighten;
}

.services-section h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.services-section h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--wood-warm);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.service-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.service-item .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 31, 13, 0.12);
  border: 2px solid rgba(59, 31, 13, 0.2);
  margin-bottom: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.service-item:hover .service-icon {
  background: rgba(200, 137, 42, 0.2);
  border-color: var(--wood-warm);
}

.service-item .service-icon i {
  font-size: 1.8rem;
  color: var(--wood-dark);
}

.service-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood-text);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */

.contact-section {
  padding: 5rem 0 0;
  background-color: var(--wood-dark);
}

.contact-section h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-light);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.contact-section h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--wood-warm);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(230, 207, 139, 0.2);
  border-bottom: 3px solid var(--wood-warm);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
}

.contact-card i {
  font-size: 1.6rem;
  color: var(--wood-warm);
  margin-bottom: 0.75rem;
}

.contact-card h4 {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wood-light);
  margin-bottom: 0.5rem;
}

.contact-card hr {
  border-color: var(--wood-warm);
  border-width: 2px;
  width: 2.5rem;
  margin: 0.75rem auto;
}

.contact-card .contact-info {
  color: rgba(230, 207, 139, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact-card .contact-info a {
  color: rgba(230, 207, 139, 0.7);
  display: block;
}

.contact-card .contact-info a:hover {
  color: var(--wood-warm);
}

.contact-card .contact-info .export-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-warm);
  font-weight: 700;
  display: block;
  margin-top: 0.4rem;
}

.contact-section .social-links {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-section .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 139, 0.3);
  color: rgba(230, 207, 139, 0.5);
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-section .social-links a:hover {
  border-color: var(--wood-warm);
  color: var(--wood-warm);
  background: rgba(200, 137, 42, 0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
  background-color: #1e0d04;
  padding: 2rem 0;
  text-align: center;
  color: rgba(230, 207, 139, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   PÁGINA HISTORIA
   ============================================================ */

.history-hero {
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(59, 31, 13, 0.3) 0%,
    rgba(59, 31, 13, 0.6) 60%,
    var(--wood-light) 100%
  ), url('../img/24.jpg') center center / cover no-repeat;
  padding-bottom: 3rem;
}

.history-hero h1 {
  font-family: 'Varela Round', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .history-hero h1 {
    font-size: 3.5rem;
  }
}

.history-body {
  padding: 4rem 0 5rem;
  background: linear-gradient(to bottom, var(--wood-light) 0%, var(--wood-pale) 100%);
}

.history-body p.lead {
  color: var(--wood-text);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ============================================================
   CHIPS PAGE — HERO VIDEO
   ============================================================ */

.chips-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--wood-dark);
}

.chips-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.chips-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(59, 31, 13, 0.4) 0%,
    rgba(59, 31, 13, 0.6) 100%
  );
  z-index: 1;
}

.chips-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1rem 5rem;
  width: 100%;
}

.chips-hero-content h1 {
  font-family: 'Varela Round', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.3rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

.chips-hero-content p.hero-sub {
  font-size: 1.1rem;
  color: var(--wood-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
  .chips-hero-content h1 {
    font-size: 4.5rem;
  }
}

/* ============================================================
   CHIPS PAGE — DESCRIPCIÓN
   ============================================================ */

.chips-description {
  padding: 5rem 0;
  background-color: var(--wood-pale);
}

.chips-description h2 {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.chips-description h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--wood-warm);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.chips-description p {
  color: var(--wood-text);
  line-height: 1.85;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

/* ============================================================
   CHIPS PAGE — ESPECIFICACIONES
   ============================================================ */

.chips-specs {
  padding: 4rem 0;
  background-color: var(--wood-dark);
}

.chips-specs h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-light);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.chips-specs h2.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--wood-warm);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--wood-warm);
  border-radius: 0 4px 4px 0;
  margin-bottom: 1rem;
}

.spec-item i {
  font-size: 1.3rem;
  color: var(--wood-warm);
  margin-top: 2px;
  flex-shrink: 0;
}

.spec-item .spec-text strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-light);
  margin-bottom: 0.15rem;
}

.spec-item .spec-text span {
  font-size: 0.9rem;
  color: rgba(230, 207, 139, 0.65);
}

/* ============================================================
   CHIPS PAGE — GALERÍA
   ============================================================ */

.chips-gallery {
  padding: 5rem 0;
  background-color: #fff;
}

.chips-gallery h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-dark);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.chips-gallery h2.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--wood-warm);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 31, 13, 0.2);
}

/* ============================================================
   CHIPS PAGE — CONTACTO
   ============================================================ */

.chips-contact {
  padding: 5rem 0;
  background-color: var(--wood-dark);
}

.chips-contact h2.section-title {
  font-family: 'Varela Round', sans-serif;
  color: var(--wood-light);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.chips-contact h2.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--wood-warm);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.chips-contact p.contact-intro {
  text-align: center;
  color: rgba(230, 207, 139, 0.7);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--wood-warm);
  border: none;
  border-radius: 2px;
  margin: 1rem auto;
}

.text-wood-dark { color: var(--wood-dark) !important; }
.text-wood-mid  { color: var(--wood-mid)  !important; }
.text-wood-warm { color: var(--wood-warm) !important; }
.text-wood-light { color: var(--wood-light) !important; }
.bg-wood-dark   { background-color: var(--wood-dark) !important; }
.bg-wood-pale   { background-color: var(--wood-pale) !important; }

/* Fix: ocultar elementos según idioma activo */
[data-lang] { display: none; }
[data-lang].lang-visible { display: block; }
span[data-lang].lang-visible { display: inline; }
a[data-lang].lang-visible { display: inline; }
