/* Tomadaca / Motor · Estructura interior de Milanuncios 2014 con identidad naranja/morado.
   No cambia los slugs históricos ni la estructura del buscador o los menús. */
:root{--orange:#ff7800;--purple:#2e2755;--purple-soft:#544d77;--stroke:#d7d6e3;--ink:#202027;--background:#dddee7}
*{box-sizing:border-box}html{min-height:100%;background:var(--background)}body.td-motor-body{margin:4px auto 0;width:996px;max-width:996px;font:13px/1.32 Arial,Verdana,sans-serif;color:var(--ink)}
a{color:var(--purple);text-decoration:none}a:hover{color:#e86000;text-decoration:underline}
.td-shell{width:996px;background:#fff;border:2px solid #9c99b0;border-bottom:0;border-radius:15px 15px 0 0;box-shadow:0 0 7px rgba(40,30,80,.18);overflow:hidden;min-height:550px}
.td-orange{height:66px;background:linear-gradient(#ff6a00,#ff8500);position:relative;display:flex;align-items:center;padding:2px 14px;gap:15px;border-radius:12px 12px 0 0;color:#fff}
.td-brand{height:62px;min-width:290px;display:flex;align-items:center;justify-content:flex-start}.td-brand img{display:block;width:auto;height:auto;max-width:290px;max-height:58px;object-fit:contain}
.td-claim{font-weight:800;font-size:18px;text-align:right;flex:1;text-shadow:1px 2px 2px rgba(75,27,0,.35)}
.td-subheader{background:linear-gradient(#fff,#ecedf3);border-bottom:3px solid var(--purple-soft);padding:8px 14px 6px;min-height:59px;color:var(--purple)}
.td-description{font-size:12px;color:#4f496b;line-height:1.4}.td-description strong{font-size:13px;color:var(--purple)}.td-crumb{margin-top:5px;font-size:11px;text-align:left}.td-crumb a{font-weight:700}
.td-body-grid{display:grid;grid-template-columns:minmax(0,1fr) 204px;gap:13px;padding:12px 12px 12px 10px;align-items:start}
.td-listing{min-width:0}.td-search{border:1px solid #bcbad1;border-radius:9px;background:linear-gradient(#fff,#f5f5f9);box-shadow:0 1px 2px rgba(51,50,70,.08);overflow:hidden}
.td-search-title{font:bold 15px Arial,sans-serif;text-align:center;background:linear-gradient(#ff8c10,#f17200);color:#fff;padding:7px;border-bottom:2px solid #da5c00;letter-spacing:.1px}
.td-search form{padding:10px}.td-search-row{display:flex;gap:7px;align-items:center;margin:0 0 7px;flex-wrap:wrap}.td-search-row:last-child{margin:0}
.td-search select,.td-search input{max-width:100%;font:12px Arial,sans-serif;color:#151525;border:1px solid #9998a6;border-radius:3px;background:white;min-height:27px;padding:3px 4px}
.td-category-row select{flex:1;min-width:0;width:32%}.td-filters-row label,.td-words-row label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.td-filters-row label:last-child{flex:1;justify-content:flex-start}.td-filters-row select[name=orden]{width:140px}.td-filters-row select[name=dias]{width:160px}.td-words-row input[name=palabras]{width:155px}.td-words-row select{flex:1;min-width:90px}
.td-words-row button{border:1px solid #db6400;color:#fff;background:linear-gradient(#ff9415,#f27300);font-size:13px;font-weight:bold;border-radius:5px;min-height:29px;padding:3px 14px;cursor:pointer}.td-words-row button:hover{background:#df6700}
.td-results-count{margin:12px 0 7px;padding:7px 5px 6px;color:var(--purple);font-size:15px;font-weight:700;border-bottom:1px solid var(--stroke)}.td-no-results{margin:0 0 22px;padding:12px 8px;font-size:12px;color:#575469;text-align:left}
.td-sidebar{min-width:0;text-align:left}.td-menu-panel{border:1px solid var(--stroke);border-radius:8px;background:linear-gradient(#fff,#faf9fd);margin-bottom:10px;overflow:hidden}
.td-menu-panel h2{margin:0 0 5px;padding:5px 8px;background:var(--purple-soft);color:#fff;text-align:center;font:bold 12px Arial,sans-serif}
.td-side-actions,.td-taxonomy,.td-other-sections,.td-popular-panel nav{display:flex;flex-direction:column;padding:3px 7px 8px;gap:0}
.td-side-actions a{font-size:10px;font-weight:700;padding:3px 1px;border-bottom:1px solid #f0f0f3}
.td-taxonomy a{display:block;font:11px/1.25 Verdana,Arial,sans-serif;padding:3px 0 3px 2px;min-height:18px}
.td-taxonomy .mes1{font-weight:700;color:var(--purple);background:#f1f0f6;border-top:1px solid #e4e3ed;margin-top:3px;padding-left:4px}
.td-taxonomy .mes2{padding-left:12px}.td-taxonomy .mes3{padding-left:23px;font-size:10px}
.td-other-sections a,.td-popular-panel nav a{font-size:11px;padding:3px 1px;border-bottom:1px solid #f0f0f3}
.td-map-panel{text-align:center}.td-map-panel img{display:inline-block;width:136px;height:129px;object-fit:contain;margin:4px 0 8px}
.td-page-footer{margin:12px 18px 18px;padding:9px 4px;border:1px solid var(--stroke);border-radius:18px;text-align:center;background:linear-gradient(#f1f2f6,#dfe0e8);font:bold 12px Arial,sans-serif;color:var(--purple)}.td-page-footer a{font-weight:bold}
.td-copyright{width:996px;min-height:40px;padding:12px 8px;text-align:center;font:11px Arial,sans-serif;color:#fff;background:var(--purple-soft);border:2px solid #9c99b0;border-top:0;border-radius:0 0 13px 13px;margin:0 auto 30px}.td-copyright a{color:var(--orange);font-weight:bold}
@media(max-width:995px){body.td-motor-body{margin-left:0;margin-right:0}}

/* TOMADACA - CORRECCIÓN FIDELIDAD MOTOR 2014 (v3)
   Solo presentación, sin cambiar la lógica ni rutas. */
.td-menu-panel .td-heading {
  margin:0 0 5px;
  padding:5px 8px;
  background:var(--purple-soft);
  color:#fff;
  text-align:center;
  font:bold 12px Arial,sans-serif;
}
.td-side-actions a {
  display:flex;
  align-items:center;
  gap:5px;
  text-align:left;
  min-height:30px;
  padding:2px 1px;
  font:700 10px/1.1 Arial,Verdana,sans-serif;
  border-bottom:1px solid #e7e6ef;
}
.td-side-actions a:last-child {border-bottom:0;}
.td-side-actions a > span:last-child {display:block;}
.td-side-actions .td-side-icon {
  display:block;
  flex:0 0 29px;
  width:29px;
  height:27px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}
.td-action-home .td-side-icon{background-image:url('/assets/tomadaca-oficial/inmobiliaria@4x.png');}
.td-action-publicar .td-side-icon{background-image:url('/assets/tomadaca-oficial/publicar-anuncios@4x.png');}
.td-action-modificar .td-side-icon{background-image:url('/assets/tomadaca-oficial/modificar-mis-anuncios@4x.png');}
.td-action-favoritos .td-side-icon{background-image:url('/assets/tomadaca-oficial/agregar-a-favoritos@4x.png');}
.td-action-seleccion .td-side-icon{background-image:url('/assets/tomadaca-oficial/mi-seleccion-de-anuncios@4x.png');}
.td-action-contactar .td-side-icon{background-image:url('/assets/tomadaca-categories/tomadaca-sobre.svg');}

/* TOMADACA MOTOR - MENU DESPLEGABLE HISTORICO 2014 (v4)
   .mes1: visible; .mes2/.mes3: ocultos hasta pasar por el padre.
   No afecta a MENU, OTRAS SECCIONES ni al buscador. */
.td-taxonomy a.mes2,
.td-taxonomy a.mes3 {
    display:none !important;
}
.td-taxonomy a.mes2.td-branch-visible,
.td-taxonomy a.mes3.td-branch-visible {
    display:block !important;
}
.td-taxonomy a.td-has-submenu:hover,
.td-taxonomy a.td-has-submenu:focus-visible {
    color:var(--orange,#ff7800);
}

/* TOMADACA MOTOR 2014 - LUPA BUSCAR: CORRECCION PUNTUAL v5 */
.td-search .td-words-row .td-motor-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 86px;
  min-height: 29px;
  padding: 3px 10px;
  white-space: nowrap;
}
.td-search .td-words-row .td-motor-go svg {
  display: block;
  flex: none;
}



/* Exclusivo de /juegos/; la base motor.css del VPS no se altera. */
.td-juegos-body .td-menu-panel .td-heading {margin:0 0 5px;padding:5px 8px;background:var(--purple-soft);color:#fff;text-align:center;font:bold 12px Arial,sans-serif}
.td-juegos-body .td-side-actions a{display:flex;align-items:center;gap:5px;text-align:left;min-height:30px;padding:2px 1px;font:700 10px/1.1 Arial,Verdana,sans-serif;border-bottom:1px solid #e7e6ef}
.td-juegos-body .td-side-actions a:last-child{border-bottom:0}
.td-juegos-body .td-side-actions .td-side-icon{display:block;flex:0 0 29px;width:29px;height:27px;background-position:center;background-repeat:no-repeat;background-size:contain}
.td-juegos-body .td-action-home .td-side-icon{background-image:url('/assets/tomadaca-categories/formacion-inicio.svg')}
.td-juegos-body .td-action-publicar .td-side-icon{background-image:url('/assets/tomadaca-oficial/publicar-anuncios@4x.png')}
.td-juegos-body .td-action-modificar .td-side-icon{background-image:url('/assets/tomadaca-oficial/modificar-mis-anuncios@4x.png')}
.td-juegos-body .td-action-favoritos .td-side-icon{background-image:url('/assets/tomadaca-oficial/agregar-a-favoritos@4x.png')}
.td-juegos-body .td-action-seleccion .td-side-icon{background-image:url('/assets/tomadaca-oficial/mi-seleccion-de-anuncios@4x.png')}
.td-juegos-body .td-action-contactar .td-side-icon{background-image:url('/assets/tomadaca-categories/tomadaca-sobre.svg')}
.td-juegos-body .td-taxonomy a.mes2,.td-juegos-body .td-taxonomy a.mes3{display:none !important}
.td-juegos-body .td-taxonomy a.mes2.td-branch-visible,.td-juegos-body .td-taxonomy a.mes3.td-branch-visible{display:block !important}
.td-juegos-body .td-other-sections .td-active-section{font-weight:bold;color:var(--orange,#f80)}
.td-juegos-body .td-juegos-form{padding:9px 8px 8px}
.td-juegos-body .td-juegos-row{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;margin-bottom:7px;font:12px Arial,sans-serif}
.td-juegos-body .td-juegos-row:last-child{margin-bottom:0}
.td-juegos-body .td-juegos-row select,.td-juegos-body .td-juegos-row input{font:12px Arial,sans-serif;min-height:27px;border:1px solid #9998a6;border-radius:3px;background:#fff;color:#171528;padding:3px 4px;min-width:0}
.td-juegos-body .td-juegos-categories select{flex:1 1 0}
.td-juegos-body .td-juegos-categories #ca1{flex:0 1 23%}
.td-juegos-body .td-juegos-categories #ca2{flex:1 1 40%}
.td-juegos-body .td-juegos-categories #protmp{flex:1 1 37%}
.td-juegos-body .td-juegos-filters label{white-space:nowrap}
.td-juegos-body .td-juegos-filters #palabras{flex:1 1 135px;width:125px}
.td-juegos-body .td-juegos-filters #demanda{flex:1.25 1 180px;width:180px}
.td-juegos-body .td-juegos-filters #dias{flex:1 1 120px;width:125px}
.td-juegos-body .td-juegos-go{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;border-radius:5px;padding:2px 8px;font:bold 12px Arial,sans-serif;color:white;border:1px solid #d96000;background:linear-gradient(#ff9e27,#f37600)}
.td-juegos-body .td-juegos-go:disabled{cursor:not-allowed;opacity:.88}
.td-juegos-body .td-lupa-icon{position:relative;display:inline-block;width:13px;height:13px;border:2px solid #fff;border-radius:50%;transform:scale(.84);margin-right:4px}
.td-juegos-body .td-lupa-icon:after{content:'';position:absolute;width:7px;height:2px;background:white;top:10px;left:9px;transform:rotate(45deg);transform-origin:left center}
@media(max-width:720px){.td-juegos-body .td-juegos-row{flex-wrap:wrap}.td-juegos-body .td-juegos-row select,.td-juegos-body .td-juegos-row input{flex:1 1 120px}}

/* El HTML original de Juegos tiene 3 filtros en la última fila: palabras, demanda y vendedor. */
.td-juegos-body .td-juegos-row{gap:6px}
.td-juegos-body .td-juegos-prices label{white-space:nowrap}
.td-juegos-body .td-juegos-prices #desde,.td-juegos-body .td-juegos-prices #hasta{width:65px;flex:0 1 65px}
.td-juegos-body .td-juegos-prices #orden{width:138px;flex:1 1 138px}
.td-juegos-body .td-juegos-prices #dias{width:162px;flex:1.15 1 162px}
.td-juegos-body .td-juegos-filters #palabras{flex:1 1 205px;width:200px}
.td-juegos-body .td-juegos-filters #demanda{flex:1 1 175px;width:175px}
.td-juegos-body .td-juegos-filters button{margin-left:auto}
.td-juegos-body .td-orange .td-claim{display:block}
@media(max-width:720px){.td-juegos-body .td-juegos-prices label{flex:0 0 auto}}

/* Selector de tipo de vendedor documentado en el HTML original de 2014. */
.td-juegos-body .td-juegos-filters #palabras{flex:1 1 105px;width:110px}
.td-juegos-body .td-juegos-filters #demanda{flex:1 1 125px;width:125px}
.td-juegos-body .td-juegos-filters #vendedor{flex:1 1 137px;width:137px}
.td-juegos-body .td-juegos-filters label{flex:0 0 auto}
.td-juegos-body .td-juegos-filters button{margin-left:auto}
