/******************************************************************
Theme Name: eTips Tools
Theme URI: https://tools.etips.cl
Description: Sitio construido por eTips Chile
Author: eTips Chile (Jorge Louis Fernandez Heredia)
Author URI: https://etips.cl
Version: 3.0
*/

/* ================================================================
   VARIABLES
   ================================================================ */
:root {
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --accent-color: #000000;
}

/* ================================================================
   BASE
   ================================================================ */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

footer address { font-style: normal; }

section[id], div[id] { scroll-margin-top: 80px; }

/* ================================================================
   NAVEGACIÓN
   ================================================================ */
@media (min-width: 992px) {
  #navDropdownTools:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}
.nav-link {
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 1rem;
}

/* ================================================================
   BOTONES
   ================================================================ */
.btn-premium {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 0;
  padding: 12px 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--accent-color);
  transition: all 0.3s ease;
}
.btn-premium:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-premium-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-radius: 0;
  padding: 12px 30px;
  font-weight: 500;
  border: 1px solid var(--text-dark);
  transition: all 0.3s ease;
}
.btn-premium-outline:hover {
  background-color: var(--text-dark);
  color: #fff;
}

/* ================================================================
   SECCIONES
   ================================================================ */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.bg-subtle {
  background-color: var(--bg-light);
}

/* ================================================================
   TARJETAS DE HERRAMIENTAS (home index)
   ================================================================ */
.tool-card {
  border: 1px solid #dee2e6;
  border-top-width: 3px;
  border-radius: 0;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 2rem;
}
.tool-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  color: inherit;
  text-decoration: none;
}
.tool-card .tool-icon {
  font-size: 2.5rem;
  color: var(--text-dark);
}
.tool-card .tool-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
}

/* Colores por categoría — borde superior y pill del tag */
.tool-card-wrap[data-cat="diagnostico"] .tool-card { border-top-color: #2563eb; }
.tool-card-wrap[data-cat="diagnostico"] .tool-tag  { background: #eff6ff; color: #1d4ed8; }

.tool-card-wrap[data-cat="utilidad"]    .tool-card { border-top-color: #0891b2; }
.tool-card-wrap[data-cat="utilidad"]    .tool-tag  { background: #ecfeff; color: #0e7490; }

.tool-card-wrap[data-cat="diseno"]      .tool-card { border-top-color: #7c3aed; }
.tool-card-wrap[data-cat="diseno"]      .tool-tag  { background: #f5f3ff; color: #5b21b6; }

.tool-card-wrap[data-cat="finanzas"]    .tool-card { border-top-color: #059669; }
.tool-card-wrap[data-cat="finanzas"]    .tool-tag  { background: #f0fdf4; color: #166534; }

.tool-card-wrap[data-cat="redaccion"]   .tool-card { border-top-color: #d97706; }
.tool-card-wrap[data-cat="redaccion"]   .tool-tag  { background: #fffbeb; color: #92400e; }

.tool-card-wrap[data-cat="sorteos"]     .tool-card { border-top-color: #db2777; }
.tool-card-wrap[data-cat="sorteos"]     .tool-tag  { background: #fdf2f8; color: #831843; }

/* ================================================================
   ÍCONOS
   ================================================================ */
.feature-icon {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* ================================================================
   RESULTADOS DE MEDICIÓN (herramienta tamaño pantalla)
   ================================================================ */
.medicion-card {
  border-left: 4px solid var(--accent-color);
  background-color: var(--bg-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.medicion-card .medicion-valor {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.medicion-card .medicion-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.medicion-card .medicion-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================================================
   FORMULARIOS
   ================================================================ */
.form-control {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #ced4da;
  background-color: transparent;
  padding: 15px 0;
}
.form-control:focus {
  box-shadow: none;
  border-bottom: 1px solid var(--accent-color);
  background-color: transparent;
}
/* .form-select mantiene padding y background de Bootstrap para
   conservar el caret SVG; solo se ajusta borde y radio */
.form-select {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #ced4da;
}
.form-select:focus {
  box-shadow: none;
  border-bottom: 1px solid var(--accent-color);
}
.form-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ================================================================
   MODAL SPINNER
   ================================================================ */
#modalBoxSpinner .modal-dialog { max-width: 120px; }
#modalBoxSpinner .modal-content { background: transparent; border: 0; box-shadow: none; }
#modalBoxSpinner .modal-body { min-height: 120px; background: transparent; }
#modalBoxSpinner .spinner-loading { width: 3rem; height: 3rem; }

/* ================================================================
   RESPONSIVE — md (768px – 991px)
   ================================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-brand img {
    height: 40px;
    max-width: 190px;
  }
}

/* ================================================================
   RESPONSIVE — xs (300px – 575px)
   ================================================================ */
@media (min-width: 300px) and (max-width: 575px) {
  .navbar-brand img {
    height: 34px;
    max-width: 160px;
  }
  .hero-cta-group .hero-btn {
    width: 100%;
    min-height: 52px;
  }
}
