.construction-notice {
  position: fixed;
  /* siempre visible */
  top: 0;
  /* en la parte superior */
  left: 0;
  width: 100%;
  background: rgba(40, 40, 40, 0.95);
  /* naranja semi-transparente */
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  z-index: 9999;
  /* encima de todo */
  font-family: sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ================= PALETA RIBATECH ================= */
:root {
  --ribatech-azul: #1b3661;        /* azul oscuro elegante */
  --ribatech-azul-claro: #2e4368;  /* hover suave */
  --ribatech-acento: #3f8fa3;      /* turquesa apagado */
  --ribatech-turquesa: #1aa0bf;
  --ribatech-gris: #f2f2f2;
  --ribatech-texto: #222;
}


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

body {
  font-family: 'Montserrat', Arial, sans-serif;
}

h1,
h2,
h3 {
  color: var(--ribatech-azul);
}

button {
  background: var(--ribatech-azul);
}

button:hover {
  background: var(--ribatech-azul-claro);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
.top-header {
  background: #f6f6f6;
  border-bottom: 1px solid #eee;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  position: relative;
}
.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.distribuidor-small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--ribatech-acento);
  margin-top: 4px;
}

.logo img {
  height: 40px;
}
.logo .imgderecha {
  height: 75px;
}

.claim {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
}

/* ================= MENÚ PRINCIPAL ================= */
.main-nav {
  background: #fff;
}

.main-nav .menu {
  display: flex;
  justify-content: center;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  padding: 15px 20px;
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #222;
  transition: all .25s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--ribatech-azul);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--ribatech-acento);
  transition: width .25s ease;
}

.main-nav a:hover::after {
  width: calc(100% - 40px);
}

.thermia-nav .has-submenu a{
  padding: 0;
}
/* ================= MENÚ THERMIA ================= */
.thermia-nav {
  background: #3a4351;
  position: relative;
}

.thermia-nav .menu {
  display: flex;
  justify-content: center;
}

.thermia-nav li {
  list-style: none;
  position: relative;
}

.thermia-nav span,
.thermia-nav a {
  display: block;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.thermia-nav span:hover,
.thermia-nav a:hover {
  color: var(--ribatech-acento);
}
/* Submenú por defecto oculto */
.thermia-nav .submenu {
  display: none;
}
/* SUBMENÚ DESKTOP */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}


.submenu li {
  list-style: none;
}

.submenu a {
  padding: 12px 18px;
  color: #222;
}

.submenu a:hover {
  color: var(--ribatech-azul);
}

/* BOTÓN PRODUCTOS (TABLET) */
.products-toggle {
  display: none;
  color: #fff;
  font-weight: 700;
  padding: 15px 20px;
  cursor: pointer;
}

#productsToggle {
  display: none;
}

/* ================= MOBILE MENU ================= */
.mobile-nav {
  display: none; /* por defecto oculto */
  /* CLAVE */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #f6f6f6;
}

.mobile-nav .logo  {
  margin-left: 10px;
}
.mobile-toggle {
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav .menu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: #fff;
}

#mobileToggle:checked+.mobile-toggle+.menu {
  max-height: 1000px;
}

.mobile-nav li {
  list-style: none;
  border-top: 1px solid #eee;
}

.mobile-nav>.menu>li>a,
.mobile-nav label {
  padding: 15px 20px;
}

.mobile-nav a,
.mobile-nav label {
  display: block;
  font-weight: 700;
}

/* SUBMENU MOBILE */
.products-mobile-toggle {
  cursor: pointer;
}
.mobile-nav .submenu {
  position: static;
  background: #3a4351;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.has-submenu:hover .submenu {
  display: block;
}

.mobile-nav .submenu li {
  padding: 0px 0px 0px 50px;
}

.mobile-nav .submenu li a {
  color: #ffffff;
}

#mobileProducts {
  display: none;
}

#mobileProducts:checked+label+.submenu {
  max-height: 400px;
}

.mobile-nav .submenu {
  display: none;
}

.has-submenu {
  position: relative;
}

.submenu {
  z-index: 9999;
}

