
        :root {
            --color-azul-oscuro: #004D9C;
            --color-azul-medio: #0066cc;
            --color-azul-claro: #e6f0ff;
            --color-blanco: #ffffff;
            --color-gris: #6b7280;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #e6f0ff;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        header {
            background-color: var(--color-azul-oscuro);
            color: var(--color-blanco);
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }


    .pay-button {
        background: linear-gradient(to right, #0066cc, #02305f);
        color: var(--color-blanco);
        box-shadow: 0 3px 8px rgba(0, 77, 156, 0.4);
     }

    .pay-button:hover {
        background: linear-gradient(to right, #0278ee, #002c58);
        box-shadow: 0 4px 10px rgba(75, 129, 184, 0.6);
     }
        
        .header-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo {
            width: 48px;
            height: 48px;
            background-color: var(--color-blanco);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-azul-oscuro);
            font-weight: bold;
            font-size: 20px;
        }
        
        .header-title {
            font-size: 24px;
            font-weight: bold;
        }
        
        .language-select {
            background-color: var(--color-blanco);
            color: var(--color-azul-oscuro);
            border: 2px solid #337ab7;
            border-radius: 8px;
            padding: 8px 12px;
            font-weight: bold;
        }
        
        .form-container, .confirmation-container {
            background-color: var(--color-blanco);
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        .form-group {
            margin-bottom: 10px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 600;
            font-size: 14px;
        }
        
        select, input, textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #93c5fd;
            border-radius: 12px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        select:focus, input:focus, textarea:focus {
            outline: none;
            border-color: var(--color-azul-oscuro);
        }
        
        .entry-type-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 8px;
        }
        
        .entry-button {
            padding: 16px;
            border: 2px solid #bfdbfe;
            border-radius: 12px;
            background-color: var(--color-blanco);
            color: var(--color-gris);
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            font-size: 20px;  
        }
        
        .entry-button:hover {
            border-color: #60a5fa;
            color: var(--color-azul-oscuro);
        }
        
        .entry-button.active {
            border-color: var(--color-azul-oscuro);
            background-color: #dbeafe;
            color: var(--color-azul-oscuro);
            font-weight: bold;
        }

        .entry-button span {
        font-size: 36px;
       }
        
        .pay-button, .back-button {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
            margin-top: 20px;
        }
        
        .pay-button {
            background: linear-gradient(to right, #0056b3, #004D9C);
            color: var(--color-blanco);
        }
        
        .back-button {
            background: linear-gradient(to right, #0056b3, #004D9C);
            color: var(--color-blanco);
        }
        
        .pay-button:hover, .back-button:hover {
            background: linear-gradient(to right, #004a99, #003d7a);
        }
        
        .pay-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .price-summary {
            background-color: #dbeafe;
            border: 2px solid #93c5fd;
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            font-weight: bold;
            color: var(--color-azul-oscuro);
            margin: 20px 0;
        }
        
        .visitors-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 12px;
            background-color: #f8fafc;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .visitors-table th {
            background-color: #dbeafe;
            color: var(--color-azul-oscuro);
            padding: 12px;
            text-align: left;
            font-weight: 600;
            font-size: 11px;
            white-space: nowrap;
        }
        
        .visitors-table td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            font-size: 13px;
        }
        
        .visitors-table td input, .visitors-table td select {
            width: 100%;
            padding: 8px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 12px;
        }
        
        .visitors-table tr:last-child td {
            border-bottom: none;
        }
        
        .coiba-message {
            background-color: #dbeafe;
            border: 2px solid #93c5fd;
            border-radius: 12px;
            padding: 12px;
            color: var(--color-azul-oscuro);
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .qr-code {
            background-color: var(--color-azul-oscuro);
            color: var(--color-blanco);
            padding: 16px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 14px;
            text-align: center;
            margin: 20px 0;
            word-break: break-all;
        }
        
        .qr-label {
            font-size: 12px;
            color: var(--color-azul-oscuro);
            margin-bottom: 8px;
            font-weight: bold;
        }
        
        .visitor-list {
            background-color: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            margin: 16px 0;
            max-height: 250px;
            overflow-y: auto;
        }
        
        .visitor-item {
            padding: 8px 0;
            border-bottom: 1px solid #e2e8f0;
            font-size: 13px;
        }
        
        .visitor-item:last-child {
            border-bottom: none;
        }
        
        .visitor-badge {
            background-color: #dbeafe;
            color: var(--color-azul-oscuro);
            padding: 2px 6px;
            border-radius: 12px;
            font-size: 11px;
            margin-left: 6px;
        }
        
        footer {
            text-align: center;
            margin-top: 48px;
            color: #6b7280;
            font-size: 14px;
        }
        
        .hidden {
            display: none;
        }
        
        .instructions {
            background-color: #f0f9ff;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 12px;
            font-size: 15px;
            color: #0c4a6e;
            margin-bottom: 16px;
    
        }
        
        @media (max-width: 768px) {
            .entry-type-buttons {
                grid-template-columns: 1fr;
            }
            
            .visitors-table {
                display: block;
                overflow-x: auto;
            }
            
            header {
                flex-direction: column;
                text-align: center;
            }
            
            
        }

            .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
            gap: 20px; /* Espacio entre las columnas */
            align-items: end; /* Alinea los inputs en la misma línea */
            }

            .grid-2 .form-group {
            display: flex;
            flex-direction: column;
            }





        .delete-button {
    background-color: #b90633;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

delete.button:hover {
    background-color: #83132f;
}

/* Eliminar fila - botón pequeño y elegante */
.delete-btn {
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: #dc2626;
    cursor: pointer;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #b91c1c;
}



/* === Ajuste de ancho para las columnas de Género y Edad === */
.visitors-table th:nth-child(2),
.visitors-table td:nth-child(2) {
  width: 125px;         /* Género */
  min-width: 120px;
}

.visitors-table th:nth-child(3),
.visitors-table td:nth-child(3) {
  width: 85px;         /* Edad */
  min-width: 80px;
}

/* Mantener los inputs y selects alineados y responsivos */
.visitors-table select,
.visitors-table input {
  width: 100%;
  box-sizing: border-box;
}






#pago-container {
  border: 2px solid #004D9C;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0, 77, 156, 0.2);
}
.hidden { display: none; }




/* === Modal de confirmación === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--color-blanco);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 77, 156, 0.3);
  animation: slideUp 0.4s ease-out;
}

.modal-header h2 {
  color: var(--color-azul-oscuro);
  margin-bottom: 10px;
}

.codigo-reserva {
  background-color: #dbeafe;
  color: var(--color-azul-oscuro);
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0 20px;
  letter-spacing: 1px;
}

.qr-section {
  margin: 10px auto;
  /* centramos el contenido */
  text-align: center;
}

.qr-code {
  /* Quitar fondo para que no tape el QR */
  background-color: transparent;
  padding: 0;
  border-radius: 12px;
  display: inline-block;
  margin-top: 6px;
}

.qr-code img {
  border: 3px solid var(--color-azul-oscuro);
  border-radius: 12px;
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}





.language-switcher {
  margin-left: auto;
}

.language-switcher select {
  background-color: #ffffff;
  border: 1px solid #004D9C;
  border-radius: 6px;
  padding: 6px 10px;
  color: #004D9C;
  font-weight: 600;
  cursor: pointer;
}



/* Botones pequeños */
.small-button {
    padding: 14px 55px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: #1d4ed8; /* azul estilo MiAmbiente */
    color: white;
    transition: 0.2s;
}

.small-button:hover {
    background-color: #1e40af;
    transform: scale(1.02);    /* crece un poquito */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* agrega sombra sutil */
}

/* Botón verde para Excel */
.excel-button {
    background-color: #22c55e !important;
}

.excel-button:hover {
    background-color: #16a34a !important;
}

/* Contenedor de botones alineados */
@media (max-width: 768px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row button {
    width: 100%;
    padding: 14px;
  }
}


.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pdf-modal.hidden {
    display: none;
}

.pdf-modal-content {
    width: 80%;
    height: 85%;
    background: white;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.close-pdf-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: red;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10000;
}

.close-pdf-btn:hover {
    background: darkred;
}



.terms-legend {
    font-size: 14px;
    color: #555;
}

.terms-right {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre link y checkbox */
}

.terms-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 14px;
}

