@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500&family=Outfit:wght@200;300;400;500&display=swap');

:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --bg-deep: #020617; /* Midnight blue extremely deep */
    --bg-darker: #01040f;
    --bg-card: rgba(3, 7, 24, 0.6);
    --gold-primary: #d4af37; /* Metallic Gold */
    --gold-light: #f6e6b4; /* Champagne gold */
    --gold-dark: #aa841e;
    --gold-gradient: linear-gradient(135deg, #aa841e 0%, #d4af37 50%, #f6e6b4 100%);
    --gold-border: rgba(212, 175, 55, 0.2);
    --text-main: #f1f5f9; /* Off-white */
    --text-muted: #94a3b8; /* Slate gray */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--gold-gradient);
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

p {
    font-weight: 300;
    color: var(--text-muted);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: 0px; /* Minimalist clean straight edges */
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 8%;
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid var(--gold-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold-primary);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.logo-container:hover .logo-icon {
    transform: rotate(135deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--text-main);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-main);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Sections General */
section {
    padding: 100px 8% 80px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero / Lobby Section */
#inicio, #lobby {
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: var(--bg-deep);
}

.hero-video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.25;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-deep) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    padding: 20px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 25px;
    animation: fadeInDown 1.2s ease forwards;
}

.hero-title {
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    margin-bottom: 25px;
    animation: fadeIn 1.6s ease forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    letter-spacing: 0.1em;
    animation: fadeInUp 1.2s ease forwards;
}

.cta-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--text-main);
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: var(--gold-gradient);
    color: var(--bg-darker);
    border-color: transparent;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

/* Portfolio Section */
#portafolio {
    background-color: var(--bg-darker);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.section-header h2 {
    margin-bottom: 0;
}

.portfolio-filters {
    display: flex;
    gap: 25px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-main);
}

.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--gold-border);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-category {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--gold-primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.portfolio-view-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: var(--gold-primary);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-view-icon {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: var(--bg-deep);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 15, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    position: relative;
    border: 1px solid var(--gold-border);
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold-primary);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 4/5;
    border: 1px solid var(--gold-border);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 1px solid var(--gold-primary);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::before {
    top: 10px;
    left: -10px;
    right: 10px;
    bottom: -10px;
}

.about-content {
    padding-left: 20px;
}

.about-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold-primary);
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-experience {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-main);
}

.about-text {
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
}

/* Services / Packages Section */
#servicios {
    background-color: var(--bg-darker);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.package-card {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}

.package-card.recommended::before {
    background: var(--gold-gradient);
}

.package-card.recommended {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.05);
}

.package-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 4px 10px;
    text-transform: uppercase;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.package-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 30px;
}

.package-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.package-features {
    list-style: none;
    margin-bottom: 40px;
}

.package-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features li::before {
    content: '•';
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.package-btn {
    width: 100%;
    text-align: center;
}

/* Reservation & Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    padding-right: 20px;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.contact-descr {
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.detail-text h4 {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.detail-text p {
    font-size: 0.9rem;
}

/* Contact Form & Calendar Integration */
.booking-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--gold-border);
    color: var(--text-main);
    padding: 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Date/Time slots simulator */
.calendar-sim {
    margin-top: 15px;
    border: 1px solid var(--gold-border);
    padding: 20px;
    background: rgba(1, 4, 15, 0.5);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.day-name {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.calendar-day {
    padding: 8px 0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.calendar-day.selected {
    background: var(--gold-gradient);
    color: var(--bg-darker);
}

.calendar-day.disabled {
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--gold-border);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.time-slot.selected {
    background: var(--gold-gradient);
    color: var(--bg-darker);
    border-color: transparent;
}

.time-slot.disabled {
    color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* Booking confirmation alerts */
.booking-message {
    padding: 15px;
    border: 1px solid var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-main);
    font-size: 0.9rem;
    margin-top: 20px;
    display: none;
    text-align: center;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--gold-border);
    padding: 50px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--gold-primary);
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Grid and Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container, .contact-container { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    header { padding: 20px 5%; }
    header.scrolled { padding: 15px 5%; }
    .menu-toggle { display: flex; }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-darker);
        border-left: 1px solid var(--gold-border);
        z-index: 999;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .hero-title { font-size: 3rem; }
    .portfolio-grid, .packages-grid { grid-template-columns: 1fr; }
    .booking-form { padding: 30px 20px; }
    .booking-form { padding: 30px 20px; }
}

/* ==========================================================================
   STUDIO ECOSYSTEM STYLING
   ========================================================================== */
.lobby-welcome {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin: 20px auto 35px;
    font-family: var(--font-body);
    font-weight: 300;
}

/* 6. Reserva y Pagos (Pasarela de Pago) */
.payment-gateway {
    margin-top: 25px;
    border-top: 1px solid var(--gold-border);
    padding-top: 20px;
}

.payment-selector {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.pay-option:hover {
    color: var(--text-main);
}

.pay-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pay-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-fields-wrapper {
    background: rgba(2, 6, 23, 0.5);
    padding: 15px;
    border: 1px solid var(--gold-border);
    margin-top: 10px;
    animation: fadeIn 0.4s ease forwards;
}
