/* ==========================
   Reset y fuentes
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* fondo blanco */
    color: #222;
    line-height: 1.6;
}

/* ==========================
   Barra de Navegación
========================== */
nav {
    background: linear-gradient(90deg, #d60000, #a80000);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px; /* más espacio interno */
    height: 80px;        /* navbar más alta */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    position: relative;
}

/* Franja inferior morada */
nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px; /* grosor */
    background-color: #52007b;
}

nav .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-banner {
    height: 50px;  /* 👈 igual en todas las páginas */
    width: auto;
}

nav .logo:hover {
    color: #ffcc00;
}

nav img {
    height: 45px;   /* 👈 ajusta el tamaño del logo */
    margin-left: 20px;
}

/* ==========================
   Lista de navegación
========================== */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
    display: flex;
    align-items: center;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    line-height: 1;
}

nav ul li a:hover {
    color: #333;
    background: #ffcc00;
}

/* ==========================
   Menú Usuario (Dropdown)
========================== */
.user-menu > a {
    font-weight: bold;
    color: #ffcc00;
    cursor: pointer;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 200px;
    padding: 8px 0;
    z-index: 999;
}

.user-menu .dropdown li {
    margin: 0;
    padding: 10px 15px;
    color: #333;
    font-size: 0.9rem;
    display: block;
}

.user-menu .dropdown li a {
    color: #d60000;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
}

.user-menu .dropdown li a:hover {
    background: #ffcc00;
    color: #333;
}

.user-menu:hover .dropdown {
    display: block;
}

/* ==========================
   Botón hamburguesa
========================== */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;  /* oculto por defecto */
    flex-direction: column;
    background: #b30000; /* mismo estilo que Noticias */
    position: absolute;
    top: 60px;
    right: 15px;
    padding: 15px;
    border-radius: 8px;
    width: 220px;
    z-index: 2000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 8px 0;
  }

  .nav-links li a {
    color: #fff;
    font-size: 1.1rem;
    width: 100%;
  }

  table thead,
    table tr th {
        display: none; /* Oculta encabezados */
    }

    table, 
    table tbody, 
    table tr, 
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #333;
        border-radius: 10px;
        padding: 10px;
        background: #2a2a2a;
    }

    table td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }

    table td:last-child {
        border-bottom: none;
    }

    /* Mostrar el nombre de la columna con data-label */
    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ff4c4c;
        display: block;
        margin-bottom: 6px;
    }
  
}

/* ==========================
   Encabezados
   ========================== */
h1 { 
    text-align: center; 
    color: red; 
    padding: 30px 0 10px;
    font-size: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* ==========================
   Tabla de Programación (Rojo + Blanco)
   ========================== */
table {
    width: 90%; 
    margin: 20px auto; 
    border-collapse: collapse;
    background: #1c1c1c; 
    box-shadow: 0px 4px 20px rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ff4c4c;
}

/* Encabezados */
th {
    background: linear-gradient(90deg, #ff4c4c, #b32424);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 16px;
}

/* Celdas */
td {
    padding: 16px; 
    text-align: center; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #f1f1f1;
    font-size: 0.95rem;
}

/* Filas pares */
tr:nth-child(even) {
    background: #222;
}

/* Hover con efecto rojo */
tr:hover {
    background: rgba(255, 76, 76, 0.15);
    transition: background 0.3s ease;
}

/* Texto cuando no hay datos */
.no-data {
    text-align: center;
    padding: 20px;
    color: #ff4c4c;
    font-style: italic;
    font-weight: bold;
}

/* ==========================
   Botón para abrir modal
   ========================== */
.btn-open {
    background: red;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-open:hover {
    background: black;
    color: white;
}

/* ==========================
   Modal General
   ========================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px); /* 🔥 efecto vidrio */
    overflow: auto;
}

/* Contenido del modal */
.modal-content {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    color: #f1f1f1;
    margin: 6% auto;
    padding: 25px 30px;
    border-radius: 16px;
    width: 420px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.6);
    animation: abrir 0.3s ease-out;
    border: 1px solid #ffba00;
}

/* Título del modal */
.modal-content h2 {
    color: #ffba00;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0px 0px 8px rgba(255,186,0,0.6);
}

/* Labels */
.modal-content label {
    color: #ffba00;
    font-weight: 600;
    margin-top: 12px;
    display: block;
    font-size: 14px;
}

/* Inputs */
.modal-content input {
    width: 100%;
    color: #fff;
    background: #2c2c2c;
    border: 1px solid #444;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}
.modal-content input:focus {
    border-color: #ffba00;
    box-shadow: 0px 0px 6px rgba(255,186,0,0.6);
}

/* Botón enviar */
.btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(90deg, #ffba00, #e09c00);
    color: #1c1c1c;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s ease;
}
.btn-submit:hover {
    background: linear-gradient(90deg, #e09c00, #c97f00);
    transform: translateY(-2px);
}

/* Botón de cerrar (X) */
.close {
    color: #ffba00;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
}
.close:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Animación de apertura */
@keyframes abrir {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================
   Botones de acción
   ========================== */
.btn-edit {
    background: linear-gradient(90deg, #007bff, #0062cc);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
.btn-edit:hover {
    background: linear-gradient(90deg, #0062cc, #004c99);
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(90deg, #dc3545, #a71d2a);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
}
.btn-delete:hover {
    background: linear-gradient(90deg, #a71d2a, #721c24);
    transform: translateY(-2px);
}

/* ========================== 
   Footer ARTEMUSA TV
========================== */
.footer {
  background-color: #b30000; /* Rojo principal */
  border-top: 8px solid #52007b; /* Franja morada superior */
  color: #fff;
  padding: 40px 20px 10px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
  max-width: 300px;
}

/* Títulos de columnas */
.footer h4 {
  color: #ffcc00; /* Dorado */
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 4px;
}

/* Textos y enlaces */
.footer p,
.footer a {
  color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer a:hover {
  color: #ffcc00; /* Dorado al pasar el mouse */
  transform: translateX(3px);
}

.footer-slogan {
  font-style: italic;
  color: #f0f0f0;
  margin-top: 5px;
}

/* Íconos sociales */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #52007b; /* Fondo morado de los íconos */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icons li a i {
  color: #ffcc00; /* Ícono dorado */
  font-size: 18px;
}

.social-icons li a:hover {
  background-color: #ffcc00; /* Dorado en hover */
  border-color: #fff;
  transform: scale(1.1);
}

.social-icons li a:hover i {
  color: #52007b; /* Ícono morado sobre dorado */
}

/* Línea inferior */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #f0f0f0;
  letter-spacing: 0.5px;
}