/* ======== GENERAL ======== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: #0d6efd;
  text-align: center;
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: #0d6efd;
}

a:hover {
  text-decoration: underline;
}

/* ======== HEADER ======== */
.tcs-header {
  background-color: #0d6efd;
  color: white;
  padding: 10px 0;
}

.tcs-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.tcs-header a {
  color: white;
  font-weight: 500;
  margin: 0 10px;
}

.tcs-header a:hover {
  text-decoration: underline;
}

/* ======== PRODUCTOS GRID ======== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 10px;
}

.producto-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.producto-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0;
  color: #111;
}

.precio {
  color: #198754;
  font-weight: bold;
  margin: 6px 0 12px;
}

.btn {
  display: inline-block;
  background: #0d6efd;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #0b5ed7;
}

.btn-detalle {
  display: inline-block;
  background: #6c757d;
  color: white;
  margin-left: 6px;
  padding: 8px 12px;
  border-radius: 6px;
}

.btn-detalle:hover {
  background: #5a6268;
}

/* ======== BUSCADOR ======== */
.buscador-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 15px auto 25px;
  max-width: 480px;
}

.buscador-form input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.buscador-form button {
  background: #0d6efd;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

.buscador-form button:hover {
  background: #0b5ed7;
}

/* ======== FOOTER ======== */
.tcs-footer {
  background-color: #0d6efd;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  font-size: 14px;
}

.tcs-footer p {
  margin: 4px 0;
}

/* ======== CARRITO FLOTANTE ======== */
.tcs-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #0d6efd;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1060;
}

.tcs-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .producto-card img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .producto-card img {
    height: 140px;
  }
  .btn, .btn-detalle {
    font-size: 13px;
    padding: 6px 10px;
  }
}
/* ==== FIX: Control global de imágenes ==== */
img {
  max-width: 100%;
  height: auto;
}

/* ==== Ajuste para productos (evita que se estiren) ==== */
.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: contain; /* muestra la imagen completa sin deformar */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ==== Ajuste para íconos o imágenes de servicios ==== */
.servicio-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* ==== Ajuste de contenedor de servicios ==== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 30px 10px;
  text-align: center;
}
/* ==== Ajuste para íconos de servicios ==== */
.servicio-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* ==== Grid de servicios ==== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  padding: 30px 10px;
  text-align: center;
}

.servicio-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.servicio-item h3 {
  color: #0d6efd;
  margin-bottom: 8px;
}

