* { box-sizing: border-box; font-family: 'Inter', sans-serif; margin: 0; padding: 0;  }
html { scroll-behavior: smooth; }
body { background: #ffffff; color: #18181b; overflow-x: hidden; }

.hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.5) 100%); }

.search-form {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.35);
}
/* .search-form select, */
.search-form input {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #27272a;
    border: 1px solid rgba(0,0,0,0.1);
}
.search-form select:focus,
.search-form input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}
.search-form select option { color: #27272a; background: #fff; }

.phone-bar {
  display: flex;
}

@media (min-width: 1024px) {
  .phone-bar {
    display: none !important;
  }
}

.top-bar {
    /* background: rgba(255,255,255,0.92); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* border-bottom: 1px solid #e4e4e7; */
}

.sombra-text {
    color: #fff;
    text-shadow: 0 0 5px rgba(17, 16, 16, 0.8), 0 0 8px rgba(13, 13, 13, 7.4);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
    /* Agregar un stroke fino para el borde */
    /* text-shadow: 
    1px 1px 0 rgba(20, 19, 19, 0.5),
    -1px -1px 0 rgba(23, 23, 23, 0.5),
    1px -1px 0 rgba(15, 14, 14, 0.5),
    -1px 1px 0 rgba(20, 19, 19, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.05); 
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
}

.lg\:inline {
	display: inline;
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.hidden {
	display: none;
}

.social-icon {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

.cat-img-container { position: relative; overflow: hidden; }
.cat-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.cat-img.active { opacity: 1; }

.cat-card { transition: all 0.3s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.vid-thumb { position: relative; overflow: hidden; cursor: pointer; }
.vid-thumb img { transition: transform 0.5s ease; }
.vid-thumb:hover img { transform: scale(1.05); }
.vid-thumb .vid-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease;
}
.vid-thumb:hover .vid-overlay { background: rgba(0,0,0,0.4); }
.vid-play-btn {
    width: 52px; height: 52px;
    background: rgba(238, 230, 225, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.vid-thumb:hover .vid-play-btn { transform: scale(1.12); background: #fdf9f6; }

.video-modal { opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.video-modal.active { opacity: 1; pointer-events: all; }
.video-modal-content { transform: scale(0.92) translateY(16px); transition: transform 0.35s ease; }
.video-modal.active .video-modal-content { transform: scale(1) translateY(0); }

.adv-card img { transition: transform 0.5s ease; }
.adv-card:hover img { transform: scale(1.05); }

.cta-btn { transition: all 0.2s ease; }
.cta-btn:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,44,117,0.35); }
.cta-btn:active { transform: scale(0.97); }

/* Footer menu */
.footer-link {
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-link:hover {
    border-bottom-color: #4a4949;
}

/* WhatsApp bubble */
.wa-bubble {
    position: relative;
    background: #00c338;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 20px 10px 14px;
}
.wa-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 10px;
    border-color: transparent transparent #00c338 transparent;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f4f4f5; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }
.text-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    -webkit-text-stroke: 1px white; 
}

.pt-16 {
	padding-top: 4rem;
}

.py-10 {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.relative {
	position: relative;
}

.sm\:h-\[320px\] {
	height: 320px;
}

.h-\[280px\] {
	height: 280px;
}

.text-\[16px\] {
	font-size: 16px;
}

/* select */
.custom-select {
  width: 100%;
  padding: 0.75rem 30px 0.75rem 0.75rem; /* top-right-bottom-left, el padding-right de 30px deja espacio para la flecha */
  border-radius: 0.75rem; /* 12px, equivalente a rounded-xl */
  font-size: 0.875rem;   /* 14px, text-sm */
  font-weight: 500;      /* medium */
  appearance: none;
  -webkit-appearance: none; /* para navegadores WebKit */
  -moz-appearance: none;    /* para Firefox */
  cursor: pointer;

  background-image: url('chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px; /* opcional, ajusta el tamaño de la flecha */
}

/* equipo */
.tabla_equipo {
	background-image: url('../media/engrane_fondo.png');
	background-repeat: no-repeat;
	background-position: center;
}

.tabla_equipo td {
	color: #858585;
	border-bottom: 2px dotted #858585;
}

.eq-modal{
  position:fixed; inset:0; z-index:300;
  display:none; align-items:center; justify-content:center;
  padding:20px;
}
.eq-modal.is-open{ display:flex; }
.eq-modal-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.7); backdrop-filter:blur(3px);
}
.eq-modal-content{
  position:relative; z-index:1;
  background:#fff; border-radius:14px;
  width:100%; max-width:820px;
  max-height:92vh; display:flex; flex-direction:column;
  overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.4);
}
.eq-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid #eee;
}
.eq-modal-head h3{ margin:0; font-size:15px; font-weight:800; }
.eq-modal-close{
  border:0; background:#f2f2f2; width:32px; height:32px;
  border-radius:50%; cursor:pointer; font-size:14px;
}
.eq-modal-close:hover{ background:#e5e5e5; }

.eq-modal-preview{
  flex:1; min-height:280px; background:#f3f0f0; overflow:auto;
}
.eq-modal-preview iframe{
  width:100%; height:100%; min-height:420px; border:0; display:block;
}

.eq-modal-foot{
  padding:14px 18px; border-top:1px solid #eee;
  display:grid; grid-template-columns:1fr 1fr auto; gap:10px;
  align-items:center;
}
.eq-input{
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:9px;
  font-size:13px; outline:0; transition:border-color .15s;
}
.eq-input:focus{ border-color:#007aff; }
.eq-input-subject{ grid-column:2; }
.eq-btn-send{
  background:#00a651; color:#fff; grid-column:3;
  padding:11px 22px; border-radius:9px;
}
.eq-btn-send:hover{ background:#008a44; }
.eq-btn-send:disabled{ opacity:.6; cursor:not-allowed; }
.eq-modal-msg{
  grid-column:1/-1; margin:4px 0 0; font-size:12px; min-height:16px;
}
.eq-modal-msg.ok{ color:#008a44; }
.eq-modal-msg.err{ color:#e2001a; }

@media (max-width:640px){
  .eq-modal-foot{ grid-template-columns:1fr; }
  .eq-input-subject, .eq-btn-send{ grid-column:1; }
}


/* Skeleton */
@keyframes shimmer {
0% { background-position: -400px 0; }
100% { background-position: 400px 0; }
}
.skeleton {
background: linear-gradient(90deg, #e4e4e7 25%, #f4f4f5 50%, #e4e4e7 75%);
background-size: 800px 100%;
animation: shimmer 1.5s ease-in-out infinite;
border-radius: 6px;
}

.gap-5 {
	gap: 1.25rem;
}

.mb-3 {
	margin-bottom: 1.5rem;
}

.mb-6 {
	margin-bottom: 3rem;
}

.mb-10 {
	margin-bottom: 2.5rem;
}

.text-zinc-400 {
	--tw-text-opacity: 1;
	color: rgb(161 161 170 / var(--tw-text-opacity, 1));
}

.hover\:text-zinc-700:hover {
	--tw-text-opacity: 1;
	color: rgb(63 63 70 / var(--tw-text-opacity, 1));
}

.py-2\.5 {
	padding-top: 0.625rem;
	padding-bottom: 0.625rem;
}

.px-3 {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.text-zinc-400 {
	--tw-text-opacity: 1;
	color: rgb(161 161 170 / var(--tw-text-opacity, 1));
}

.rounded-lg {
	border-radius: 0.25rem;
}

.w-9 {
	width: 2.25rem;
}

.h-9 {
	height: 2.25rem;
}

@media (min-width: 360px) and (max-width: 767px){
  .sm\:d-none {
    display: none !important;
  }
}

/* PERFIL */
/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
   /* 
.perfil-section {
  padding ya se aplica con perfil-py-10, etc. 
}
*/
.perfil-py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.perfil-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.perfil-mx-auto { margin-left: auto; margin-right: auto; }
.perfil-max-w-7xl { max-width: 80rem; }

/* ============================================
   TÍTULO
   ============================================ */
.perfil-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.perfil-font-bold { font-weight: 700; }
.perfil-mb-6 { margin-bottom: 1.5rem; }
.perfil-text-gray-800 { color: #1f2937; }

/* ============================================
   GRID DEL FORMULARIO
   ============================================ */
.perfil-grid { display: grid; }
.perfil-grid-cols-1 { grid-template-columns: 1fr; }
.perfil-gap-6 { gap: 1.5rem; }
.perfil-col-span-2 { grid-column: span 2 / span 2; }

/* ============================================
   GRUPO DE CAMPO (label + input)
   ============================================ */
.perfil-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.perfil-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.025em;
}

.perfil-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.perfil-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.perfil-textarea {
  resize: vertical;
  min-height: 80px;
}

.perfil-file {
  padding: 0.5rem 0.75rem;
  border: 1px dashed #d1d5db;
  background-color: #f9fafb;
  cursor: pointer;
}

.perfil-file:hover {
  background-color: #f3f4f6;
}

.perfil-logo-preview img {
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  padding: 0.25rem;
}

/* ============================================
   BOTÓN
   ============================================ */
.perfil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.perfil-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.perfil-btn-primary:hover {
  background-color: #1d4ed8;
}

.perfil-flex { display: flex; }
.perfil-justify-end { justify-content: flex-end; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) { /* md */
  .md\:perfil-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) { /* lg */
  .lg\:perfil-px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* DESEADOS */
/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
   /* 
.deseados-section {
  padding se aplica con clases 
}
*/
.deseados-py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.deseados-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.deseados-mx-auto { margin-left: auto; margin-right: auto; }
.deseados-max-w-7xl { max-width: 80rem; }
.deseados-mb-6 { margin-bottom: 1.5rem; }

/* ============================================
   ENCABEZADO
   ============================================ */
.deseados-flex { display: flex; }
.deseados-items-center { align-items: center; }
.deseados-justify-between { justify-content: space-between; }
.deseados-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.deseados-font-bold { font-weight: 700; }
.deseados-text-gray-800 { color: #1f2937; }

/* ============================================
   BOTONES
   ============================================ */
.deseados-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.deseados-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.deseados-btn-primary:hover {
  background-color: #1d4ed8;
}
.deseados-btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}
.deseados-btn-secondary:hover {
  background-color: #d1d5db;
}

/* ============================================
   GRID DE TARJETAS
   ============================================ */
.deseados-grid { display: grid; }
.deseados-grid-cols-1 { grid-template-columns: 1fr; }
.deseados-gap-4 { gap: 1rem; }

/* ============================================
   TARJETA INDIVIDUAL
   ============================================ */
.deseados-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.deseados-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.deseados-card-header {
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  background-color: #010062;
  color: white;
  font-size: 1.1rem;
}
.deseados-card-img {
  flex: 0 0 auto;
}
.deseados-card-img img {
  width: 100%;
  height: auto;
  display: block;
}
.deseados-card-body {
  padding: 0.75rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}
.deseados-card-body div {
  margin-bottom: 0.25rem;
}
.deseados-label {
  font-weight: 600;
  color: #4b5563;
}
.deseados-card-footer {
  background-color: #cccdcd;
  text-align: center;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   FORMULARIO
   ============================================ */
.deseados-mb-4 {
    margin-bottom: 2rem;
}
.deseados-col-span-2 { grid-column: span 2 / span 2; }
.deseados-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.deseados-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.deseados-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.deseados-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.deseados-textarea {
  resize: vertical;
  min-height: 60px;
}
.deseados-justify-end { justify-content: flex-end; }
.deseados-gap-2 { gap: 0.5rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .sm\:deseados-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:deseados-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:deseados-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:deseados-px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
  .xl\:deseados-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* COMPRAS */

/* ============================================
   SECCIÓN COMPRAS
   ============================================ */
.compras-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.compras-container {
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.compras-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

/* ============================================
   GRID DE TARJETAS
   ============================================ */
.compras-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Responsive */
@media (min-width: 576px) {
    .compras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .compras-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .compras-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   TARJETA INDIVIDUAL
   ============================================ */
.compras-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.compras-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   CABECERA (NÚMERO DE INVENTARIO)
   ============================================ */
.compras-card-header {
    background-color: #010062;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.025em;
}

/* ============================================
   IMAGEN
   ============================================ */
.compras-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f3f4f6;
}

.compras-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.compras-card:hover .compras-card-image img {
    transform: scale(1.05);
}

/* ============================================
   CUERPO (detalles)
   ============================================ */
.compras-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.compras-card-body p {
    margin: 0.25rem 0;
    line-height: 1.5;
}

.compras-card-body strong {
    color: #1f2937;
    font-weight: 600;
}

/* ============================================
   PIE (precios)
   ============================================ */
.compras-card-footer {
    padding: 0.75rem 1.25rem 1rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.compras-price {
    text-align: center;
    font-weight: 700;
    padding: 0.25rem 0;
}

.compras-price-main {
    font-size: 1.125rem;
    color: #1e3a8a; /* azul oscuro */
}

.compras-price-distributor {
    font-size: 0.875rem;
    color: #6b7280;
    border-top: 1px dashed #d1d5db;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

/* CARRITO */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.cart-py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cart-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.cart-mx-auto { margin-left: auto; margin-right: auto; }
.cart-max-w-7xl { max-width: 80rem; }

.cart-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.cart-font-bold { font-weight: 700; }
.cart-mb-6 { margin-bottom: 1.5rem; }
.cart-text-gray-800 { color: #1f2937; }

/* ============================================
   TABLA
   ============================================ */
.cart-overflow-x-auto { overflow-x: auto; }
.cart-w-full { width: 100%; }
.cart-border-collapse { border-collapse: collapse; }
.cart-text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.cart-bg-gray-100 { background-color: #f3f4f6; }
.cart-text-gray-700 { color: #374151; }
.cart-uppercase { text-transform: uppercase; }
.cart-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.cart-px-4 { padding-left: 1rem; padding-right: 1rem; }
.cart-text-left { text-align: left; }
.cart-text-center { text-align: center; }

.cart-border-b { border-bottom: 1px solid #e5e7eb; }
.cart-border-gray-200 { border-color: #e5e7eb; }
.hover\:cart-bg-gray-50:hover { background-color: #f9fafb; }

.cart-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.cart-flex { display: flex; }
.cart-items-center { align-items: center; }
.cart-gap-3 { gap: 0.75rem; }
.cart-gap-2 { gap: 0.5rem; }
.cart-w-16 { width: 4rem; }
.cart-h-16 { height: 4rem; }
.cart-object-cover { object-fit: cover; }
.cart-rounded { border-radius: 0.25rem; }
.cart-font-medium { font-weight: 500; }
.cart-font-semibold { font-weight: 600; }

.cart-btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.cart-text-red-500 { color: #ef4444; }
.hover\:cart-text-red-700:hover { color: #b91c1c; }
.cart-transition-colors { transition: color 0.2s; }

.cart-w-5 { width: 1.25rem; }
.cart-h-5 { height: 1.25rem; }

/* ============================================
   INPUTS Y BOTONES
   ============================================ */
.cart-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.cart-flex-1 { flex: 1; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.cart-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.cart-btn-primary:hover {
  background-color: #1d4ed8;
}

.cart-btn-secondary {
  background-color: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}
.cart-btn-secondary:hover {
  background-color: #e5e7eb;
}

/* ============================================
   RESUMEN
   ============================================ */
.cart-bg-gray-50 { background-color: #f9fafb; }
.cart-p-6 { padding: 1.5rem; }
.cart-rounded-lg { border-radius: 0.5rem; }
.cart-border { border: 1px solid #e5e7eb; }
.cart-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.cart-mb-4 { margin-bottom: 1rem; }
.cart-space-y-2 > * + * { margin-top: 0.5rem; }
.cart-justify-between { justify-content: space-between; }
.cart-border-t { border-top: 1px solid #e5e7eb; }
.cart-border-gray-300 { border-color: #d1d5db; }
.cart-pt-2 { padding-top: 0.5rem; }
.cart-mt-4 { margin-top: 1rem; }
.cart-flex-col { flex-direction: column; }
.cart-gap-3 { gap: 0.75rem; }
.cart-w-full { width: 100%; }
.cart-text-blue-600 { color: #2563eb; }
.hover\:cart-text-blue-800:hover { color: #1e40af; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .md\:cart-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:cart-col-span-2 { grid-column: span 2 / span 2; }
  .md\:cart-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:cart-px-8 { padding-left: 2rem; padding-right: 2rem; }
}

 
/* ESTILOS: Conversor + Cotizador  */


  /* ---------- Bloque de precio (amarillo) ---------- */
  .eqc-price-block{
    background:#fff806;
    padding:14px 20px 18px;
    text-align:center;
  }
  .eqc-price-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:4px;
  }
  .eqc-price-tag{
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
    color:#8a7c00;
  }
  /* Switch USD / MXN */
  .eqc-switch{
    display:inline-flex;
    background:rgba(0,0,0,.10);
    border-radius:999px;
    padding:3px;
  }
  .eqc-switch-btn{
    border:0;
    background:transparent;
    padding:5px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    color:#7a6f00;
    cursor:pointer;
    transition:all .18s ease;
  }
  .eqc-switch-btn.is-active{
    background:#111;
    color:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.28);
  }
  .eqc-price{
    margin:0;
    font-size:32px;
    font-weight:800;
    line-height:1.15;
    color:#e2001a;
    letter-spacing:-.01em;
  }
  .eqc-price-cur{
    font-size:15px;
    font-weight:800;
    color:#b3000f;
    margin-right:4px;
    vertical-align:2px;
  }

  /* ---------- Barra de tipo de cambio ---------- */
  .eqc-rate{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 14px;
    padding:12px 20px;
    background:#fafafa;
    border-bottom:1px solid #ececec;
  }
  .eqc-rate-label{
    font-size:11px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:#858585;
  }
  .eqc-rate-field{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#fff;
    border:1px solid #dcdcdc;
    border-radius:10px;
    padding:4px 10px;
    transition:border-color .18s, box-shadow .18s;
  }
  .eqc-rate-field:focus-within{
    border-color:#007aff;
    box-shadow:0 0 0 3px rgba(0,122,255,.15);
  }
  .eqc-rate-prefix,
  .eqc-rate-suffix{
    font-size:12px;
    font-weight:700;
    color:#858585;
  }
  .eqc-rate-input{
    width:74px;
    border:0;
    outline:0;
    background:transparent;
    text-align:center;
    font-size:15px;
    font-weight:800;
    color:#111;
    -moz-appearance:textfield;
  }
  .eqc-rate-input::-webkit-outer-spin-button,
  .eqc-rate-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
  .eqc-rate-btn{
    border:0;
    background:#007aff;
    color:#fff;
    font-size:12.5px;
    font-weight:800;
    padding:8px 16px;
    border-radius:10px;
    cursor:pointer;
    transition:background .18s, transform .12s;
  }
  .eqc-rate-btn:hover{background:#0066d6;}
  .eqc-rate-btn:active{transform:scale(.97);}

  /* ---------- Cotizador ---------- */
.eqc-quote{
  background:#fff;
  border-top:1px solid #ececec;
}
.eqc-quote-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  cursor:pointer;
  user-select:none;
  transition:background .16s;
}
.eqc-quote-head:hover{background:#fafafa;}
.eqc-quote-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:15px;
  font-weight:800;
  color:#111;
}
.eqc-quote-dot{
  width:8px;height:8px;border-radius:50%;
  background:#007aff;display:inline-block;
  box-shadow:0 0 0 3px rgba(0,122,255,.15);
}
.eqc-quote-sub{
  margin:3px 0 0 17px;
  font-size:12px;
  font-weight:500;
  color:#858585;
}
.eqc-chevron{
  color:#9a9a9a;
  font-size:12px;
  transition:transform .22s ease;
}
.eqc-quote.is-open .eqc-chevron{transform:rotate(180deg);}

.eqc-quote-body{
  display:none;
  padding:0 20px 22px;
}
.eqc-quote.is-open .eqc-quote-body{display:block;}

/* Cabecera de columnas */
.eqc-head-row{
  display:grid;
  grid-template-columns:1fr 130px;
  gap:8px;
  padding-bottom:7px;
  margin-bottom:10px;
  border-bottom:1px solid #ececec;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#a5a5a5;
}
.eqc-head-row span:last-child{text-align:right;}

/* Filas */
.eqc-rows{display:flex;flex-direction:column;gap:0;}
.eqc-row{
  display:grid;
  grid-template-columns:1fr 130px;
  gap:8px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px dashed #ececec;
}
.eqc-row:last-child{border-bottom:0;}

.eqc-cell-concepto{
  font-size:13.5px;
  color:#444;
  font-weight:500;
}
.eqc-row-total{
  font-size:13.5px;
  font-weight:800;
  color:#111;
  text-align:right;
  white-space:nowrap;
}

/* Totales */
.eqc-totals{
  margin-top:16px;
  padding:12px 14px;
  background:#f7f9fc;
  border:1px solid #e8eef6;
  border-radius:12px;
}
.eqc-total-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13.5px;
  color:#555;
}
.eqc-total-row.is-final{
  font-size:17px;
  font-weight:800;
  color:#0000ff;
}
.eqc-total-note{
  margin:8px 0 0;
  font-size:12px;
  color:#9a9a9a;
  text-align:right;
  font-weight: bold;
}

/* Responsive */
@media (max-width:560px){
  .eqc-head-row{display:none;}
  .eqc-row{grid-template-columns:1fr auto;}
}

  /* Estado de error en el tipo de cambio */
.eqc-rate-field.eqc-invalid{
  border-color:#e2001a !important;
  box-shadow:0 0 0 3px rgba(226,0,26,.15) !important;
  animation:eqc-shake .35s ease;
}
@keyframes eqc-shake{
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-4px);}
  75%{transform:translateX(4px);}
}

/* Cabecera del cotizador accesible por teclado */
.eqc-quote-head:focus-visible{
  outline:2px solid #007aff;
  outline-offset:-2px;
}

/* ============================================
   HEADER BASE
   ============================================ */
.hdr-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hdr-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* ============================================
   GRUPOS IZQUIERDA / DERECHA
   ============================================ */
.hdr-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hdr-left  { justify-content: flex-start; }
.hdr-right { justify-content: flex-end; }

/* ============================================
   LINKS (teléfono e idioma)
   ============================================ */
.hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hdr-link:hover { color: #18181b; }

.hdr-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.hdr-phone-text,
.hdr-lang-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* ============================================
   BANDERAS (círculo)
   ============================================ */
.hdr-flag {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.hdr-link:hover .hdr-flag { border-color: #fdba74; } /* naranja suave */

/* ============================================
   CENTRO: LOGO + NOMBRE
   ============================================ */
.hdr-center {
  display: flex;
  justify-content: center;
}

.hdr-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.hdr-logo {
  height: 2.5rem;
  object-fit: contain;
}

.hdr-brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  color: #18181b;
  line-height: 1;
}

/* ============================================
   TABLET / MOBILE  (≤1023px)
   ============================================ */
@media (max-width: 1023px) {
  .hdr-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left   right";
    row-gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .hdr-left   { grid-area: left;  }
  .hdr-center { grid-area: center; }
  .hdr-right  { grid-area: right; }

  /* Apilar verticalmente cada lado (2 filas: teléfono arriba, idioma abajo) */
  .hdr-side {
    flex-direction: column;
    gap: 0.125rem;
  }
  .hdr-left  { align-items: flex-start; }
  .hdr-right { align-items: flex-end; }

  /* Orden: teléfono primero, luego idioma */
  .hdr-left  .hdr-phone { order: 1; }
  .hdr-left  .hdr-lang  { order: 2; }
  .hdr-right .hdr-phone { order: 1; }
  .hdr-right .hdr-lang  { order: 2; }

  /* Achicar un poco el texto para tablet */
  .hdr-phone-text,
  .hdr-lang-text { font-size: 0.8125rem; }

  .hdr-logo { height: 2.25rem; }
  .hdr-brand-name { font-size: 0.75rem; }
}

/* ============================================
   MOBILE  (≤640px)
   ============================================ */
@media (max-width: 640px) {
  .hdr-container {
    padding: 0.5rem 0.75rem;
    row-gap: 0.375rem;
  }

  .hdr-logo { height: 2rem; }
  .hdr-brand-name { font-size: 0.6875rem; letter-spacing: 0.025em; }

  .hdr-flag {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 14px;
  }

  .hdr-phone-text,
  .hdr-lang-text { font-size: 0.75rem; }

  .hdr-icon { width: 0.8rem; height: 0.8rem; }
}

/* ============================================
   UTILIDAD EXTRA (tu clase original)
   ============================================ */
.hdr-sombra-text {
  text-shadow: 0 1px 1px rgba(0,0,0,0.06);
}