/* assets/css/style.css */
/* Importar la fuente Roboto desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Estilos básicos para el HUB Marketing UVAC */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 20px;
}
.landing {
    max-width: 500px;
    margin: 0 auto;
}
.form-container {
    max-width: 1150px;
    margin: 0 auto;
}
.landing-body {
    background-image: url('https://uvaconline.com/descuentos/assets/images/bg_promosUVAC.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}
img {
    max-width: 100%;
}
input, select, textarea, button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}
button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}

/* Estilos para landing_view.php */
.landing-title {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}
.landing-promo-id {
    font-style: italic;
    color: #ffffff;
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
}
.landing-image {
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}
.landing-static-text {
    font-style: italic;
    color: #ffffff;
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
}
.landing-description-section {
    margin: 20px 0;
    text-align: center;
}
.landing-description-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}
.landing-description-content {
    font-size: 16px;
    color: #fff;
}

.landing-whatsapp, .landing-buy {
    width: 50%;
    text-align: center;
}
.landing-whatsapp img, .landing-buy img {
    width: 100%;
    height: auto;
}
.landing-info {
    margin: 20px 0;
    text-align: center;
}
.landing-info-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}
.landing-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.landing-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.landing-info-label {
    flex: 1 1 25%;
    max-width: 25%;
    text-align: right;
    padding: 1%;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: normal;
    color: #fff;
}
.landing-info-value {
    flex: 1 1 75%;
    max-width: 75%;
    text-align: left;
    padding: 1%;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Estilos para admin_list.php */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}
.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px; /* Aumentamos el ancho máximo para dar espacio a los nuevos elementos */
    align-items: center;
}
.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap; /* Permitimos que los elementos se ajusten en pantallas pequeñas */
}
.search-form input[type="text"],
.search-form select,
.search-form input[type="date"] {
    flex: 1;
    min-width: 150px; /* Aseguramos un ancho mínimo para cada elemento */
}
.search-form button {
    width: auto;
}
.landings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: none; /* Quitar bordes de la tabla */
}
.landings-table th, .landings-table td {
    border: none; /* Quitar bordes de la tabla */
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
.landings-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.landings-table th i {
    margin-right: 5px;
}
.landings-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.landings-table tr:hover {
    background-color: #f1f1f1;
}
.landings-table a {
    color: #007BFF;
    text-decoration: none;
}
.landings-table a:hover {
    text-decoration: underline;
}
.action-button {
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
    text-align: center;
    line-height: 1;
}
.edit-button {
    background-color: #007BFF;
}
.edit-button:hover {
    background-color: #0056b3;
}
.delete-button {
    background-color: #dc3545;
}
.delete-button:hover {
    background-color: #c82333;
}
.action-button i {
    color: white;
}
.channel-cell {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Evitar que los iconos se apilen */
}
.channel-icon {
    color: #ccc;
    font-size: 16px;
    display: inline-block;
}
.channel-icon.selected {
    color: #007BFF; /* Azul */
}
.channel-icon.expired {
    color: #dc3545; /* Rojo */
}
.channel-icon.late-url {
    color: #ff9500; /* Naranja */
}
.landings-table th.icon-column {
    width: 50px;
    text-align: center;
}
.landings-table td.icon-column {
    text-align: center;
}
.actions-column {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    padding: 5px;
}

/* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center; /* Centrado vertical */
}
.lightbox-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra suave */
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease; /* Animación de entrada */
    margin-top: 10%;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.close-lightbox {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.close-lightbox:hover {
    color: #000;
}
.lightbox-content h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
}
.channel-url-input {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.channel-url-input label {
    width: 100px;
    font-weight: 500;
    color: #444;
}
.channel-url-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.channel-url-input input:focus {
    border-color: #007BFF;
    outline: none;
}
.lightbox-content .form-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    margin-top: 10px;
}
@media (min-width: 1000px) {
    #channel-urls-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .channel-url-input {
        flex: 1 1 calc(50% - 10px); /* Dos columnas con espacio entre ellas */
    }
}

