:root {
--bg: #050302;
--ink: #f4ede0;
--muted: #b8afa4;
--accent: #d6a374;
--accent-dark: #8c5c35;
--line: rgba(214, 163, 116, 0.3);
--surface: rgba(15, 11, 9, 0.8);
--surface-hover: rgba(18, 13, 10, 0.95);
}

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

html {
scroll-behavior: smooth;
scroll-padding-top: clamp(5rem, 7vw, 6.5rem);
}

.surface-card {
border: 1px solid var(--line);
border-radius: 30px;
background: var(--surface);
box-shadow: 0 25px 50px rgba(0,0,0,0.45);
transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.surface-card:hover {
transform: translateY(-4px);
border-color: rgba(255,255,255,0.4);
background: var(--surface-hover);
}

body {
font-family: 'Source Sans 3', sans-serif;
background: #050302;
color: var(--ink);
line-height: 1.7;
overflow-x: hidden;
}

h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
}

.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.active {
opacity: 1;
transform: translateY(0);
}

section {
padding: clamp(3rem, 7vw, 5rem) 2rem;
scroll-margin-top: clamp(5rem, 7vw, 6.5rem);
}

.container {
max-width: 1260px;
margin: 0 auto;
scroll-margin-top: clamp(5rem, 7vw, 6.5rem);
}

.page-hero {
padding: clamp(3.5rem, 7vw, 5rem) 2rem;
background: radial-gradient(circle at 15% 20%, rgba(214,163,116,0.18), rgba(5,3,2,0.95));
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-hero .container {
display: grid;
gap: 1rem;
max-width: 1024px;
}

.page-hero h1 {
font-size: clamp(2.4rem, 6vw, 3.6rem);
line-height: 1.1;
}

.page-hero p {
color: rgba(255,255,255,0.85);
max-width: 800px;
}

.page-loader {
position: fixed;
inset: 0;
background: #040201;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
opacity: 0;
visibility: hidden;
}

.loader-spinner {
width: 56px;
height: 56px;
border: 4px solid rgba(255,255,255,0.1);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(4,2,1,0.85);
backdrop-filter: blur(14px);
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
max-width: 1260px;
margin: 0 auto;
padding: 1.1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
}

.logo {
letter-spacing: 0.6em;
font-size: 0.95rem;
color: var(--accent);
text-decoration: none;
display: inline-block;
}

nav ul {
list-style: none;
display: flex;
gap: 1.8rem;
}

nav a {
text-decoration: none;
color: var(--muted);
font-size: 0.85rem;
letter-spacing: 0.25em;
text-transform: uppercase;
position: relative;
padding-bottom: 0.2rem;
}

nav a::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background: var(--accent);
transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
color: var(--ink);
}

nav a:hover::after,
nav a.active::after {
width: 100%;
}

.hamburger {
display: none;
flex-direction: column;
gap: 6px;
cursor: pointer;
}

.hamburger span {
width: 28px;
height: 3px;
background: #fff;
transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.55);
z-index: 950;
opacity: 0;
transition: opacity 0.3s ease;
}

.menu-overlay.active {
display: block;
opacity: 1;
}

.hero-carousel {
position: relative;
min-height: 100vh;
height: 100vh;
overflow: hidden;
background: #070403;
}

.carousel-container {
display: flex;
height: 100%;
transition: transform 0.7s ease;
}

.carousel-slide {
min-width: 100%;
height: 100%;
position: relative;
}

.carousel-image {
width: 100%;
height: 100%;
object-fit: cover;
filter: saturate(0.9) brightness(0.65);
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgba(4,2,1,0.92) 15%, rgba(4,2,1,0.4) 55%, transparent 100%);
display: flex;
align-items: center;
padding: clamp(2rem, 6vw, 5rem);
}

.hero-copy {
max-width: 540px;
padding: clamp(1rem, 4vw, 2.5rem);
border-radius: 32px;
background: rgba(5,3,2,0.65);
border: 1px solid rgba(255,255,255,0.05);
box-shadow: 0 30px 45px rgba(0,0,0,0.4);
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 1rem;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.2);
letter-spacing: 0.35em;
font-size: 0.75rem;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 1rem;
}

.hero-copy h1 {
font-size: clamp(2.8rem, 6vw, 4rem);
margin-bottom: 0.75rem;
line-height: 1.1;
letter-spacing: 0.03em;
}

.hero-copy p {
color: rgba(255,255,255,0.85);
margin-bottom: 1.5rem;
}