.terms-row {
    display: flex;
    flex-direction: row;      /* Asegura horizontal */
    align-items: center;      /* Alinea verticalmente */
    gap: 10px;                 /* Espacio entre el check y el texto */
    justify-content: flex-start !important; /* Forzar alineación a la izquierda */
    width: fit-content;       /* Evita que se expanda */
    white-space: nowrap; /* evita salto de líneas */
    font-size: 13px;
    color: #0c4a6e;
}

.terms-row input[type="checkbox"] {
    vertical-align: middle;
    margin: 0;
    transform: translateY(-3px);  /* Ajusta si quieres más arriba o abajo */
}

/*SELECT DE PARQUES*/

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  position: absolute;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  font-size: 16px;
}

.autocomplete-list li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 16px;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
  background-color: #e0f2fe;
}

.autocomplete-highlight {
  font-weight: bold;
  color: #0369a1;
}

.hidden {
  display: none;
}









@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  input,
  select,
  button {
    font-size: 16px;
  }
}




/*******************************/

/* ============================= */
/* BARRA SUPERIOR MODERNA */
/* ============================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 26px;

    background-color: #ffffff; /* blanco */
    border-bottom: 1px solid #e5e7eb; /* gris claro */

    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Lado izquierdo */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Lado derecho */
.topbar-right {
    display: flex;
    align-items: center;
}

