
/* =========================
   TOP NAV (FRANJA SUPERIOR)
========================= */
#templatemo_nav_top {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    padding: 2px 0 !important; /* Altura mínima */
    background-color: #004d55 !important; /* Color oscuro de la franja superior */
}

#templatemo_nav_top i { font-size: 15px; }

.contact-info a { margin-right: 15px; text-decoration: none; color: white; }
.social-icons a { color: white; margin-left: 10px; }

/* =========================
   NAV PRINCIPAL - ULTRA ESTRECHO
========================= */
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee;
}

/* Contenedor sin espacios */
.navbar > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

/* Logo: Eliminamos el padding para que la barra sea fina */
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center;
}

/* Altura del logo controlada para no estirar la barra */
.navbar-brand img:last-child {
    height: 22px !important; /* Texto 'contendencia online' */
}
.navbar-brand img:first-child {
    height: 20px !important; /* Icono casita/rayo */
}

/* =========================
   BOTONES NAV PILLS (ESTILO FOTO)
========================= */
.nav-pill {
    display: inline-block;
    color: #445a84 !important;
    padding: 4px 16px; /* Más estrecho verticalmente */
    border-radius: 50px;
    background-color: #f0f2f5;
    font-weight: 500;
    font-size: 13px;
    border: none !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 2px 5px;
}

/* Botón activo (Inicio) */
.nav-item:first-child .nav-pill,
.nav-pill.active {
    background-color: #9dbce7 !important;
    color: #2b4c7e !important;
}

.nav-pill::before { display: none !important; }

/* =========================
   DISEÑO RESPONSIVE (MÓVIL Y TABLET)
========================= */
@media (max-width: 991px) {
    /* Layout compacto usando Grid */
    .navbar > .container {
        display: grid !important;
        grid-template-columns: 1fr auto; 
        align-items: center;
    }

    .navbar-brand {
        grid-column: 1;
    }

    /* Botón hamburguesa (las 3 rayitas) súper compacto */
    .navbar-toggler {
        grid-column: 2;
        display: block !important;
        border: none !important;
        background: transparent !important;
        padding: 0 5px !important;
        margin: 0 !important;
        font-size: 24px;
        line-height: 1;
        color: #445a84 !important;
    }

    /* Menú que cae debajo del logo */
    #templatemo_main_nav {
        grid-column: 1 / span 2;
        width: 100% !important;
    }

    /* Botones horizontales debajo del logo */
    .navbar-nav {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        padding: 8px 0 !important;
        margin: 0 !important;
    }

    .nav-pill {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }
}

/* Ajustes finales para móviles muy pequeños */
@media (max-width: 576px) {
    .navbar-brand img:last-child { height: 18px !important; }
    .navbar-brand img:first-child { height: 16px !important; }
    
    #templatemo_nav_top { display: none; } /* Opcional: ocultar top nav en móviles muy pequeños */
}

/* Contenedor del textarea */
.referencia-wrapper {
    margin: 10px 0;
}

/* Estilo del textarea */
.referencia-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none; /* evita que el usuario cambie el tamaño */
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Placeholder más elegante */
.referencia-wrapper textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Cambio de borde al enfocar */
.referencia-wrapper textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
    outline: none;
}





/* =========================
   Inputs y Textarea
========================= */
.input-bx input, 
.input-wrapper textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 3px 0;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    line-height: 1.5em;
    vertical-align: middle;
    text-align: left;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper textarea:focus,
.input-bx input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

/* =========================
   Contenedor del mapa
========================= */
#map {
    width: 100%;
    max-width: 420px;
    height: 220px;
    margin: 10px auto;
    border-radius: 14px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    #map {
        height: 200px;
        max-width: 100%;
    }
}

/* =========================
   Botón GPS
========================= */
.gps,
.leaflet-control {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.gps:hover,
.leaflet-control:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ========================= */
/* Disposición en línea de los botones */
/* ========================= */
.radio-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* espacio entre botones */
  justify-content: center; /* Alinea los botones al centro */
}




/* Grupo de radios */
.radio {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

/* Cada opción ocupa el 50% del ancho */
.radio-option {
  flex: 1 0 calc(50% - 6px); /* ocupa el 50% del ancho con margen entre ellos */
  max-width: calc(50% - 6px); /* no ocupa todo el ancho */
}

/* ocultar radio nativo */
.radio-option input[type="radio"] {
  display: none;
}

/* ================================= */
/* BOTÓN INACTIVO */
/* ================================= */

.radio-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 14px;   /* más compacto */
  width: 100%;

  border-radius: 18px; /* look 2026 */
  background: #ffffff;

  color: #9ca3af; /* plomo fino */
  font-size: 13.5px;
  font-weight: 500;

  border: 1.8px solid #e5e7eb;
  cursor: pointer;

  transition: all 0.25s ease;
  white-space: nowrap;
}

/* hover */
.radio-option span:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ================================= */
/* BOTÓN ACTIVO */
/* ================================= */

.radio-option input[type="radio"]:checked + span {
  background: rgba(59, 130, 246, 0.08); /* azul TRANSPARENTE */
  color: #2563eb;

  border: 2px solid #3b82f6;

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 12px 28px rgba(59, 130, 246, 0.25);

  font-weight: 600;
}