.hero-ctas {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.primary-cta,
.ghost-cta {
text-decoration: none;
letter-spacing: 0.25em;
text-transform: uppercase;
font-size: 0.85rem;
padding: 0.85rem 1.75rem;
border-radius: 999px;
border: 1px solid transparent;
}

.primary-cta {
background: linear-gradient(120deg, var(--accent), var(--accent-dark));
color: #120a07;
}

.ghost-cta {
border-color: rgba(255,255,255,0.4);
color: var(--ink);
}

.carousel-indicators {
position: absolute;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 0.5rem;
z-index: 2;
}

.indicator {
width: 9px;
height: 9px;
border-radius: 999px;
background: rgba(255,255,255,0.4);
}

.indicator.active {
width: 26px;
background: var(--accent);
}

.section-header {
text-align: center;
max-width: 760px;
margin: 0 auto 3rem;
}

.section-eyebrow {
letter-spacing: 0.35em;
text-transform: uppercase;
font-size: 0.75rem;
color: var(--muted);
margin-bottom: 0.75rem;
}

.section-title {
font-size: clamp(2.2rem, 5vw, 3.2rem);
margin-bottom: 0.75rem;
}

.section-description {
color: var(--muted);
}

#libros .section-description {
padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.about-section {
border-top: 1px solid rgba(255,255,255,0.05);
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.about-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 3.5rem;
align-items: center;
}

.about-image {
width: 100%;
max-width: 360px;
height: auto;
border-radius: 34px;
border: 1px solid var(--line);
box-shadow: 0 40px 70px rgba(0,0,0,0.35);
object-fit: cover;
margin: 0 auto;
}

.about-intro {
color: rgba(255,255,255,0.9);
margin-bottom: 1.2rem;
}


.artwork-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
justify-items: center;
}

#arte,
#libros {
background: rgba(255,255,255,0.015);
border: 1px solid rgba(255,255,255,0.03);
border-radius: 34px;
padding: clamp(4rem, 8vw, 6rem);
}

#arte {
margin-top: clamp(2rem, 6vw, 4rem);
}

#libros {
margin-top: clamp(2rem, 6vw, 4rem);
}

.home-panels {
padding-top: clamp(3rem, 6vw, 5rem);
}

.home-panels-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.2rem;
}

.home-panel {
padding: 1.6rem;
text-decoration: none;
color: var(--ink);
display: flex;
flex-direction: column;
gap: 0.65rem;
height: 100%;
}

.panel-eyebrow {
letter-spacing: 0.3em;
text-transform: uppercase;
font-size: 0.72rem;
color: var(--muted);
}

.home-panel h3 {
font-size: 1.35rem;
}

.home-panel p {
color: rgba(255,255,255,0.8);
flex: 1;
}

.panel-link {
letter-spacing: 0.2em;
text-transform: uppercase;
font-size: 0.75rem;
color: var(--accent);
}

.page-intro {
color: var(--muted);
max-width: 760px;
}

.artwork-card,
.book-card,
.contact-form {
border: 1px solid var(--line);
border-radius: 30px;
background: var(--surface);
box-shadow: 0 25px 50px rgba(0,0,0,0.45);
transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.artwork-card,
.book-card {
overflow: hidden;
cursor: pointer;
display: flex;
flex-direction: column;
width: 100%;
max-width: 360px;
margin: 0 auto;
}

.artwork-card:hover,
.book-card:hover {
transform: translateY(-4px);
border-color: rgba(255,255,255,0.4);
background: var(--surface-hover);
}

.artwork-image {
width: 100%;
height: 260px;
object-fit: cover;
}

.artwork-info {
padding: 1.6rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
}

.artwork-subtitle {
color: var(--muted);
font-size: 0.9rem;
}

.artwork-summary {
color: rgba(255,255,255,0.85);
font-size: 0.92rem;
}

.artwork-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.2em;
color: var(--muted);
}

.artwork-price {
color: var(--accent);
font-weight: 600;
letter-spacing: 0.15em;
}

.artwork-cta {
border: 1px solid var(--accent);
background: transparent;
color: var(--accent);
padding: 0.65rem 1.1rem;
border-radius: 999px;
letter-spacing: 0.25em;
text-transform: uppercase;
font-size: 0.75rem;
align-self: flex-start;
cursor: pointer;
transition: background 0.3s ease, color 0.3s ease;
}

.artwork-cta:hover {
background: var(--accent);
color: #241106;
}

.books-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
justify-items: center;
}

