html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET ARTESANAL
   ========================================================================== */
:root {
  --color-nogal: #2A1D17;
  --color-nogal-suave: #3D2B22;
  --color-dorado: #C08239;
  --color-dorado-hover: #A66E2E;
  --color-crema-fondo: #FAF8F5;
  --color-crema-borde: #EAE3DA;
  --color-texto-secundario: #5C5249;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-nogal);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   2. CABECERA: LOGO A LA IZQUIERDA Y MENÚ HORIZONTAL A LA DERECHA (UNA FILA)
   ========================================================================== */
header.header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-crema-borde);
  padding: 0.8rem 2rem !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header.header .grid-child,
header.header .container-nav,
header.header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1350px !important;
  margin: 0 auto !important;
}

.navbar-brand {
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-brand img {
  height: 55px !important;
  width: auto !important;
  display: block;
}

/* Menú de navegación en una sola línea */
ul.mod-menu,
.header ul.metismenu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.6rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.header ul.mod-menu li,
.header ul.metismenu li {
  margin: 0 !important;
  padding: 0 !important;
}

.header ul.mod-menu li a,
.header ul.metismenu li a {
  color: var(--color-nogal) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 6px 2px !important;
  position: relative;
  transition: color 0.2s ease;
}

.header ul.mod-menu li a:hover,
.header ul.metismenu li a:hover {
  color: var(--color-dorado) !important;
}

/* Línea sutil dorada al pasar el ratón */
.header ul.mod-menu li a::after,
.header ul.metismenu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-dorado);
  transition: width 0.25s ease;
}

.header ul.mod-menu li a:hover::after,
.header ul.metismenu li a:hover::after,
.header ul.mod-menu li.active a::after,
.header ul.metismenu li.active a::after {
  width: 100%;
}

/* Botón destacado del menú (último enlace: El Taller / Contacto) */
.header ul.mod-menu li:last-child a,
.header ul.metismenu li:last-child a {
  background: var(--color-dorado) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  font-weight: 700 !important;
}

.header ul.mod-menu li:last-child a::after,
.header ul.metismenu li:last-child a::after {
  display: none !important;
}

.header ul.mod-menu li:last-child a:hover,
.header ul.metismenu li:last-child a:hover {
  background: var(--color-dorado-hover) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   3. SECCIONES DE LA PORTADA (HERO, ESPECIALIDADES E HISTORIA)
   ========================================================================== */

/* Hero Banner */
.hero-wrapper {
  background: #ffffff;
  max-width: 1250px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-tag {
  display: inline-block;
  background: #F4ECE1;
  color: #8C581F;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-nogal);
  margin: 0 0 1.2rem 0;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-texto-secundario);
  line-height: 1.6;
  margin: 0;
}

.hero-img-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(42, 29, 23, 0.1);
  display: block;
}

.hero-pills-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.cream-pill {
  background-color: var(--color-crema-fondo);
  border: 1px solid var(--color-crema-borde);
  color: var(--color-nogal);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Especialidades (4 Tarjetas) */
.especialidades-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.especialidades-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin-bottom: 3rem;
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.especialidad-card {
  background: #ffffff;
  border: 1px solid var(--color-crema-borde);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.especialidad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(42, 29, 23, 0.08);
}

.card-thumb {
  position: relative;
  height: 200px;
}

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

.chip-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(42, 29, 23, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-details h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin: 0 0 0.5rem 0;
}

.card-details p {
  color: var(--color-texto-secundario);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
  flex-grow: 1;
}

.card-action {
  color: var(--color-dorado);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-action:hover {
  color: var(--color-dorado-hover);
}

/* Historia e I+D Strip */
.historia-strip {
  background-color: var(--color-crema-fondo);
  border-top: 1px solid var(--color-crema-borde);
  border-bottom: 1px solid var(--color-crema-borde);
  padding: 5rem 1.5rem;
}

.historia-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.historia-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-dorado);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.historia-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-nogal);
  line-height: 1.25;
  margin: 0 0 2rem 0;
}

.historia-metrics {
  display: flex;
  gap: 2.5rem;
}

.metric-box strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-dorado);
  line-height: 1;
}

