@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================
   TOKENS & RESET
============================ */
:root {
    --gold: #c9a227;
    --gold-light: #e8c84a;
    --gold-dark: #9a7a1a;
    --cream: #f5f0e8;
    --bg: #0a0a0c;
    --bg-mid: #111115;
    --bg-card: rgba(22, 20, 18, 0.75);
    --text: #f0ede6;
    --text-muted: #9e9a92;
    --border: rgba(201, 162, 39, 0.18);
    --glass: rgba(18, 16, 14, 0.65);
    --radius: 12px;
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================
   TYPOGRAPHY
============================ */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   CANVAS BACKGROUND (set via JS)
============================ */
#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ============================
   NAV
============================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container img {
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Botón login del navbar */
.nav-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    transition: all var(--transition);
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
}

/* ============================
   SECTION WRAPPER
============================ */
.section-wrapper {
    position: relative;
    z-index: 1;
    padding: 7rem 5% 5rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* ============================
   SCROLL REVEAL
============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================
   INDEX — HERO SECTION
============================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 7rem 5% 4rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin: 1.5rem 0 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gold);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.social-links a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

/* Hero image — MARCO DE ÓLEO */
.hero-image-frame {
    position: relative;
    display: flex;
    justify-content: center;
}

.frame-outer {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.frame-outer::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 2px solid var(--gold-dark);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.frame-outer::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

.hero-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: 2px;
    display: block;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.2);
    filter: sepia(8%) contrast(1.05);
    transition: filter var(--transition);
}

.hero-portrait:hover {
    filter: sepia(0%) contrast(1.1);
}

/* Decorador de esquinas del marco */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.corner::before {
    width: 100%;
    height: 2px;
}

.corner::after {
    width: 2px;
    height: 100%;
}

.corner.tl {
    top: -18px;
    left: -18px;
}

.corner.tr {
    top: -18px;
    right: -18px;
    transform: rotate(90deg);
}

.corner.bl {
    bottom: -18px;
    left: -18px;
    transform: rotate(-90deg);
}

.corner.br {
    bottom: -18px;
    right: -18px;
    transform: rotate(180deg);
}

/* ============================
   INDEX — MINI BIO SECTION
============================ */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-divider h2 {
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.mini-bio {
    background: linear-gradient(135deg, rgba(20, 18, 14, 0.9) 0%, rgba(30, 26, 18, 0.7) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.mini-bio::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 12rem;
    color: var(--gold);
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
}

.mini-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.9;
    position: relative;
    z-index: 1;
    text-align: justify;
}

/* ============================
   INDEX — POPULAR WORKS
============================ */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.obra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    backdrop-filter: blur(8px);
    position: relative;
    group: 1;
}

.obra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(201, 162, 39, 0.15);
    border-color: var(--gold);
}

.obra-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.obra-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    display: block;
}

.obra-card:hover .obra-img-wrap img {
    transform: scale(1.06);
}

.obra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.obra-card:hover .obra-overlay {
    opacity: 1;
}

.obra-overlay-text {
    color: var(--text);
    font-size: 0.85rem;
}

.obra-info {
    padding: 1.2rem 1.5rem;
}

.obra-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.obra-details {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.obra-price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

/* ============================
   GALERÍA PÚBLICA
============================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* ============================
   ABOUT — FULL BLEED IMAGE
============================ */
.about-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    z-index: 1;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% 40%;
    filter: brightness(0.55) sepia(15%);
    transition: transform 12s ease;
}

.about-hero:hover .about-hero-img {
    transform: scale(1.03);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}

.about-hero-caption {
    position: absolute;
    bottom: 4rem;
    left: 6%;
    z-index: 2;
}

.about-hero-caption h1 {
    margin-bottom: 0.5rem;
}

.about-hero-caption p {
    font-size: 1rem;
    color: rgba(240, 237, 230, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* About body content */
.about-body {
    position: relative;
    z-index: 1;
    padding: 0 5% 6rem;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: -2rem;
}

.about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    text-align: justify;
}

.about-quote-block {
    border-left: 3px solid var(--gold);
    padding: 1.5rem 2rem;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}

.about-quote-block p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem !important;
    color: var(--text) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* Timeline */
.timeline {
    margin-top: 3rem;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 40px;
    bottom: -20px;
    width: 1px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    margin-top: 1.2rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================
   CONTACTO — IMMERSIVE
============================ */
.contact-page {
    position: relative;
    min-height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contact-header {
    padding: 9rem 5% 3rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.contact-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-top: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    padding: 0 5% 5rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateX(6px);
    box-shadow: -6px 0 30px rgba(201, 162, 39, 0.1);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    transition: background var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--gold);
    color: var(--bg);
}

.contact-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.contact-card-value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.copy-hint {
    position: absolute;
    right: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition);
}

.contact-card:hover .copy-hint {
    opacity: 1;
}

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gold);
    color: var(--bg);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Map */
.contact-map-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    min-height: 400px;
}

.contact-map-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(201, 162, 39, 0.08);
    border-radius: var(--radius);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: saturate(0.6) brightness(0.7);
    transition: filter var(--transition);
}

.contact-map-wrapper:hover iframe {
    filter: saturate(0.9) brightness(0.9);
}

/* ============================
   FOOTER
============================ */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-login-link {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    color: transparent;
    font-size: 0.7rem;
    opacity: 0.08;
    transition: opacity 0.4s;
}

.admin-login-link:hover {
    opacity: 0.4;
    color: var(--text-muted);
}

/* ============================
   LOGIN
============================ */
.login-container {
    max-width: 420px;
    margin: 8rem auto 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
}

.login-container h2 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.4rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

/* ============================
   LOADING / UTILS
============================ */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--gold);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ============================
   ADMIN PANEL
============================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    padding: 2rem 1.2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
}

.sidebar a.logout {
    margin-top: auto;
    color: #ff6b6b;
}

.sidebar a.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

.content {
    flex: 1;
    padding: 2.5rem 4%;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

canvas {
    width: 100% !important;
    height: 280px !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btns button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: color var(--transition);
}

.action-btns .edit:hover {
    color: #4facfe;
}

.action-btns .delete:hover {
    color: #ff6b6b;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.pagination button:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-mid);
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    border: 1px solid var(--gold);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 6rem 5% 4rem;
    }

    .hero-image-frame {
        order: -1;
    }

    .frame-outer {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-cols {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.2rem;
        gap: 1rem;
    }

    .contact-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}