.servicio-item p {
  color: #333;
  font-size: 14px;
  margin-bottom: 8px;
}
.servicio-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.contacto {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contacto h2 {
  text-align: center;
  color: #007bff;
  margin-bottom: 20px;
}

.contacto-info {
  margin-bottom: 30px;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-info li {
  margin: 8px 0;
  font-size: 15px;
}

.contacto-info a {
  color: #007bff;
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contacto-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.contacto-form button:hover {
  background: #0056b3;
}
/* Pago */
.contenedor { text-align:center; padding:30px; }
.titulo { color:#0056b3; font-size:28px; margin-bottom:10px; }
.subtitulo { margin-top:20px; color:#003d80; }

.tabla-pago { margin:0 auto; border-collapse:collapse; width:70%; background:#fff; box-shadow:0 0 10px rgba(0,0,0,0.1); }
.tabla-pago th, .tabla-pago td { border:1px solid #ddd; padding:10px; }

.opciones-pago { display:flex; justify-content:center; gap:40px; margin-top:20px; flex-wrap:wrap; }
.opciones-pago button { background:none; border:none; cursor:pointer; transition:transform 0.2s; }
.opciones-pago button:hover { transform:scale(1.05); }

.btn-webpay img, .btn-mercado img { width:180px; height:auto; }
/* ===== Estilos de página de pago ===== */
.contenedor { text-align: center; padding: 30px; }
.titulo { color: #0056b3; font-size: 28px; margin-bottom: 10px; }
.subtitulo { margin-top: 20px; color: #003d80; }

.tabla-pago { 
  margin: 0 auto; 
  border-collapse: collapse; 
  width: 70%; 
  background: #fff; 
  box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}
.tabla-pago th, .tabla-pago td { 
  border: 1px solid #ddd; 
  padding: 10px; 
}

.opciones-pago { 
  display: flex; 
  justify-content: center; 
  gap: 40px; 
  margin-top: 20px; 
  flex-wrap: wrap; 
}

.opciones-pago button { 
  background: none; 
  border: none; 
  cursor: pointer; 
  transition: transform 0.2s, box-shadow 0.2s;
}

.opciones-pago button:hover { 
  transform: scale(1.05); 
  box-shadow: 0 0 10px rgba(0,0,0,0.15); 
  border-radius: 8px;
}

.btn-webpay img, .btn-mercado img { 
  width: 180px; 
  height: auto; 
}
.tabla-pago tfoot td {
  background-color: #f5f8ff;
  font-size: 15px;
}

.tabla-pago tfoot tr:last-child td {
  color: #666;
  font-style: italic;
}
.tabla-pago { width: 80%; margin: 0 auto; border-collapse: collapse; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.tabla-pago th, .tabla-pago td { border: 1px solid #ddd; padding: 10px; }
.tabla-pago tfoot td { background-color: #f5f8ff; font-size: 15px; }
.tabla-pago tfoot tr:last-child td { color: #666; font-style: italic; }
.opciones-pago { display: flex; justify-content: center; gap: 40px; margin-top: 25px; flex-wrap: wrap; }
.opciones-pago button { background: none; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.opciones-pago button:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(0,0,0,0.15); border-radius: 8px; }
.btn-webpay img, .btn-mercado img { width: 180px; height: auto; }
/* ===== Página de agradecimiento ===== */
.gracias {
  text-align: center;
  margin-top: 60px;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  display: inline-block;
  color: #003d80;
}
.gracias h1 {
  color: #0d6efd;
  font-size: 2em;
  margin-bottom: 15px;
}
.btn-volver {
  display: inline-block;
  margin-top: 25px;
  background: #0d6efd;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-volver:hover {
  background: #004aad;
}
.empresa h1, .empresa h2, .empresa h3 {
  color: #0d6efd;
  font-weight: 700;
}
.empresa p {
  color: #333;
  line-height: 1.6;
}
.list-group-item {
  background: #fff;
  font-size: 1rem;
}
/* ======== PÁGINA DE PAGO ======== */

.tabla-pagos {
  width: 100%;
  border-collapse: collapse;
  margin: 40px auto;
  text-align: center;
}

.tabla-pagos th {
  background: #0d6efd;
  color: #fff;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 8px 8px 0 0;
}

.tabla-pagos td {
  border: 1px solid #e0e0e0;
  padding: 25px 15px;
  vertical-align: middle;
  background: #fff;
  transition: background .2s;
}

.tabla-pagos td:hover {
  background: #f8faff;
}

.tabla-pagos img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.tabla-pagos a, .tabla-pagos button {
  background: #0d6efd;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .3s;
}

.tabla-pagos a:hover, .tabla-pagos button:hover {
  background: #084ebc;
}

/* Asegura proporción en pantallas pequeñas */
@media(max-width: 768px) {
  .tabla-pagos td {
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .tabla-pagos {
    border: none;
  }
}
/* ======== PÁGINA DE PAGO ======== */
.tabla-pagos {
  width: 100%;
  border-collapse: collapse;
  margin: 40px auto;
  text-align: center;
}
.tabla-pagos th {
  background: #0d6efd;
  color: #fff;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 8px 8px 0 0;
}
.tabla-pagos td {
  border: 1px solid #e0e0e0;
  padding: 25px 15px;
  vertical-align: middle;
  background: #fff;
  transition: background .2s;
}
.tabla-pagos td:hover {
  background: #f8faff;
}
.tabla-pagos img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}
.tabla-pagos a, .tabla-pagos button {
  background: #0d6efd;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.tabla-pagos a:hover, .tabla-pagos button:hover {
  background: #084ebc;
}
@media(max-width: 768px) {
  .tabla-pagos td {
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .tabla-pagos {
    border: none;
  }
}
/* BOTÓN WEBPAY */
.btn-webpay {
    display: inline-block;
    background: #003087;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-webpay:hover {
    background: #001f55;
}

/* BOTÓN MERCADO PAGO */
.btn-mercadopago {
    display: inline-block;
    background: #009ee3;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-mercadopago:hover {
    background: #007bb8;
}

/* TABLA PAGO */
.tabla-pago {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-pago th, .tabla-pago td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tabla-pago th {
    background: #f2f2f2;
}

.btn-volver {
    display: inline-block;
    padding: 10px 18px;
    background: #444;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

form label {
    margin-top: 10px;
    font-weight: bold;
}

form input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

form button {
    margin-top: 20px;
    padding: 12px;
    background: #0053d6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.pago-container,
.postpago-container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.tabla-pago {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tabla-pago th, .tabla-pago td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

.resumen-total {
    background: #f4f7ff;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.postpago-container input,
.postpago-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn-next {
    background: #005bff;
    color: white;
    padding: 14px;
    border: none;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.btn-next:hover {
    background: #003fcc;
}
.pago-container {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carrito-lista {
    margin-bottom: 20px;
}

.pago-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pago-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.pago-info {
    flex: 1;
}

.pago-nombre {
    font-size: 17px;
    font-weight: bold;
}

.pago-subtotal {
    margin-top: 5px;
    font-weight: bold;
    color: #333;
}

.pago-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-next {
    width: 100%;
    padding: 12px;
    background: #0078ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.btn-webpay, .btn-mp {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    margin: 8px;
    text-align: center;
}

.btn-webpay { background: #0074d9; }
.btn-mp { background: #00aaff; }