/* Logos */
.topbar-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* Texto del título */
.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937; /* gris oscuro elegante */
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-title {
        display: none; /* oculta texto en móvil */
    }

    .topbar-logo {
        height: 32px;
    }
}



/* ============================= */
/* TABLA NORMAL EN PC */
/* ============================= */

.visitors-table {
    width: 100%;
    border-collapse: collapse;
}

/* ============================= */
/* SOLO EN MÓVIL */
/* ============================= */

@media (max-width: 768px) {

    .visitors-table {
        min-width: 900px; /* fuerza scroll SOLO en móvil */
    }

    /* Columna País */
    .visitors-table th:nth-child(5),
    .visitors-table td:nth-child(5) {
        min-width: 180px;
        white-space: nowrap;
    }

    /* Inputs y selects */
    .visitors-table input,
    .visitors-table select {
        min-width: 140px;
    }
}



/* ============================= */
/* MODAL PASARELA DE PAGO */
/* ============================= */

.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal.hidden {
    display: none;
}

.payment-modal-content {
    background: #ffffff;
    width: 95%;
    max-width: 900px;
    height: 90vh;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Iframe */
#paymentIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Botón cerrar */
.close-payment-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;

    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
}





/* ============================= */
/* ACCIONES EXCEL */
/* ============================= */

.excel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px; /* separación entre líneas */
}

.excel-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================= */
/* TOOLTIP CON PASOS */
/* ============================= */

.info-icon {
    position: relative;
    cursor: pointer;
    font-size: 16px;
}

/* Botón debe ser relativo */
.small-button {
    position: relative;
}

.small-button .tooltip {
    position: absolute;
    bottom: 120%; /* sigue apareciendo arriba del botón */
    left: 0;      /* alineado a la izquierda del botón */
    transform: none; /* quitar el centrado */
    background-color: #111827;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap; /* evita que haga wrap */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 999;
}

/* Flecha alineada a la izquierda */
.small-button .tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* justo debajo del tooltip */
    left: 10px; /* un poquito a la izquierda */
    transform: translateX(0);
    border-width: 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}


/* Mostrar tooltip al pasar mouse */
.small-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
    text-align: left;
}



/* Pasos con iconos */
.tooltip-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.tooltip-step span:first-child {
    font-size: 15px;
    line-height: 1;
}

/* Flecha */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

/* Mobile */
@media (max-width: 768px) {
    .tooltip {
        width: 90vw;
    }
}



/* Mobile */
@media (max-width: 768px) {

    .row-main,
    .row-excel {
        flex-direction: column;
    }

    .row-main button,
    .row-excel button {
        width: 100%; /* botones llenos en móvil */
        max-width: 360px;
    }

    .date-container {
        width: 100%;
        justify-content: center;
    }
}


.form-container-secondary {
    margin-top: 16px;
}



.top-actions {
    width: 100%;
}

.row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.row-excel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}



/* Forzar comportamiento tipo Admisión */
.full-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.full-row .grow {
    width: 100%;
}

.full-row button {
    padding-left: 0;
    padding-right: 0;
}


/* Alinear botón Agregar con el input de fecha */
.row-main button {
    margin-top: 28px; /* ajusta fino si quieres 24 / 26 / 30 */
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .row-main button,
    .row-excel button {
        width: 100%;        /* Ocupa todo el ancho del contenedor */
        max-width: 100%;    /* Evita que quede espacio a la derecha */
        box-sizing: border-box; /* Incluye padding y border en el ancho */
    }

    .row-main,
    .row-excel {
        flex-direction: column; /* Alinea verticalmente los botones */
        gap: 10px;              /* Espacio entre botones */
        align-items: stretch;   /* Fuerza que todos tengan el mismo ancho */
    }
}


#label-park {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gris);
}

#label-entry-type {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-gris);
}

#label-date {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-gris);
}

#label-visitors {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-gris);
}