/* Estilos para admin_create.php y admin_edit.php */
.form-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between; /* Alinea la frase motivadora a la derecha */
}
.title-separator {
    color: #555;
    font-size: 24px;
}
.temp-landing-id {
    font-style: italic;
    color: #666;
    font-size: 20px;
}
.motivational-phrase {
    color: #4A90E2;
    font-size: 16px;
    font-style: italic;
    margin-left: auto; /* Alinea la frase motivadora a la derecha */
}
.user-legal {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
}
.form-input, .form-textarea, .form-select {
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.form-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.form-button:hover {
    background-color: #0056b3;
}

/* Estilos para admin_list.php */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}
.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    align-items: center;
    flex-wrap: wrap;
}
.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.search-form input[type="text"],
.search-form select,
.search-form input[type="date"] {
    flex: 1;
    min-width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.search-form button {
    width: auto;
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.search-form button:hover {
    background-color: #0056b3;
}
.landings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.landings-table th, .landings-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}
.landings-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.landings-table td {
    color: #555;
}
.channel-cell {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}
.channel-icon {
    color: #ccc;
    font-size: 16px;
    display: inline-block;
}
.channel-icon.selected {
    color: #007BFF;
}
.channel-icon.expired {
    color: #dc3545;
}
.channel-icon.late-url {
    color: #ff9500;
}

/* Estilos para redes sociales */
.socials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.social-checkbox-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 10px 5px 0;
}
.form-social-checkbox {
    margin-right: 5px;
}

/* Estilos para el formulario */
.destination-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.add-destination-btn {
    width: auto;
    padding: 5px 10px;
    font-size: 16px;
}
.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.form-field {
    flex: 1 1 100%;
}
.form-field-small {
    flex: 1 1 45%;
    max-width: 45%;
    padding: 0 15px;
}
.form-field-small.form-field-id {
    flex: 1 1 28%;
    max-width: 28%;
}
.form-static-text {
    font-style: italic;
    color: #555;
    margin: 10px 0;
}
#form-info-fieldset {
    width: 100%;
    border: none;
}

/* Estilos para reports.php */
.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    font-family: Arial, sans-serif;
}
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.reports-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.download-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.download-button:hover {
    background-color: #0056b3;
}
.filters-section {
    margin-bottom: 30px;
}
.filter-select, .filter-date, .filter-button {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 10px;
}
.filter-button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}
.filter-button:hover {
    background-color: #0056b3;
}
.custom-date-range {
    display: inline-block;
}
.overview-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.metric-card {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.metric-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}
.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.report-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.report-summary {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.report-summary:hover {
    background-color: #e8e8e8;
}
.report-summary h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.toggle-icon {
    font-size: 20px;
    color: #666;
}
.report-content {
    padding: 20px;
    border-top: 1px solid #ddd;
}
.chart-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.metrics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.metrics-table th, .metrics-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.metrics-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.metrics-table td {
    color: #555;
}
@media (max-width: 768px) {
    .overview-section {
        flex-direction: column;
    }
    .metric-card {
        min-width: 100%;
    }
    .filters-section select, .filters-section input, .filters-section button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* BOTONES GRANDES Y VERTICALES EN MÓVIL */
.landing-buttons {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

.landing-button-wrapper {
    margin-bottom: 10px;
}

.landing-button-wrapper a {
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.landing-buy img,
.landing-whatsapp img {
    width: 100%;
    height: auto;
}

/* INFORMACIÓN CENTRADA */
.landing-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.landing-info-row {
    display: block;
    text-align: center;
}

.landing-info-label {
    font-weight: 300;
    font-size: 14px;
}

.landing-info-value {
    font-weight: bold;
    font-size: 15px;
}

/* --- Ajuste visual para el buscador dentro de la galería --- */
.below-gallery {
  margin-top: 16px;
  padding: 16px;
}

.below-gallery .explore-card {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  padding: 18px 14px;
}

.below-gallery .explore-card h3 {
  font-weight: 700;
  color: #194291;
  margin-bottom: 6px;
}

.below-gallery .explore-card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.below-gallery #promo-search-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.below-gallery #promo-search-input {
  flex: 1 1 200px;
  max-width: 260px;
  padding: 9px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.below-gallery #promo-search-button {
  padding: 9px 14px;
  background: #194291;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.below-gallery #promo-search-button:hover {
  background: #003B7B;
}
