/*
Theme Name: ALMAR
Theme URI: https://almarautos.com/
Author: ALMAR Autos
Description: Tema propio y liviano de ALMAR Autos. El diseño lo ponen Elementor, Header Footer Elementor y los plugins de ALMAR; el tema arma el esqueleto de las páginas y el estilo base que antes daba Motors.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: almar
*/

/*
 * Estilo base: reemplaza a ~1,1 MB de hojas del tema y del plugin Motors.
 * Son las reglas de Motors que de verdad afectan algo en el sitio, relevadas el
 * 1/12/2026 en 21 páginas (portada, landings de marca, modelo, utilitarios e
 * híbridos, nuevos ingresos, ficha, 404, vendido y páginas informativas), con
 * el valor final que resultaba de la cascada (bootstrap → skin-custom →
 * wpcfto → plugin). Las ventanas ocultas de Motors (comparar, calculadora,
 * pedir precio) no se cuentan: desaparecen con Motors.
 */

/* Base */
*, ::before, ::after { box-sizing: border-box; }
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 100%; overflow-y: scroll; }
body { margin: 0; background-color: #fff; font-family: Lato, Arial, sans-serif; font-size: 16px; line-height: 22px; color: #232628; -webkit-font-smoothing: antialiased; }
:focus { outline: none !important; }
[role="button"] { cursor: pointer; }
.hidden { display: none !important; }
.mvl-tooltip, .mvl-tooltip-image { display: none; } /* cartel oculto que imprime el plugin Motors mientras siga activo */
.stm-hidden { display: none; visibility: hidden; }

/* Ancho del contenido (igual que Motors: hasta 1280 px, 15 px a los costados) */
.container { width: 100%; max-width: 1280px; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
.container::before, .container::after, .clearfix::before, .clearfix::after { display: table; content: " "; }
.container::after, .clearfix::after { clear: both; }

/* Títulos */
h1, h2, h3, h4, h5, h6, .h1, .h5 { font-family: inherit; color: #232628; font-weight: 700; font-style: normal; letter-spacing: 0; word-spacing: 0; }
h1, .h1 { margin: 0 0 10px; font-size: 50px; line-height: 56px; }
h2 { margin: 0 0 14px; font-size: 36px; line-height: 42px; }
h3 { margin: 0 0 15px; font-size: 26px; line-height: 32px; }
h4 { margin: 0 0 11px; font-size: 16px; line-height: 22px; }
h5, .h5 { margin: 0 0 7px; font-size: 14px; line-height: 22px; }
/* Sin achicar en celular: en Motors las opciones del tema (wpcfto) cargaban al
   final y anulaban esa regla, así que los títulos tenían el mismo tamaño siempre. */

/* Texto */
p { margin: 0 0 14px; }
.lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; }
ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: 20px; }
ul li, ol li { margin-bottom: 8px; }
dl { margin-top: 0; margin-bottom: 20px; }
dt, dd { line-height: 1.42857143; }
dt { font-weight: 700; }
dd { margin-left: 0; }
figure { margin: 0; }
i { font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; }
label { display: inline-block; max-width: 100%; margin-bottom: 0; font-weight: 400; }

/* Enlaces */
a { color: #0069b4; background-color: transparent; text-decoration: none; transition: .25s; }
a:hover, a:focus { color: #0069b4; text-decoration: none !important; }
a:active { color: #0069b4; outline: 0; }

/* Imágenes */
img { max-width: 100%; height: auto; vertical-align: middle; }
@media (max-width: 991px) { img { transform: translateZ(0); } }

/* Tablas */
table { width: 100%; margin-bottom: 20px; border: none; border-spacing: 0; border-collapse: collapse; background: transparent; }
td, th { padding: 0; }
table > thead tr th { text-transform: uppercase; font-size: 16px; }
table > tbody > tr > td, table > tbody > tr > th { background-color: transparent; }
table > tbody tr td { padding: 9px 0 8px; font-size: 12px; color: #888; border-bottom: 1px solid #d5d9e0; }
/* Venía del «CSS personalizado» de las opciones del tema Motors: tablas de fichas técnicas a 17 px. */
tbody tr td { font-size: 17px !important; }

/* Formularios */
button, input { margin: 0; font: inherit; color: inherit; }
input { line-height: normal; }
textarea, input { -webkit-appearance: none; appearance: none; }
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], input[type="search"], input[type="password"] {
  display: block; width: 100%; height: 47px; line-height: 47px; padding: 0 21px;
  font-weight: 400; font-size: 14px; color: #888; border: 2px solid #eceff3; background-color: #eceff3; outline: none !important;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="password"]:focus {
  border-color: #0069b4; color: #232628; background-color: #fff !important;
}
input[type="search"] { box-sizing: content-box; transition: .25s; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; }

/* Botones (los <button> del sitio; los de Elementor son enlaces y traen su estilo) */
button {
  -webkit-appearance: button; appearance: button; cursor: pointer; overflow: visible;
  display: block; text-align: center; padding: 17px 28px 15px; font-size: 14px; line-height: 14px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; color: #fff; border-radius: 3px; background-color: #0069b4;
  border: none; white-space: normal; box-shadow: 0 2px 0 rgba(0, 105, 180, .75); transform: translateZ(0); opacity: 1;
  text-decoration: none !important; outline: none !important; transition: opacity .2s ease-in !important;
}
button:hover { opacity: .8; color: #fff; }
button:active { position: relative; top: 2px; box-shadow: 0 0 0 rgba(0, 105, 180, .75); }

/* Clases de Bootstrap que aparecen en el contenido */
.btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857; text-align: center; white-space: nowrap; vertical-align: middle; touch-action: manipulation; cursor: pointer; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px; color: #fff; }
.btn:hover, .btn:focus { color: #333; text-decoration: none; }
.btn:active { background-image: none; outline: 0; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
.btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { color: #fff; background-color: #286090; border-color: #204d74; background-image: none; }
.btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.badge { display: inline-block; min-width: 10px; padding: 3px 6px; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; background-color: #777; border-radius: 10px; }

/* Íconos de Font Awesome (los carga Elementor) */
body i.fas { font-family: "Font Awesome 5 Free" !important; font-weight: 900; }
body i.fab { font-family: "Font Awesome 5 Brands" !important; font-weight: 400; }

/* Único ícono de la fuente de Motors que se usa: la moneda con $ del botón «Recibí el pago» de /vender/ */
.stm-moto-icon-cash::before {
  content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='white'/%3E%3Ctext x='12' y='17.2' text-anchor='middle' font-family='Arial,sans-serif' font-weight='700' font-size='15' fill='black'%3E$%3C/text%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='white'/%3E%3Ctext x='12' y='17.2' text-anchor='middle' font-family='Arial,sans-serif' font-weight='700' font-size='15' fill='black'%3E$%3C/text%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Respaldo si se apaga Header Footer Elementor */
.almar-tema-cabecera { padding: 16px 0; background: #164194; }
.almar-tema-cabecera a { color: #fff; font-weight: 900; font-size: 20px; }
.almar-tema-indice { padding-top: 32px; padding-bottom: 48px; }

@media print { a[href]::after { content: none !important; } }
