
/* ==========================================
   MIROSOLAR - RESPONSIVE MOBILE
   Version limpia y organizada
   Solo pantallas de hasta 767px
   ========================================== */

/* Boton hamburguesa oculto en escritorio */
#mobile-menu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {

  /* ==================================
     CONFIGURACION GENERAL
     ================================== */

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-size: 14px;
    overflow-x: hidden;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  div.wrapper {
    width: 100%;
    min-width: 0;
  }

  #header, #topbar, #homepage,
  #breadcrumb, #container, #container2,
  #footer, #copyright {
    width: 100%;
    max-width: 100%;
  }

  /* ==================================
     CABECERA Y LOGO
     ================================== */

  .col1 {
    height: auto;
    background-size: auto 100%;
  }

  #header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    height: auto;
  }

  #header #logo {
    display: block;
    float: none;
    margin: 0;
    width: 190px;
    max-width: calc(100% - 115px);
    height: 85px;
    background-position: center;
    background-size: contain;
  }

  /* ==================================
     BOTON MENU / CERRAR
     ================================== */

  #mobile-menu-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100px;
    min-width: 100px;
    height: 44px;
    margin: 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
  }

  /* Texto del boton */
  #mobile-menu-toggle::before {
    content: "MEN\00DA";
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #f36b21;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
    white-space: nowrap;
  }

  /* Tres rayitas apiladas verticalmente */
  #mobile-menu-toggle span {
    display: block;
    position: absolute;
    right: 10px;
    width: 23px;
    height: 3px;
    margin: 0;
    padding: 0;
    background: #f36b21;
    border-radius: 3px;
    transition: transform .2s ease,
                opacity .2s ease;
  }

  #mobile-menu-toggle span:nth-child(1) {
    top: 13px;
  }

  #mobile-menu-toggle span:nth-child(2) {
    top: 20px;
  }

  #mobile-menu-toggle span:nth-child(3) {
    top: 27px;
  }

  /* Estado abierto */
  #mobile-menu-toggle.is-open::before {
    content: "CERRAR";
  }

  #mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ==================================
     MENU DE NAVEGACION
     ================================== */

  #topnav {
    display: none;
    clear: both;
    float: none;
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
  }

  #topnav.menu-open {
    display: block;
  }

  #topnav ul,
  #topnav li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #topnav li a:link,
  #topnav li a:visited,
  #topnav li a:hover {
    display: block;
    padding: 12px 15px;
    background-image: none;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    color: #666;
  }

  /* Submenu Productos siempre visible
     cuando se abre la hamburguesa */

  #topnav li ul {
    position: static;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    border: none;
    background: #f3f3f3;
  }

  #topnav li li a:link,
  #topnav li li a:visited {
    width: 100%;
    padding: 10px 25px;
    font-size: 13px;
    background: #f3f3f3;
  }

  #header > br.clear {
    display: none;
  }

  /* ==================================
     FRANJA SUPERIOR
     ================================== */

  .col210 {
    height: 80px;
    background-size: cover;
  }

  #breadcrumb {
    height: 80px;
    background-size: cover;
    background-position: center;
  }

  /* ==================================
     CONTENIDO GENERAL
     ================================== */

  #container,
  #container2 {
    padding: 20px 15px;
    background-size: 100% auto;
  }

  #content {
    display: block;
    float: none;
    width: 100%;
    font-size: 15px;
    line-height: 1.7;
  }

  #content h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 18px 0 12px;
  }

  #content p {
    line-height: 1.7;
  }

  /* ==================================
     IMAGENES
     ================================== */

  #content img,
  #column img,
  .homepage img {
    max-width: 100%;
    height: auto;
  }

  .imgl, .imgr {
    max-width: 100%;
  }

  #content img.imgr,
  #content img.imgl {
    float: none;
    clear: both;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
  }

  /* ==================================
     COLUMNA DERECHA
     ================================== */

  #column {
    display: block;
    float: none;
    width: 100%;
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-left: none;
    border-top: 1px dotted #999;
  }

  #column .holder {
    width: 100%;
  }

  #column .holder h2.title {
    font-size: 20px;
  }

  /* ==================================
     BANNERS LATERALES
     ================================== */

  #column .baner {
    float: none;
    display: block;
    width: 100%;
    margin: 0 auto 20px;
    text-align: center;
  }

  #column .baner img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* ==================================
     HOME - SERVICIOS
     ================================== */

  #container .homepage {
    width: 100%;
    max-width: 100%;
  }

  #container .homepage ul {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  #container .homepage li {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px;
  }

  #container .homepage li img {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    margin: 0 auto 15px;
  }

  #container .homepage .tlo,
  #container .homepage p {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  /* ==================================
     SLIDER HOME RESPONSIVE
     ================================== */

  #featured_slide {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: #06458c;
  }

  #featured_content {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  #featured_content ul {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  #featured_content li {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  #featured_content .floater {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  #featured_content .floater a,
  #featured_content .floater img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Flechas del slider */

  #featured-item-prev,
  #featured-item-next {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 36px;
    margin-top: -18px;
    z-index: 10;
  }

  #featured-item-prev {
    left: 5px;
  }

  #featured-item-next {
    right: 5px;
  }

  #featured-item-prev img,
  #featured-item-next img {
    display: block;
    width: 18px;
    height: 36px;
  }

  /* ==================================
     TABLAS Y FORMULARIOS
     ================================== */

  #content table {
    max-width: 100%;
  }

  #content input[type="text"],
  #content textarea {
    max-width: 100%;
  }

  /* ==================================
     LOGOS DE MARCAS
     ================================== */

  #partner {
    margin-top: 25px;
    padding-top: 15px;
  }

  #partner img {
    max-width: 100%;
    height: auto;
  }

  /* ==================================
     FOOTER
     ================================== */

  #footer {
    width: 100%;
    max-width: 100%;
    padding: 25px 15px 20px;
    height: auto;
  }

  #footer .box {
    float: none;
    width: 100%;
    margin: 0;
  }

  #footer ul {
    float: none;
    width: 100%;
    text-align: center;
  }

  #footer .contactdetails {
    position: static !important;
    top: auto !important;
  }

  #footer .contactdetails li {
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .col4 {
    background-size: auto;
  }

  br.clear {
    clear: both;
  }

}
