/*
Theme Name: Astra Child
Theme URI: https://musiquealo.com
Description: Tema hijo personalizado para Musiquealo basado en Astra.
Author: Musiquealo
Author URI: https://musiquealo.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ============================
   VARIABLES GLOBALES
=============================== */
:root {
    --primary: #E60278;
    --secondary: #12151B;
    --accent: #00A0E9;
    --light: #F8F9FA;
}

/* ============================
   RESET GENERAL
=============================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ============================
   HERO SECTION
=============================== */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
}

.video-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ============================
   FEATURES SECTION
=============================== */
.features {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* ============================
   CATEGORIES SECTION
=============================== */
.categories {
    padding: 80px 0;
    background-color: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 30px 20px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 15px 30px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* ============================
   CTA SECTION
=============================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), #A0005A);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}
/* ======= DASHBOARD UNIFICADO ======= */
.dashboard-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.08);
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    background-color: #E60278;
    color: #fff;
    font-weight: bold;
}

.dashboard-table td a {
    text-decoration: none;
    color: #E60278;
    font-weight: 600;
}

.dashboard-table .acciones a {
    margin: 0 3px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
    display: inline-block;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}
.btn-primary:hover {
    background: #1257a0;
}
.btn-view {
    background: #64ff5d;
    color: #000000;
}
.btn-view:hover {
    background: #45d943;
}
.btn-delete {
    background: #ccc;
    color: #333;
}
.btn-delete:hover {
    background: #b71c1c;
    color: #fff;
}
.btn-secondary {
    background: #f5f5f5;
    color: #333;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}
.badge-publish {
    background: #4caf50;
    color: white;
}
.badge-pending {
    background: #ffc107;
    color: #333;
}
.badge-asignado {
    background: #28a745;
    color: white;
}
.badge-rechazado {
    background: #dc3545;
    color: white;
}
.badge-pendiente {
    background: #ffeb3b;
    color: #333;
}

/* Responsive - Mobile Cards */
@media (max-width: 768px) {
    .dashboard-table,
    .dashboard-table thead,
    .dashboard-table tbody,
    .dashboard-table th,
    .dashboard-table td,
    .dashboard-table tr {
        display: block;
        width: 100%;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tr {
        background: #fff;
        margin-bottom: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 15px;
    }

    .dashboard-table td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .dashboard-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #999;
        display: block;
        margin-bottom: 5px;
        text-transform: uppercase;
        font-size: 12px;
    }

    .dashboard-table .acciones {
        text-align: center;
        margin-top: 10px;
    }
}

/* ============================
   RESPONSIVE DASHBOARD (Cards en Móviles)
=============================== */
@media (max-width: 768px) {
    .dashboard-table, .dashboard-table thead, .dashboard-table tbody, .dashboard-table th, .dashboard-table td, .dashboard-table tr {
        display: block;
        width: 100%;
    }

    .dashboard-table thead tr {
        display: none;
    }

    .dashboard-table tr {
        background: #fff;
        margin-bottom: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 15px;
    }

    .dashboard-table td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .dashboard-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #999;
        display: block;
        margin-bottom: 5px;
        text-transform: uppercase;
        font-size: 12px;
    }

    .dashboard-table .acciones {
        text-align: center;
        margin-top: 10px;
    }
}

/* === Tabla de postulaciones === */
.postulaciones-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.postulaciones-table thead {
    background-color: var(--primary);
    color: #fff;
    text-align: left;
}

.postulaciones-table th,
.postulaciones-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.postulaciones-table td audio {
    max-width: 100%;
}

.postulaciones-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* === Botones de acción === */
.postulaciones-table .btn {
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin: 3px 0;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* === Inputs para comentario de asignación/rechazo === */
.postulaciones-table input[type="text"] {
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 6px;
}

/* === Badges de estado (opcional para más adelante) === */
.badge {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
}

.badge-asignado {
    background: #28a745;
    color: white;
}

.badge-rechazado {
    background: #dc3545;
    color: white;
}

.badge-pendiente {
    background: #ffc107;
    color: #333;
}

/* === Responsive: tarjetas en móviles === */
@media screen and (max-width: 768px) {
    .postulaciones-table, 
    .postulaciones-table thead, 
    .postulaciones-table tbody, 
    .postulaciones-table th, 
    .postulaciones-table td, 
    .postulaciones-table tr {
        display: block;
        width: 100%;
    }

    .postulaciones-table thead {
        display: none;
    }

    .postulaciones-table tr {
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-radius: 8px;
        padding: 15px;
    }

    .postulaciones-table td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .postulaciones-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        font-size: 12px;
        margin-bottom: 4px;
        color: #666;
    }
}
/* === Tabla de postulaciones === */
.postulaciones-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.postulaciones-table thead {
    background-color: var(--primary);
    color: #fff;
    text-align: left;
}

.postulaciones-table th,
.postulaciones-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.postulaciones-table tbody tr:hover {
    background-color: #f9f9f9;
}

.postulaciones-table td audio {
    max-width: 180px;
}

/* === Botones de acción === */
.postulaciones-table .btn {
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin: 3px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1257a0;
}

.btn-delete {
    background-color: #bdbdbd;
    color: #333;
}

.btn-delete:hover {
    background-color: #e53935;
    color: white;
}

/* === Inputs de comentario === */
.postulaciones-table input[type="text"] {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin: 5px 6px 5px 0;
    width: 100px;
}

/* === Badges de estado === */
.badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.badge-pendiente {
    background: #ffeb3b;
    color: #333;
}

.badge-asignado {
    background: #4caf50;
    color: white;
}

.badge-rechazado {
    background: #f44336;
    color: white;
}

/* === Responsive tabla como tarjetas en móviles === */
@media screen and (max-width: 768px) {
    .postulaciones-table, 
    .postulaciones-table thead, 
    .postulaciones-table tbody, 
    .postulaciones-table th, 
    .postulaciones-table td, 
    .postulaciones-table tr {
        display: block;
        width: 100%;
    }

    .postulaciones-table thead {
        display: none;
    }

    .postulaciones-table tr {
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-radius: 8px;
        padding: 15px;
    }

    .postulaciones-table td {
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .postulaciones-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        font-size: 12px;
        margin-bottom: 4px;
        color: #666;
    }
}