input[type="checkbox"] {
  display: none !important;
}

/* ================= BREAKPOINTS ================= */
/* TABLET */
@media (max-width: 1024px) {
 .thermia-nav .menu {
    max-height: 0;          /* colapsado */
    overflow: hidden;       /* oculta el contenido */
    transition: max-height 0.4s ease; /* transición suave */
    flex-direction: column; /* vertical */
  }

  .products-toggle {
    display: block;
  }

  #productsToggle:checked+.products-toggle+.menu {
    max-height: 1000px; /* suficientemente alto para mostrar todo */
  }

}

/* MOBILE */
@media (max-width: 768px) {
  .top-header {
    display: none;
  }

  .main-nav,
  .thermia-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}



/* FOOTER */
.footer {
  background: var(--ribatech-azul);
  color: #fff;
  padding: 4rem 8% 2rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* LOGO */
.footer__brand .logo a img {
  width: 300px;
  height: auto;
}


.footer__col .logothermia img{
  width: 170px;
}

/* TEXTO DESCRIPTIVO */
.footer__brand .desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  /* ⬅️ más fiel */
  line-height: 1.6;
  color: #cfd3d8;
  text-align: justify;
}

/* TÍTULOS DE COLUMNA */
.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  /* ⬅️ ligeramente menor */
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* LISTAS */
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col ul li a {
  display: flex;
  /* flex container */
  justify-content: space-between;
  /* texto a la izquierda, > a la derecha */
  align-items: center;
  text-decoration: none;
  color: #cfd3d8;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

/* LINKS */
.footer__col a {
  position: relative;
  /* necesario para pseudo-elemento */
  text-decoration: none;
  color: #cfd3d8;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s;
}

/* Efecto hover: “>” aparece a la derecha */
.footer__col a::after {
  content: " >";
  /* el símbolo > */
  position: absolute;
  right: -25px;
  /* distancia al final del texto */
  transition: all 0.3s ease;
}

.footer__col a:hover {
  color: #cfd3d8;
  /* cambio de color al pasar */
}

.footer__col a:hover::after {
  opacity: 1;
  right: -5px;
  /* se mueve un poco al aparecer */
}

/* FOOTER BOTTOM */
.footer__bottom {
  margin-top: 3rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.85rem;
  /* ⬅️ como Thermia */
  color: #aaa;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .footer {
    padding: 3.5rem 6% 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer__col h4 {
    font-size: 0.9rem;
  }

  .footer__col a {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 2.5rem 5% 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    /* 🔑 no centrado, como Thermia */
  }

  .footer__brand .desc {
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: justify;
  }

  .footer__col h4 {
    font-size: 0.85rem;
    margin-top: 1.5rem;
  }

  .footer__col a {
    font-size: 0.8rem;
  }

  .footer__bottom {
    font-size: 0.7rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer__col a::after {
    right: 0px;
  }
  .footer__col a:hover::after {
  opacity: 1;
  right: 15px;
  /* se mueve un poco al aparecer */
}
}

/* CONTACTO FIJO */
.fixed-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ribatech-azul);
  color: #fff;
  padding: 20px 15px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2000;
  transition: background 0.3s;
}

.fixed-contact img{
    width: 20px;

}
.fixed-contact:hover {
  background: var(--ribatech-turquesa);
}

@media (max-width: 600px) {
  .fixed-contact {
    display: none;
  }

}



/** PRODUCTOS **/
/* GRID PRODUCTOS */
.productos-grid{
  display:flex;
  flex: row wrap;

  gap:20px;
  padding:20px;
}

.productos-grid-column{
  display:flex;
  flex-direction: column;

  gap:20px;
  padding:20px;
}


/* TARJETA */
.producto{
  list-style:none;
  width: 200px;
}

.producto a{
  display:block;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  text-align:center;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:.3s;
  
}

.producto a:hover{
  transform:translateY(-5px);
}

/* IMAGEN */
.producto img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}

/* TITULO */
.producto .titulo, .submenu .titulo{
  display:block;
  padding:12px;
  font-weight:700;
  color:#111;
}

