:root {
    /* Paleta basada en el logo (morado #b37eb2) */
    --brand: #b37eb2;
    --brand-dark: #8f5d8e;
    --brand-light: #d8bcd7;
    --brand-tint: #f5ecf5;
    --bg: #faf6fb;
    --ink: #2b2430;
    --accent: #b37eb2;
    --accent-dark: #8f5d8e;
    --card: #ffffff;
    --muted: #857d8a;
    --border: #ece2ec;
    --dark: #241f28;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 500;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header.site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(143, 93, 142, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.site .brand {
    display: inline-flex;
    align-items: center;
}

header.site .brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

header.site nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

header.site nav a {
    color: var(--ink);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

header.site nav a:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(160deg, var(--brand-tint) 0%, #ffffff 70%);
    border-radius: 20px;
    margin-top: 1rem;
}

.hero-slim {
    padding: 3rem 1.5rem;
}

.hero-logo {
    width: min(340px, 70%);
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
}

main h2 {
    color: var(--brand-dark);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

form.auth {
    max-width: 360px;
    margin: 3rem auto;
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

form.auth label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-weight: 500;
}

form.auth input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

form.auth button {
    margin-top: 1.25rem;
    width: 100%;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #fdecec;
    color: #a33;
}

footer.site {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--dark);
    color: #cfc4d0;
    font-size: 0.9rem;
    margin-top: 3rem;
}

footer.site .footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 0.75rem;
}

footer.site p {
    margin: 0.15rem 0;
}

footer.site .footer-info {
    margin-bottom: 1.25rem;
}

footer.site .footer-info a {
    color: var(--brand-light);
}

footer.site .footer-bottom {
    font-size: 0.8rem;
    color: #8a8090;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

table th {
    background: var(--brand-tint);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.PENDING,
.badge.PENDING_RESERVATION {
    background: #fff3cd;
    color: #8a6d00;
}

.badge.COMPLETED,
.badge.ACCEPTED,
.badge.RESERVED {
    background: #d7f5dd;
    color: #226b38;
}

.badge.CONTRACTED {
    background: #d7e6f5;
    color: #1f4e79;
}

.badge.EXPIRED,
.badge.REJECTED,
.badge.CANCELLED {
    background: #f5d7d7;
    color: #8a2b2b;
}

.form-panel {
    max-width: 640px;
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-panel label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-weight: 500;
}

.form-panel input,
.form-panel textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-panel .field-error {
    color: #a33;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.link-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--brand-tint);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.link-box code {
    flex: 1;
    font-size: 0.9rem;
}

.contract-text {
    white-space: pre-wrap;
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ==========================================================================
   Diseño público (escaparate, servicios, promociones, contacto, galería)
   ========================================================================== */

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin: 0 0 3rem;
    color: var(--ink);
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--brand);
    margin: 1rem auto 0;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

/* Escaparate (portfolio) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 10px 30px rgba(143, 93, 142, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 31, 40, 0.75), rgba(36, 31, 40, 0.05));
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(143, 93, 142, 0.3);
    text-decoration: none;
}

.portfolio-item.cat-invitadas {
    background: linear-gradient(160deg, #c58fb6 0%, #8f5d8e 100%);
}

.portfolio-item.cat-television-editorial {
    background: linear-gradient(160deg, #7d5f97 0%, #4a3a63 100%);
}

.portfolio-info {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
}

.portfolio-info h3 {
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
    color: #fff;
}

.portfolio-info p {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.portfolio-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--brand);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--ink);
}

.service-card p {
    color: var(--muted);
    margin: 0 0 1.5rem;
    flex: 1;
}

.service-card .btn {
    align-self: center;
}

/* Promociones (banner) */
.promo-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    background: var(--dark);
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin: 2rem 0;
}

.promo-content {
    flex: 1 1 320px;
    padding: 3rem;
}

.promo-content h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
    color: #fff;
}

.promo-content p {
    color: #cbc2cf;
    margin: 0 0 1.75rem;
}

.promo-image {
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.promo-image img {
    max-width: 220px;
    height: auto;
}

.promo-tag,
.modal-tag {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

/* Pop-up de promoción */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(36, 31, 40, 0.6);
    z-index: 2000;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    position: relative;
    background: var(--card);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.75rem;
    color: var(--ink);
}

.modal p {
    color: var(--muted);
    margin: 0 0 1.75rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--ink);
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(143, 93, 142, 0.18);
    text-decoration: none;
}

.contact-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    color: var(--brand-dark);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-word;
}

/* Galería por categoría */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--brand-tint);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px dashed var(--brand-light);
    background: repeating-linear-gradient(45deg, var(--brand-tint), var(--brand-tint) 12px, #fbf5fb 12px, #fbf5fb 24px);
}

.empty-note {
    text-align: center;
    color: var(--muted);
    margin-top: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
    header.site {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    header.site nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        width: 100%;
        padding-top: 1rem;
    }

    header.site nav.open {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .promo-content {
        padding: 2rem;
    }
}