.radio-option span:hover {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.04);
}

/* check visual */
.radio-option input[type="radio"]:checked + span::before {
  content: "✔";
  font-size: 14px;
}

/* ================================= */
/* RESPONSIVE (NO SE APILAN) */
/* ================================= */

@media (max-width: 480px) {
  .radio {
    gap: 10px;
  }

  .radio-option span {
    font-size: 13px;
    padding: 12px 10px;
  }
}
/* =========================
   QR y Voucher – refinado
========================= */

.qr,
.voucher {
    display: none;
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    animation: fadeIn 0.25s ease;
}

/* QR */
.qr {
    background: #f9fbff;
    border: 1px dashed #3b82f6;
}

.qr p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #374151;
    line-height: 1.4;
}

.qr img {
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Voucher */
.voucher {
    background: #fffaf5;
    border: 1px dashed #fb923c;
}

.voucher label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #7c2d12;
}

.voucher input[type="file"] {
    width: 100%;
    font-size: 13px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #fed7aa;
}

/* =========================
   Animaciones suaves
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Botón Pagar
========================= */
.btn-pagar {
    width: auto;                     /* se ajusta al contenido */
    max-width: 420px;                /* límite de ancho elegante */
    background: linear-gradient(135deg, #2f80ed, #1c60d5);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 30px;              /* más espacio lateral */
    border: none;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;                  /* centrado */
    box-shadow: 0 12px 25px rgba(47, 128, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pagar:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(47, 128, 237, 0.45);
}


.btn-pagar i {
    font-size: 18px;
}
/* =========================
   Encabezados y totales
========================= */
.header-carrito h2 {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.carrito-total {
    margin-top: 10px;
    font-size: 14px;
}

.carrito-total strong,
.carrito-precio-total {
    font-weight: 600;
}

.carrito-precio-total {
    display: none;
    font-size: 14px;
}

/* =========================
   Input wrapper
========================= */
.input-wrapper {
    margin-top: 5px;
}

/* =========================
   Títulos
========================= */
.payment-title {

    font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}


.comentarios-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comentarios-container h3,
.comentarios-container h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

.comentario {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.comentario strong {
    color: #333;
}

.comentario .stars {
    color: #ffc107;
}

#form-comentario input,
#form-comentario textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.rating span {
    font-size: 22px;
    cursor: pointer;
    opacity: 0.4;
}

.rating span.active {
    opacity: 1;
}

#form-comentario button {
    background: #25d366;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

#form-comentario button:hover {
    background: #1ebe57;
}

/* Contenedor general */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

/* Botón flotante principal */
.whatsapp-float {
    display: flex;
    align-items: center;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: slideIn 0.6s forwards;
}

.whatsapp-float i {
    font-size: 24px;
    margin-right: 10px;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

/* Popup de chat */
.whatsapp-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeIn 0.4s forwards;
}

/* Cabecera del popup */
.whatsapp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #25d366;
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

.whatsapp-header i {
    font-size: 20px;
}

.whatsapp-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}

/* Cuerpo del popup */
.whatsapp-body {
    padding: 15px;
    color: #333;
    font-size: 14px;
}

.whatsapp-body p {
    margin: 0 0 10px 0;
}

.whatsapp-start {
    display: block;
    text-align: center;
    background-color: #25d366;
    color: #fff;
    padding: 8px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.whatsapp-start:hover {
    background-color: #1ebe57;
}

/* Animaciones */
@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        border-radius: 50%;
        padding: 12px;
    }
    .whatsapp-text {
        display: none;
    }
    .whatsapp-popup {
        width: 90vw;
        right: 5%;
    }
}
/* ========================= */
/* BOTÓN CON TEXTO + ICONO */
/* ========================= */
.radio-option input[type="radio"] {
  display: none; /* Ocultar el radio nativo */
}

/* Estilo del botón (con icono y texto) */
.radio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;   /* Menos espacio entre el icono y el texto */
  padding: 8px 12px;   /* Reducir el padding para hacer el botón más compacto */
  border-radius: 18px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 13px;  /* Tamaño de fuente más pequeño para que no se vea tan grande */
  font-weight: 500;
  border: 1.8px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* icono */
.radio-option span i {
  font-size: 16px; /* Tamaño del icono ajustado para que no se vea grande */
  color: #6b7280;  /* Color gris de los iconos */
  transition: color 0.3s ease;
}

/* Estado seleccionado */
.radio-option input[type="radio"]:checked + .radio-btn {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  border: 2px solid #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
  font-weight: 600;
}

.radio-option input[type="radio"]:checked + .radio-btn i {
  color: #2563eb; /* Color azul cuando está seleccionado */
}

/* ========================= */
/* Disposición en línea (no apilados) */
/* ========================= */
.radio-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Espacio entre los botones */
}

.radio-option {
  flex: 1 0 calc(50% - 6px); /* Cada botón ocupa el 50% del ancho */
  max-width: calc(50% - 6px); /* Limitar a 50% de ancho */
}
@media (max-width: 480px) {
  .radio-option span,
  .radio-btn {
    font-size: 13px;
    padding: 10px 8px;
  }
}





