/**
 * MiTerapia — Base reset override
 *
 * Neutraliza las reglas agresivas de hello-elementor/reset.css
 * (botones, inputs, links, tablas) dentro del scope del plugin.
 *
 * Cadena de carga: reset.css → theme.css → base-reset.css → [módulo].css
 *
 * ⚠️ Se usa :where() para que el scoping tenga CERO especificidad adicional.
 *    Así este CSS gana a reset.css por orden de cascada, pero los CSS
 *    de cada módulo (login.css, dashboard.css, etc.) lo sobreescriben
 *    con selectores de clase normales.
 *
 * Prefijos del plugin: .mt-  .mt-dir-  .mt-author-  .mt-booking-  .mt-dash-
 *
 * @package MiTerapia_Integrations
 * @since   1.10.0
 */

/* ══════════════════════════════════════════
   BOTONES — anular estilos de reset.css
   reset.css:  [type=button],[type=submit],button { border:1px solid #c36; color:#c36; ... }
   reset.css:  [type=button]:hover, button:hover  { background:#c36; color:#fff; }
   ══════════════════════════════════════════ */

:where([class*="mt-"]) button,
:where([class*="mt-"]) [type="button"],
:where([class*="mt-"]) [type="submit"] {
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    font-weight: inherit;
    padding: 0;
    transition: none;
    -webkit-appearance: none;
    appearance: none;
}

:where([class*="mt-"]) button:hover,
:where([class*="mt-"]) button:focus,
:where([class*="mt-"]) [type="button"]:hover,
:where([class*="mt-"]) [type="button"]:focus,
:where([class*="mt-"]) [type="submit"]:hover,
:where([class*="mt-"]) [type="submit"]:focus {
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}

/* ══════════════════════════════════════════
   INPUTS — anular border #666, padding, etc. de reset.css
   reset.css:  input[type=email],... { border:1px solid #666; padding:.5rem 1rem }
   ══════════════════════════════════════════ */

:where([class*="mt-"]) input[type="text"],
:where([class*="mt-"]) input[type="email"],
:where([class*="mt-"]) input[type="password"],
:where([class*="mt-"]) input[type="tel"],
:where([class*="mt-"]) input[type="number"],
:where([class*="mt-"]) input[type="url"],
:where([class*="mt-"]) input[type="search"],
:where([class*="mt-"]) input[type="date"],
:where([class*="mt-"]) textarea,
:where([class*="mt-"]) select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

:where([class*="mt-"]) input:focus,
:where([class*="mt-"]) textarea:focus,
:where([class*="mt-"]) select:focus {
    border-color: #6b7280;
    outline: none;
}

/* ══════════════════════════════════════════
   LINKS — anular color #c36 y hover #336 de reset.css
   reset.css:  a { color:#c36 }  a:hover { color:#336 }
   ══════════════════════════════════════════ */

:where([class*="mt-"]) a {
    color: inherit;
    text-decoration: none;
}

:where([class*="mt-"]) a:hover,
:where([class*="mt-"]) a:active {
    color: inherit;
}

/* ══════════════════════════════════════════
   TABLAS — anular borders/striping/hover de reset.css
   ══════════════════════════════════════════ */

:where([class*="mt-"]) table {
    border-collapse: collapse;
    margin-block-end: 0;
}

:where([class*="mt-"]) table td,
:where([class*="mt-"]) table th {
    border: none;
    padding: 0;
}

:where([class*="mt-"]) table tbody > tr:nth-child(odd) > td,
:where([class*="mt-"]) table tbody > tr:nth-child(odd) > th {
    background-color: transparent;
}

:where([class*="mt-"]) table tbody tr:hover > td,
:where([class*="mt-"]) table tbody tr:hover > th {
    background-color: transparent;
}

/* ══════════════════════════════════════════
   HEADINGS — anular margins de reset.css
   reset.css:  h1-h6 { margin-block-end:1rem; margin-block-start:.5rem }
   ══════════════════════════════════════════ */

:where([class*="mt-"]) h1,
:where([class*="mt-"]) h2,
:where([class*="mt-"]) h3,
:where([class*="mt-"]) h4,
:where([class*="mt-"]) h5,
:where([class*="mt-"]) h6 {
    margin-block-start: 0;
    margin-block-end: 0;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ══════════════════════════════════════════
   LABELS — anular vertical-align de reset.css
   ══════════════════════════════════════════ */

:where([class*="mt-"]) label {
    display: inline-block;
    line-height: inherit;
    vertical-align: baseline;
}

/* ══════════════════════════════════════════
   LISTAS — reset limpio
   ══════════════════════════════════════════ */

:where([class*="mt-"]) ul,
:where([class*="mt-"]) ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