.book-card {
padding: 1.6rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.book-buttons {
margin-top: auto;
}

.btn-buy {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.7rem 1.3rem;
border: 1px solid var(--accent);
border-radius: 999px;
text-decoration: none;
letter-spacing: 0.25em;
text-transform: uppercase;
font-size: 0.75rem;
color: var(--accent);
background: transparent;
position: relative;
z-index: 1;
}

.btn-buy:hover {
background: var(--accent);
color: #241106;
}

.tutoring-section {
position: relative;
z-index: 2;
border-radius: 40px;
border: 1px solid rgba(43,29,20,0.12);
background: radial-gradient(circle at top left, rgba(214,163,116,0.35), transparent 55%), #f7efe2;
color: #2b1d14;
margin-bottom: clamp(1rem, 3vw, 2.5rem);
padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
box-shadow: 0 45px 80px rgba(0,0,0,0.35);
text-align: center;
}

.tutoring-inner {
max-width: 760px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.2rem;
align-items: center;
justify-content: center;
text-align: center;
}

.tutoring-badge {
letter-spacing: 0.3em;
text-transform: uppercase;
font-size: 0.78rem;
color: #4a3425;
display: inline-flex;
align-items: center;
gap: 0.4rem;
}

.tutoring-logo {
width: 120px;
margin: 0 auto 1rem;
}

.tutoring-highlights {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
margin: 0.85rem auto 0.4rem;
font-weight: 600;
letter-spacing: 0.3px;
max-width: 620px;
}

.tutoring-highlights span {
border: 1px solid rgba(43,29,20,0.2);
border-radius: 999px;
padding: 0.4rem 1rem;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.15em;
white-space: nowrap;
}

.tutoring-card {
background: #fff;
border-radius: 32px;
border: 1px solid rgba(43,29,20,0.1);
padding: 1.6rem;
box-shadow: 0 25px 55px rgba(43,29,20,0.15);
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.tutoring-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.8rem 1.8rem;
background: #2b1d14;
color: #f7efe2;
text-decoration: none;
border-radius: 999px;
letter-spacing: 0.2em;
margin-top: 1rem;
}

.contact-section {
position: relative;
z-index: 1;
border: 1px solid var(--line);
border-radius: 40px;
padding: clamp(5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(5,3,2,0.95));
margin-top: 0;
}

.contact-inner {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 3rem;
}

.contact-content h2 {
font-size: clamp(2rem, 4vw, 3rem);
margin-bottom: 0.5rem;
}

.contact-meta {
list-style: none;
margin-top: 1.5rem;
color: var(--muted);
}

.contact-meta li {
display: flex;
align-items: center;
gap: 0.8rem;
}

.contact-form {
border-radius: 30px;
padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.3rem;
}

.form-group {
position: relative;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 20px;
padding: 0.75rem 1rem 0.25rem;
background: rgba(255,255,255,0.02);
}

.form-group label {
letter-spacing: 0.3em;
font-size: 0.65rem;
text-transform: uppercase;
color: var(--muted);
display: block;
margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
width: 100%;
border: none;
background: transparent;
color: var(--ink);
font-size: 1rem;
font-family: inherit;
resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
}

/* Modal */
.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.92);
z-index: 2000;
align-items: center;
justify-content: center;
padding: 2rem;
}

.modal.active {
display: flex;
}

.modal-content {
max-width: 940px;
width: 100%;
background: #050302;
border-radius: 32px;
border: 1px solid var(--line);
padding: clamp(1.5rem, 4vw, 3rem);
position: relative;
}

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

.modal-image {
width: 100%;
border-radius: 24px;
border: 1px solid rgba(255,255,255,0.1);
object-fit: cover;
}

.modal-details {
display: grid;
gap: 1rem;
}

.modal-detail {
display: flex;
justify-content: space-between;
border-bottom: 1px solid rgba(255,255,255,0.08);
padding-bottom: 0.6rem;
}

.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.35);
background: rgba(5,3,2,0.85);
color: var(--ink);
font-size: 1.4rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 5;
transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
background: rgba(214,163,116,0.2);
transform: translateY(-1px);
}

.contact-button {
margin-top: 1.5rem;
width: 100%;
border: none;
border-radius: 999px;
background: linear-gradient(115deg, var(--accent), var(--accent-dark));
color: #2b1304;
letter-spacing: 0.25em;
text-transform: uppercase;
padding: 0.9rem 1.4rem;
font-weight: 600;
cursor: pointer;
}

footer {
text-align: center;
padding: 2rem;
color: var(--muted);
border-top: 1px solid rgba(255,255,255,0.05);
}

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

@media (max-width: 1100px) {
nav ul { display: none; }
.hamburger { display: flex; }
#navMenu {
position: fixed;
top: 0;
right: 0;
width: 280px;
height: 100vh;
background: rgba(5,3,2,0.95);
padding: 6rem 2rem 2rem;
transform: translateX(100%);
transition: transform 0.4s ease;
pointer-events: none;
}
#navMenu.active {
transform: translateX(0);
pointer-events: auto;
}
#navMenu ul {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.hero-overlay { justify-content: center; text-align: center; }
.hero-ctas { justify-content: center; }
.hero-ctas { justify-content: center; }
}

@media (max-width: 900px) {
.books-grid,
.artwork-grid {
grid-template-columns: 1fr;
justify-items: center;
}

.artwork-card,
.book-card {
width: 100%;
max-width: 360px;
}
}

@media (max-width: 640px) {
.hero-ctas {
flex-direction: column;
width: 100%;
}
.primary-cta,
.ghost-cta {
width: 100%;
justify-content: center;
}
.contact-form {
padding: 1.25rem;
}

.modal-close {
top: 0.5rem;
right: 0.5rem;
width: 44px;
height: 44px;
font-size: 1.2rem;
}
}