.metric-box span {
  font-size: 0.95rem;
  color: var(--color-texto-secundario);
  font-weight: 600;
}

.historia-thumb {
  position: relative;
}

.historia-thumb img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  display: block;
}

.badge-year {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background-color: var(--color-nogal);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   4. FORMULARIO DE PRESUPUESTO ONLINE CON FOTO
   ========================================================================== */
.presupuesto-fullwidth {
  background-color: #ffffff;
  padding: 5rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.presupuesto-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.presupuesto-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.pill-rapido {
  display: inline-block;
  background-color: #F4ECE1;
  color: #8C581F;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.presupuesto-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin-bottom: 0.6rem;
}

.presupuesto-header p {
  color: var(--color-texto-secundario);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-item {
  margin-bottom: 1.2rem;
}

.form-item label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-nogal);
  margin-bottom: 0.4rem;
}

.form-item input,
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6CCC0;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--color-nogal);
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--color-dorado);
}

.dropzone-box {
  background-color: var(--color-crema-fondo);
  border: 2px dashed #CBBFB2;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.dropzone-box:hover {
  border-color: var(--color-dorado);
}

.upload-arrow {
  font-size: 2rem;
  color: var(--color-dorado);
  margin-bottom: 0.5rem;
}

.drop-main {
  font-weight: 700;
  color: var(--color-nogal);
  font-size: 1.05rem;
  margin: 0 0 0.3rem 0;
}

.drop-sub {
  font-size: 0.85rem;
  color: #7D7267;
  margin: 0 0 1.2rem 0;
  line-height: 1.4;
}

