:root {
    --bg-main: #05030a;
    --accent: #a855f7;
    --accent-soft: #6d28d9;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --card-bg: rgba(15, 23, 42, 0.9);
    --border-color: rgba(148, 163, 184, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    height: 100%;
} 

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image:
      radial-gradient(circle at 10% 20%, rgba(88, 28, 135, 0.35) 0, transparent 55%),
      radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.2) 0, transparent 55%),
      radial-gradient(circle, rgba(148, 163, 184, 0.4) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px; 
}

/* Layout general */

.page-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    
}

/* Header */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.85);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
    font-weight: 700;
}

.brand-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.main-nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: width 0.2s ease-out;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top left, rgba(88, 28, 135, 0.7), transparent 55%),
                radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75);
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.5fr);
    gap: 2rem;
    align-items: center;
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.hero-video {
    width: 300px;
    height: 350px;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    background: #000;
}

.hero-media-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
}


.hero-content {
    max-width: 560px;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Secciones */

.section {
    margin-bottom: 3rem;
}

.section h1,
.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Botones */

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #0b0217;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(88, 28, 135, 0.2);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* Cards de productos */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.05rem;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.product-price {
    font-weight: 600;
    margin: 0.3rem 0 0.6rem;
}

/* Detalle producto */

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.product-detail-image img {
    width: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.product-detail-info h1 {
    margin-bottom: 0.5rem;
}

.product-price-lg {
    font-size: 1.4rem;
}

.product-description {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.product-buy p {
    margin-bottom: 0.5rem;
}

/* Footer */

.main-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.95);
}

.main-footer a {
    color: var(--accent);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}
/* Formularios */

.form-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Filtro de categorías */

.category-filter {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-muted);
    text-decoration: none;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tag-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border-color: transparent;
    color: #020617;
    font-weight: 600;
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* Notas nocturnas */

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.note-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note-card h2 {
    font-size: 1.1rem;
}

.note-card h2 a {
    color: var(--text-main);
    text-decoration: none;
}

.note-card h2 a:hover {
    color: var(--accent);
}

.note-type {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(88, 28, 135, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.7);
    color: var(--accent);
}

.note-band {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.note-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.note-detail {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.7rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.note-detail h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.note-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.note-content {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}
.note-thumb {
    width: 100%;
    margin-bottom: 0.6rem;
}

.note-thumb img {
    width: 100%;
    border-radius: 0.9rem;
    object-fit: cover;
    max-height: 160px;
}

.note-cover {
    margin: 0.75rem 0 1rem;
}

.note-cover img {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    max-height: 320px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--card-bg);
    border-radius: 0.9rem;
    overflow: hidden;
}

.admin-table thead {
    background: rgba(15, 23, 42, 0.9);
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
}

.admin-table tr:hover td {
    background: rgba(15, 23, 42, 0.9);
}

.btn-icon {
    width: 35px;
    height: 35px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.btn-whatsapp {
    background: #25d3655b;
    color: white;
}
.btn-whatsapp:hover {
    background: #25d36521;
    color: white;
}
.btn-instagram {
    background-image: linear-gradient(
      45deg,
      #f585297d,
      #f7773777,
      #dd2a7b82,
      #8234af79,
      #515cd489
    );
    color: white;
}
.btn-instagram:hover {
    background-image: linear-gradient(
      45deg,
      #f585291f,
      #f777371f,
      #dd2a7b29,
      #8234af2c,
      #515cd432
    );
    color: white;
}