* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f9;
}

.header {
    background: #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    color: #e94560;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo:hover {
    color: #ff7b90;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.menu a:hover {
    color: #e94560;
}

.hero {
    background: linear-gradient(135deg, #16213e, #0f3460);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.seccion {
    padding: 60px 40px;
    text-align: center;
}

.seccion h1,
.seccion h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.btn {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px;
}

.btn:hover {
    background: #c7364f;
}

.btn-secundario {
    background: #0f3460;
}

.btn-secundario:hover {
    background: #16213e;
}

.btn-enlace {
    display: inline-block;
    text-decoration: none;
}

.selector-artista {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.selector-artista label {
    font-weight: bold;
    color: #1a1a2e;
    white-space: nowrap;
}

.selector-artista select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
}

.grid-login {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 700px;
    margin: 30px auto 0;
}

.tarjeta-opcion {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.tarjeta-opcion:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    border-color: #e94560;
}

.opcion-icono {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.tarjeta-opcion h3 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.tarjeta-opcion p {
    font-size: 0.95rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tarjeta {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tarjeta h3 {
    color: #0f3460;
    margin-bottom: 10px;
}

.form-login {
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-login label {
    font-weight: bold;
    color: #1a1a2e;
}

.recordar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
}

.recordar input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.ojito {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.ojito:hover {
    color: #1a1a2e;
}

.ojito.activo {
    color: #e94560;
}

.ojo-icono {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.error {
    color: #c0392b;
    font-weight: bold;
}

.exito {
    color: #27ae60;
    font-weight: bold;
    margin-top: 10px;
}

/* ---- Portal del cliente ---- */
.campañas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.bloque-cancion {
    margin-bottom: 40px;
}

.bloque-cancion h2 {
    color: #1a1a2e;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
    max-width: 400px;
    margin: 0 auto 10px;
}

.titulo-cancion-seleccionada {
    color: #1a1a2e;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
    max-width: 400px;
    margin: 30px auto 10px;
}

.campaña {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.campaña h3 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.plataforma-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.plat-youtube { background: #ff0000; }
.plat-spotify { background: #1db954; }
.plat-tiktok  { background: #010101; }

.barra-progreso {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.barra-progreso-inner {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #0f3460);
    color: #fff;
    font-size: 0.8rem;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.campaña .porcentaje {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0f3460;
}

/* ---- Panel admin ---- */
.tabla-container {
    overflow-x: auto;
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background: #1a1a2e;
    color: #fff;
}

td input,
td select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 0.95rem;
}

td.celda-incluir {
    text-align: center;
}

td.celda-incluir input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

td.celda-pct {
    font-weight: bold;
    color: #0f3460;
    text-align: center;
    white-space: nowrap;
}

td .enlace-input {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

td textarea.enlace-input {
    resize: vertical;
    min-height: 40px;
}

.btn-detalle {
    background: #0f3460;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-detalle:hover {
    background: #16213e;
}

.detalle-campaña {
    margin-top: 12px;
    padding: 12px;
    background: #f0f1f5;
    border-radius: 6px;
    font-size: 0.9rem;
}

.detalle-campaña p {
    margin: 4px 0;
    color: #1a1a2e;
}

.detalle-campaña ul {
    margin: 4px 0 0 20px;
}

.detalle-campaña a {
    color: #e94560;
    text-decoration: none;
    word-break: break-all;
}

.detalle-campaña a:hover {
    text-decoration: underline;
}

.btn-eliminar {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-eliminar:hover {
    background: #a93226;
}

.footer {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