.btn-select-file {
  display: inline-block;
  background-color: #F4ECE1;
  color: #8C581F;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.file-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.pill-arch {
  background-color: #ffffff;
  border: 1px solid #E4D5C1;
  color: var(--color-nogal);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.privacy-row label {
  font-size: 0.85rem;
  color: var(--color-texto-secundario);
}

.btn-submit-gold {
  width: 100%;
  background-color: var(--color-dorado);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit-gold:hover {
  background-color: var(--color-dorado-hover);
}

/* ==========================================================================
   5. BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.wa-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease;
}

.wa-float-btn:hover {
  transform: scale(1.08);
  color: #ffffff;
}

/* ==========================================================================
   6. RESPONSIVE (MÓVIL Y TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  header.header,
  header.header .grid-child,
  header.header .container-nav {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  ul.mod-menu,
  .header ul.metismenu {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .hero-content,
  .historia-container,
  .form-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .especialidades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .especialidades-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .historia-metrics {
    flex-direction: column;
    gap: 1.2rem;
  }
}
/* ==========================================================================
   FORMULARIO DE PRESUPUESTO ONLINE CON FOTO
   ========================================================================== */

/* Contenedor principal de sección */
.presupuesto-fullwidth {
  background-color: #FAF8F5;
  border-top: 1px solid #EAE3DA;
  padding: 4.5rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.presupuesto-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Encabezado del formulario */
.presupuesto-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.pill-rapido {
  display: inline-block;
  background-color: #F4ECE1;
  color: #8C581F;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.presupuesto-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #2A1D17;
  margin: 0 0 0.6rem 0;
}

.presupuesto-header p {
  color: #5C5249;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

/* Distribución en 2 columnas */
.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-col-left,
.form-col-right {
  display: flex;
  flex-direction: column;
}

/* Campos de entrada */
.form-item {
  margin-bottom: 1.2rem;
}

.form-item label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2A1D17;
  margin-bottom: 0.4rem;
}

.form-item input,
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6CCC0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #2A1D17;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: #C08239;
  box-shadow: 0 0 0 3px rgba(192, 130, 57, 0.15);
}

.form-item textarea {
  resize: vertical;
  min-height: 95px;
}

/* Área de subida de fotos (Dropzone) */
.dropzone-box {
  background-color: #ffffff;
  border: 2px dashed #CBBFB2;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone-box:hover {
  border-color: #C08239;
  background-color: #FCFAF7;
}

.upload-arrow {
  font-size: 2.2rem;
  color: #C08239;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.drop-main {
  font-weight: 700;
  color: #2A1D17;
  font-size: 1.05rem;
  margin: 0 0 0.3rem 0;
}

.drop-sub {
  font-size: 0.85rem;
  color: #7D7267;
  margin: 0 0 1.2rem 0;
  line-height: 1.4;
}

.btn-select-file {
  display: inline-block;
  background-color: #F4ECE1;
  color: #8C581F;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #E5D7C5;
  transition: background-color 0.2s ease;
}

.btn-select-file:hover {
  background-color: #EDE2D3;
}

/* Input oculto real sobre toda la zona de arrastre */
.file-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* Etiquetas de imágenes seleccionadas */
.file-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.pill-arch {
  background-color: #FAF4EB;
  border: 1px solid #E4D5C1;
  color: #2A1D17;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Casilla de verificación de privacidad */
.privacy-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #C08239;
  cursor: pointer;
}

.privacy-row label {
  font-size: 0.86rem;
  color: #5C5249;
  cursor: pointer;
  margin: 0;
}

/* Botón de envío */
.btn-submit-gold {
  width: 100%;
  background-color: #C08239;
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 130, 57, 0.25);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit-gold:hover {
  background-color: #A66E2E;
}

.btn-submit-gold:active {
  transform: scale(0.99);
}

/* Adaptación a tablets y móviles */
@media (max-width: 850px) {
  .form-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .presupuesto-fullwidth {
    padding: 3.5rem 1rem;
  }

  .dropzone-box {
    padding: 2rem 1rem;
  }
}
/* ==========================================================================
   1. CABECERA AL 100% DE PANTALLA (SIN CORTES LATERALES)
   ========================================================================== */
header.header,
.header.container-header,
.header.container-header.full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding: 0.8rem 3rem !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-crema-borde);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ==========================================================================
   2. HERO CON FONDO MARRÓN ARTESANAL (NOGAL NOBLE)
   ========================================================================== */
.container-banner,
.container-banner.full-width {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Forzar que el bloque Hero abarque todo el ancho con fondo oscuro */
.hero-wrapper {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  background: linear-gradient(145deg, #241812 0%, #1A110D 100%) !important;
  color: #ffffff !important;
  padding: 4.5rem 2rem 3.5rem 2rem !important;
  box-sizing: border-box !important;
}

/* Contenedor interior centrado */
.hero-content {
  max-width: 1250px !important;
  margin: 0 auto 2.5rem auto !important;
}

/* Textos adaptados al contraste sobre fondo marrón */
.hero-tag {
  background: rgba(192, 130, 57, 0.2) !important;
  color: #E5A963 !important;
  border: 1px solid rgba(192, 130, 57, 0.4) !important;
}

.hero-title {
  color: #FFFFFF !important;
}

.hero-desc {
  color: #D6CCC0 !important;
}

/* Píldoras del Hero adaptadas al fondo oscuro */
.hero-pills-bar {
  max-width: 1250px;
  margin: 0 auto;
}

.cream-pill {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #F4ECE1 !important;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   3. BLOQUE DE PRESUPUESTO AL ANCHO TOTAL (100vw)
   ========================================================================== */
.presupuesto-fullwidth {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  background-color: var(--color-crema-fondo) !important;
  border-top: 1px solid var(--color-crema-borde) !important;
  border-bottom: 1px solid var(--color-crema-borde) !important;
  padding: 5rem 2rem !important;
}

.presupuesto-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
}
/* ==========================================================================
   RESTAURAR FORMULARIO Y ELIMINAR EL HUECO EN BLANCO
   ========================================================================== */

/* 1. Forzar que el formulario sea visible al 100% */
#mod-custom113,
.presupuesto-fullwidth,
.moduletable:has(#mod-custom113) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 0 !important;
  border-top: none !important;
}

/* 2. Ocultar ÚNICAMENTE el artículo vacío de Joomla, sin tocar los módulos */
body.view-featured main .blog-featured,
body.view-featured .container-component:empty,
body.view-featured main:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3. Colapsar márgenes entre módulos en la posición container-banner */
.container-banner > div,
.container-banner .mod-custom {
  margin-bottom: 0 !important;
}

.historia-strip {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 3.5rem !important; /* Ajuste suave para que no quede pegado en exceso */
}

/* Evitar que el párrafo del botón de WhatsApp genere una línea en blanco */
#mod-custom112 p:last-child {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}
/* ==========================================================================
   RESTAURAR VISIBILIDAD TOTAL DEL FORMULARIO Y CERRAR HUECO
   ========================================================================== */

/* 1. Asegurar que el contenedor del formulario sea visible */
.container-banner .moduletable {
  display: block !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

#mod-custom113,
.presupuesto-fullwidth {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/* 2. Ajustar los espacios de contacto entre historia y presupuesto */
.historia-strip {
  padding-bottom: 2.5rem !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.presupuesto-fullwidth {
  padding-top: 2.5rem !important;
  margin-top: 0 !important;
  border-top: none !important;
}

/* 3. Neutralizar el enlace suelto de WhatsApp que mete un salto de línea antes del form */
#mod-custom112 > p:last-child {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
}
/* ==========================================================================
   CABECERA FIJA / STICKY HEADER (LOGO + MENÚ)
   ========================================================================== */

header.header,
.container-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1050 !important;
  background-color: #ffffff !important; /* Asegura fondo sólido al pasar sobre el contenido */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important; /* Sombra sutil para despegarla del fondo */
  transition: all 0.2s ease-in-out !important;
}

/* Evitar que elementos padre bloqueen la posición sticky */
body, 
.site {
  overflow-x: clip !important; /* Mejor alternativa a hidden para no anular sticky */
}
/* ==========================================================================
   ESTRUCTURA UNIVERSAL PARA PÁGINAS DE SERVICIOS (ARTÍCULOS)
   Compatible tanto con .service-* como con .rest-* de Restauración
   ========================================================================== */

/* 1. Reset limpio para artículos sin tocar la portada */
body.view-article .container-component,
body.view-article main#content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

body.view-article .article-info,
body.view-article .pagenav {
  display: none !important;
}

/* 2. Contenedor centralizado */
.service-page-wrap,
.rest-page-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  box-sizing: border-box;
  color: var(--color-nogal);
}

/* Encabezado */
.service-header,
.rest-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.service-pill-tag,
.rest-tag-pill {
  display: inline-block;
  background-color: #F4ECE1;
  color: #8C581F;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.service-header h1,
.rest-page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin: 0 0 0.8rem 0;
  line-height: 1.25;
}

.service-header p,
.rest-page-header p {
  font-size: 1.1rem;
  color: var(--color-texto-secundario);
  margin: 0;
}

/* Tarjeta Principal Hero Doble */
.service-hero-card,
.rest-hero-card {
  background-color: var(--color-crema-fondo);
  border: 1px solid var(--color-crema-borde);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-hero-body,
.rest-hero-info {
  flex: 1 1 50%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.service-hero-body h2,
.rest-hero-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin: 0 0 1.2rem 0;
  line-height: 1.3;
}

.service-hero-body p,
.rest-hero-info p {
  color: var(--color-texto-secundario);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.8rem 0;
}

.service-checklist,
.rest-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-checklist li,
.rest-checklist li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-nogal);
}

.service-check-icon,
.rest-check-circle {
  min-width: 22px;
  width: 22px;
  height: 22px;
  background-color: var(--color-dorado);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.service-hero-img,
.rest-hero-photo {
  flex: 1 1 50%;
  min-height: 400px;
}

.service-hero-img img,
.rest-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fila de 3 Tarjetas */
.service-cards-title,
.rest-specialties h2 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin: 0 0 2.5rem 0;
}

.service-cards-grid,
.rest-grid-3cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card-item,
.rest-card {
  background: #ffffff;
  border: 1px solid var(--color-crema-borde);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.service-card-item img,
.rest-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card-body,
.rest-card-content {
  padding: 1.6rem;
  flex-grow: 1;
}

.service-card-body h3,
.rest-card-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-nogal);
  margin: 0 0 0.6rem 0;
}

.service-card-body p,
.rest-card-content p {
  font-size: 0.92rem;
  color: #6E6256;
  line-height: 1.5;
  margin: 0;
}

/* Responsivo */
@media (max-width: 900px) {
  .service-hero-card,
  .rest-hero-card {
    flex-direction: column;
  }
  .service-hero-img,
  .rest-hero-photo {
    height: 260px;
    min-height: auto;
  }
  .service-hero-body,
  .rest-hero-info {
    padding: 2rem 1.5rem;
  }
  .service-cards-grid,
  .rest-grid-3cards {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   PIE DE PÁGINA (FOOTER) - CENTRADO ABSOLUTO Y REAJUSTE CASSIOPEIA
   ========================================================================== */

/* 1. Resetear el contenedor footer de Cassiopeia a ancho completo centrado */
footer.container-footer,
.container-footer {
  display: block !important;
  width: 100% !important;
  background-color: #1c130f !important;
  color: #d8cec4 !important;
  padding: 4rem 1.5rem 2rem 1.5rem !important;
  margin: 0 !important;
  border-top: 2px solid #C08239 !important;
  box-sizing: border-box !important;
}

/* 2. Forzar a cualquier contenedor intermedio de Cassiopeia a ocupar el 100% */
.container-footer .grid-child,
.container-footer .moduletable,
.container-footer > div {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

/* 3. Contenedor del contenido centrado con márgenes automáticos */
.site-footer-custom {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* 4. Rejilla de 4 columnas */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.2rem 0;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background-color: #C08239;
  margin-top: 6px;
  border-radius: 2px;
}

.footer-col p {
  color: #bfb2a5;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links li a {
  color: #d8cec4;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #C08239;
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: #d8cec4;
  line-height: 1.4;
}

.footer-contact-list li span.footer-icon {
  color: #C08239;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

.footer-contact-list a {
  color: #d8cec4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #C08239;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8c7e72;
  width: 100%;
  box-sizing: border-box;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #8c7e72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #C08239;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
/* ==========================================================================
   BOTÓN HAMBURGUESA CORPORATIVO VISIBLE (FONDO DORADO / LÍNEAS NOGAL)
   ========================================================================== */

@media (max-width: 991.98px) {
  /* Contenedor del botón con fondo sólido para contraste directo */
  button.navbar-toggler,
  .navbar-toggler {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 40px !important;
    padding: 0 !important;
    background-color: #C08239 !important; /* Fondo dorado sólido */
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  }

  /* Ocultamos cualquier icono SVG o span problemático de Bootstrap */
  .navbar-toggler-icon,
  .navbar-toggler svg {
    display: none !important;
  }

  /* Inyectamos las 3 barras blancas nítidas con CSS en el propio botón */
  button.navbar-toggler::before,
  .navbar-toggler::before {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    background-color: #ffffff !important; /* Barra superior */
    border-radius: 2px !important;
    /* Sombras que generan la barra central e inferior automáticamente */
    box-shadow: 
      0 6px 0 0 #ffffff,
      0 12px 0 0 #ffffff !important;
    transform: translateY(-6px) !important;
  }
}
/* ==========================================================================
   DESPLIEGUE MÓVIL ORDENADO (CABECERA Y MENÚ)
   ========================================================================== */

@media (max-width: 991.98px) {
  /* 1. Barra superior: Logo a la izquierda y Botón a la derecha */
  .container-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1.25rem !important;
    position: relative !important;
  }

  /* Asegurar tamaño y posición fija del logo */
  .container-header .navbar-brand,
  .container-header .site-logo {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    order: 1 !important;
    max-width: 170px !important;
  }

  .container-header .navbar-brand img,
  .container-header .site-logo img {
    max-height: 48px !important;
    width: auto !important;
  }

  /* Fijar el botón hamburguesa en la esquina superior derecha */
  button.navbar-toggler,
  .navbar-toggler {
    order: 2 !important;
    margin: 0 !important;
  }

  /* 2. Contenedor desplegable: ocupa todo el ancho inferior */
  .container-header .navbar-collapse {
    order: 3 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    background-color: #ffffff !important;
    margin-top: 1rem !important;
    padding: 0.5rem 0 1rem 0 !important;
    border-top: 1px solid #eee !important;
  }

  /* 3. Lista de enlaces en columna vertical uniforme */
  .container-header .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.25rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .container-header .navbar-nav li,
  .container-header .navbar-nav .nav-item {
    width: 100% !important;
    text-align: center !important;
  }

  /* Enlaces de texto normales */
  .container-header .navbar-nav .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #2A1D17 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  .container-header .navbar-nav .nav-link:hover,
  .container-header .navbar-nav .nav-link:focus {
    background-color: #FAF8F5 !important;
    color: #C08239 !important;
  }

  /* Botón destacado "El Taller / Contacto" */
  .container-header .navbar-nav li:last-child .nav-link,
  .container-header .navbar-nav .btn-taller .nav-link {
    margin-top: 0.6rem !important;
    background-color: #C08239 !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    display: inline-block !important;
    width: auto !important;
    box-shadow: 0 3px 8px rgba(192, 130, 57, 0.25) !important;
  }
}
/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (SUBIDO 2 CM Y CON ICONO VISIBLE)
   ========================================================================== */

a.wa-floating-btn {
  position: fixed !important;
  bottom: 100px !important; /* Elevado ~2 cm sobre el margen inferior */
  right: 25px !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #25D366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  z-index: 999999 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

a.wa-floating-btn:hover {
  transform: scale(1.08) !important;
  background-color: #20ba5a !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

/* Imagen SVG blanca forzada */
a.wa-floating-btn img {
  width: 34px !important;
  height: 34px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* En móviles se mantiene elevado para no tapar barras de navegación o cookies */
@media (max-width: 600px) {
  a.wa-floating-btn {
    bottom: 90px !important;
    right: 18px !important;
    width: 52px !important;
    height: 52px !important;
  }

  a.wa-floating-btn img {
    width: 28px !important;
    height: 28px !important;
  }
}
/* ==========================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES
   ========================================================================== */

.cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #2A1D17 !important; /* Nogal oscuro */
  color: #FAF8F5 !important;
  padding: 1.2rem 1.5rem !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
  z-index: 999998 !important; /* Justo debajo del botón flotante */
  border-top: 2px solid #C08239 !important; /* Detalle dorado */
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #EDE8E1 !important;
  flex: 1 1 500px;
}

.cookie-banner-content p a {
  color: #C08239 !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.cookie-banner-content p a:hover {
  color: #ffffff !important;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.2rem !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Botón Rechazar */
.cookie-btn-reject {
  background-color: transparent !important;
  color: #EDE8E1 !important;
  border: 1px solid #735D50 !important;
}

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Botón Aceptar */
.cookie-btn-accept {
  background-color: #C08239 !important;
  color: #ffffff !important;
  border: 1px solid #C08239 !important;
}

.cookie-btn-accept:hover {
  background-color: #a86e2e !important;
  border-color: #a86e2e !important;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem !important;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
/* ==========================================================================
   PÁGINA DE CONFIRMACIÓN / GRACIAS
   ========================================================================== */

.thank-you-wrap {
  padding: 3rem 1rem 5rem 1rem;
  display: flex;
  justify-content: center;
}

.thank-you-card {
  max-width: 680px;
  width: 100%;
  background-color: #FAF8F5;
  border: 1px solid #EAE3DA;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(42, 29, 23, 0.05);
}

.thank-you-icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  background-color: rgba(192, 130, 57, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-icon {
  width: 44px;
  height: 44px;
  color: #C08239; /* Dorado corporativo */
}

.thank-you-card h1 {
  font-size: 2rem;
  color: #2A1D17;
  margin: 1rem 0 1rem 0;
}

.thank-you-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 2rem;
}

.thank-you-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #EAE3DA;
  margin-bottom: 2rem;
}

.thank-you-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: #2A1D17;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-text strong {
  display: block;
  color: #2A1D17;
  font-size: 0.95rem;
}

.step-text p {
  margin: 0.2rem 0 0 0;
  font-size: 0.88rem;
  color: #666;
}

.thank-you-urgent-box {
  border-top: 1px solid #EAE3DA;
  padding-top: 1.8rem;
}

.thank-you-urgent-box p {
  font-size: 0.92rem;
  color: #777;
  margin-bottom: 1.2rem;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-urgent-wa {
  display: inline-block;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: background-color 0.2s ease;
}

.btn-urgent-wa:hover {
  background-color: #20ba5a;
}

.btn-return-home {
  display: inline-block;
  background-color: transparent;
  color: #2A1D17 !important;
  border: 1px solid #735D50;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-return-home:hover {
  background-color: #2A1D17;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .thank-you-card {
    padding: 2rem 1.25rem;
  }
  .thank-you-actions {
    flex-direction: column;
  }
}
/* ==========================================================================
   RESET RADICAL Y CONTROL DE LÍNEA ACTIVA EN EL MENÚ
   ========================================================================== */

/* 1. Eliminar cualquier línea previa (bordes, subrayados, sombras y pseudoelementos) */
.container-header .navbar-nav li,
.container-header .navbar-nav li a,
.container-header .navbar-nav .nav-link,
.container-header .navbar-nav .default,
.container-header .navbar-nav .default a,
.container-header .navbar-nav .item-101 a {
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.container-header .navbar-nav li a::after,
.container-header .navbar-nav .nav-link::after,
.container-header .navbar-nav .default a::after {
  content: none !important;
  display: none !important;
}

/* 2. Definir la línea dorada únicamente para la clase '.menu-activo' */
.container-header .navbar-nav .nav-link.menu-activo {
  position: relative !important;
  color: #C08239 !important; /* Dorado corporativo */
}

.container-header .navbar-nav .nav-link.menu-activo::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 20% !important;
  width: 60% !important;
  height: 2.5px !important;
  background-color: #C08239 !important;
  border-radius: 2px !important;
}

/* 3. Asegurar que el botón 'El Taller / Contacto' nunca tenga línea inferior */
.container-header .navbar-nav li:last-child .nav-link::after {
  display: none !important;
}
/* ==========================================================================
   LÍNEA DORADA EN ELEMENTO ACTIVO (METISMENU)
   ========================================================================== */

/* 1. Limpieza total en Inicio si no es la página actual */
.metismenu-item.default:not(.current) a,
.metismenu-item.item-101:not(.current) a {
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* 2. Estilo base de los enlaces del menú */
.metismenu.mod-menu a {
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important; /* Reserva el espacio para evitar saltos */
  padding-bottom: 4px !important;
  transition: border-color 0.2s ease, color 0.2s ease !important;
}

/* 3. Dibujar la línea dorada en el elemento actual (.current) */
.metismenu.mod-menu .current a,
.metismenu.mod-menu li.current > a,
.metismenu.mod-menu .active.current > a {
  border-bottom: 2.5px solid #C08239 !important; /* Línea dorada */
  color: #C08239 !important;
  font-weight: 700 !important;
}

/* 4. Efecto hover al pasar el ratón por los demás */
.metismenu.mod-menu a:hover {
  border-bottom-color: rgba(192, 130, 57, 0.5) !important;
}

/* 5. Asegurar que el botón de 'El Taller' / Contacto no lleve raya inferior */
.metismenu.mod-menu li:last-child a {
  border-bottom: none !important;
}
/* ==========================================================================
   ELIMINAR LÍNEA GRIS RESIDUAL EN 'INICIO' (LI Y ENLACES)
   ========================================================================== */

/* 1. Anular cualquier borde o sombra en el contenedor LI de Inicio */
.metismenu.mod-menu li.item-101,
.metismenu.mod-menu li.default,
.metismenu.mod-menu li.item-101:not(.current),
.metismenu.mod-menu li.default:not(.current) {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 2. Anular cualquier borde o sombra en el enlace de Inicio */
.metismenu.mod-menu li.item-101:not(.current) > a,
.metismenu.mod-menu li.default:not(.current) > a,
.metismenu.mod-menu li.item-101:not(.current) a,
.metismenu.mod-menu li.default:not(.current) a {
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* 3. Eliminar pseudoelementos ::before o ::after que pudieran pintar la línea gris */
.metismenu.mod-menu li.item-101:not(.current)::after,
.metismenu.mod-menu li.item-101:not(.current)::before,
.metismenu.mod-menu li.item-101:not(.current) > a::after,
.metismenu.mod-menu li.item-101:not(.current) > a::before {
  content: none !important;
  display: none !important;
  border: none !important;
}
/* ==========================================================================
   PORTAFOLIO DE TRABAJOS REALIZADOS (ANCHO COMPLETO / FULLWIDTH)
   ========================================================================== */

/* ==========================================================================
   PORTAFOLIO DE TRABAJOS REALIZADOS (SANGRADO TOTAL 100VW)
   ========================================================================== */

.proyecto-card {
  /* Rompe el contenedor de Joomla y ocupa el 100% real de la pantalla */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 3.5rem !important;

  /* Fondo beige claro continuo sin márgenes ni bordes laterales */
  background-color: #FAF8F5 !important;
  border-top: 1px solid #EAE3DA !important;
  border-bottom: 1px solid #EAE3DA !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
/* Contenedor interno centrado y amplio */
.proyecto-inner-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.proyecto-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* Área de Imagen / Galería */
.proyecto-gallery {
  position: relative;
  background-color: #2A1D17;
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 10px 25px rgba(42, 29, 23, 0.12);
}

.proyecto-gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.proyecto-gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.proyecto-gallery-scroll::-webkit-scrollbar-thumb {
  background-color: #C08239;
  border-radius: 4px;
}

.proyecto-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  position: relative;
}

.proyecto-slide img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.proyecto-badge-tipo {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: #C08239;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Información del Proyecto */
.proyecto-info {
  padding: 0;
}

.proyecto-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #735D50;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.proyecto-meta span::after {
  content: "•";
  margin-left: 1rem;
}

.proyecto-meta span:last-child::after {
  content: "";
}

.proyecto-info h3 {
  color: #2A1D17;
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.proyecto-info p {
  color: #555555;
  line-height: 1.65;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

/* Ficha técnica */
.proyecto-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: #ffffff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #EAE3DA;
  margin-bottom: 1.8rem;
}

.spec-item strong {
  display: block;
  font-size: 0.78rem;
  color: #735D50;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.spec-item span {
  font-size: 0.95rem;
  color: #2A1D17;
  font-weight: 600;
}

/* Enlace a presupuesto */
.btn-presupuesto-proyecto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #C08239;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-presupuesto-proyecto:hover {
  color: #2A1D17;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
  .proyecto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .proyecto-gallery,
  .proyecto-slide img {
    min-height: 300px;
    height: 300px;
  }

  .proyecto-inner-container {
    padding: 2rem 1rem;
  }
}
/* ==========================================================================
   FLECHAS E INDICADORES DE LA GALERÍA DE PROYECTOS
   ========================================================================== */

/* Flechas de navegación izquierda / derecha */
.galeria-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: rgba(42, 29, 23, 0.82) !important;
  color: #FAF8F5 !important;
  border: 1px solid rgba(192, 130, 57, 0.7) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  
  /* Centrado geométrico absoluto */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  user-select: none !important;
}

/* Tamaño y posición del SVG interior */
.galeria-arrow svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.galeria-arrow:hover {
  background-color: #C08239 !important;
  color: #ffffff !important;
  border-color: #C08239 !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.galeria-arrow:hover {
  background-color: #C08239 !important;
  color: #ffffff !important;
  border-color: #C08239 !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.galeria-prev {
  left: 15px !important;
}

.galeria-next {
  right: 15px !important;
}

/* Cartelito flotante inferior "Desliza" */
.galeria-hint {
  position: absolute !important;
  bottom: 12px !important;
  right: 15px !important;
  background-color: rgba(42, 29, 23, 0.75) !important;
  color: #EDE8E1 !important;
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  pointer-events: none !important;
  z-index: 4 !important;
  letter-spacing: 0.3px;
}

/* En móviles las flechas son un poco más compactas */
@media (max-width: 600px) {
  .galeria-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.5rem !important;
  }
  .galeria-prev { left: 8px !important; }
  .galeria-next { right: 8px !important; }
}
/* Ocultar texto huérfano dentro del contenedor principal */
.container-component {
    font-size: 0 !important;
}

.container-component > * {
    font-size: 1rem !important;
}