/* Fonts loaded via index.html for performance */

:root {
    --primary-bg: #000000;
    --secondary-bg: #161617;
    /* Apple's dark gray for cards */
    --glass-bg: rgba(22, 22, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #0071e3;
    /* Apple Blue */
    --text-main: #f5f5f7;
    --text-dim: #86868b;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 980px;
    /* Standard Apple content width */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

body:not(.user-role-admin) img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body.user-role-admin img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.47059;
    /* Apple's standard line height */
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

body.is-loading {
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.22), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(0, 113, 227, 0.15), transparent 35%),
        #000000;
    transition: opacity 0.45s ease;
}

.loading-screen.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    width: min(90vw, 460px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
    margin-bottom: 1rem;
}

.loading-bar-wrap {
    width: min(50vw, 240px);
    min-width: 160px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0071e3, #35a1ff);
    transition: width 0.18s linear;
}

.loading-percent {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-logo {
        width: 60px;
        height: 60px;
    }

    .loading-bar-wrap {
        width: min(70vw, 200px);
        min-width: 140px;
        height: 10px;
    }

    .loading-percent {
        font-size: 0.85rem;
    }

    .loading-content {
        width: min(95vw, 400px);
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .loading-bar-wrap {
        width: min(80vw, 180px);
        min-width: 120px;
        height: 8px;
    }

    .loading-percent {
        font-size: 0.8rem;
        margin-top: 0.35rem;
    }

    .loading-content {
        width: 100%;
        padding: 0 15px;
    }
}

h1,
h2,
h3,
.package-name {
    font-family: var(--font-heading);
    letter-spacing: -0.003em;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transition: filter 0.8s ease;
    pointer-events: none;
}

.packages-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url('assets/boda2.webp');
    filter: blur(10px);
}

.portfolio-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(10px);
}

.reserve-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(4px) brightness(0.9);
}

.graphics-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.74)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(5px) brightness(0.88);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    padding-bottom: 2rem;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cover-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}


.cover-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Fondo animado de respaldo (Detrás del GIF) */
.cover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #09090b, #161617, #004b96, #09090b);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    z-index: -1;
}

.cover-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, var(--primary-bg));
    z-index: 3;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 22px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin-bottom: 15px;
}

.bio {
    font-size: 19px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: .011em;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.profile-container {
    text-align: center;
    margin-top: -75px;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.profile-image-wrapper {
    width: 150px !important;
    height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    margin: 0 auto 1.5rem !important;
    position: relative;
    border-radius: 50% !important;
    padding: 4px;
    background: linear-gradient(-45deg, #0071e3, #3b82f6, #00f2fe, #0071e3);
    background-size: 400% 400%;
    animation: gradientBG 5s ease infinite;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
}

/* Glow effect using pseudo-element for perfect alignment */
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: inherit;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
    animation: profileGlowPulse 4s ease-in-out infinite;
}

@keyframes profileGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.profile-image {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--primary-bg) !important;
    display: block !important;
}

h1,
h2,
h3,
.package-name {
    font-family: var(--font-heading);
    letter-spacing: -0.003em;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transition: filter 0.8s ease;
    pointer-events: none;
}

.packages-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url('assets/boda2.webp');
    filter: blur(10px);
}

.portfolio-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(10px);
}

.reserve-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(4px) brightness(0.9);
}

.graphics-page .background-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.74)), url('assets/quince_DSC03066-scaled.webp');
    filter: blur(5px) brightness(0.88);
}

/* Secondary hero definitions removed to consolidate styles */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 22px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin-bottom: 15px;
}

.bio {
    font-size: 19px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: .011em;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Profile container positioning */
.profile-container {
    text-align: center;
    margin-top: -75px;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.name {
    font-size: clamp(1.8rem, 8vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    word-wrap: break-word;
}

.bio {
    font-size: 19px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: .011em;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
}

/* Links Container */
.links-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.links-grid {
    display: contents;
}

.link-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 90px;
    z-index: 1;
}

.link-card.has-image {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

.link-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%);
}

[data-theme="light"] .link-card.has-image .link-card-bg::after {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 100%);
}

.link-card:hover .link-card-bg {
    transform: scale(1.05);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: 0.5s;
}

.link-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-card:hover::before {
    left: 100%;
}

.link-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    /* Apple Squircle aprox */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .link-icon-container {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.link-card.has-image .link-icon-container {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.link-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.link-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.link-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

[data-theme="light"] .link-card.has-image .link-content h3 {
    color: #000000;
}

.link-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.35;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
}

[data-theme="light"] .link-card.has-image .link-content p {
    color: #4a5568;
}

.link-btn-wrapper {
    flex-shrink: 0;
}

.link-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(4px);
}

[data-theme="light"] .link-btn {
    background: rgba(0, 0, 0, 0.08);
    color: var(--accent-primary);
}

.link-card.has-image .link-btn {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

[data-theme="light"] .link-card.has-image .link-btn {
    background: rgba(0, 0, 0, 0.15);
    color: #000000;
}

.link-card:hover .link-btn {
    background: var(--accent-color);
    color: white;
}

/* Consolidated Footer Styles at end of file */

.footer-accent-line {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Styles */
.portfolio-header {
    text-align: center;
    padding: 2rem 1rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-btn:hover {
    transform: translateX(-5px);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: #FFFFFF;
    color: #000000;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Styles */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 113, 227, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 5;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 0, 113, 0.4);
    padding-left: 5px;
    /* Visual center adjustment for the triangle */
}

.gallery-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 113, 227, 0.6);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .links-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .name {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .filter-controls {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    /* Logo Column at Top on Mobile */
    .footer-center {
        grid-row: 1;
        margin-bottom: 1rem;
    }

    .footer-column,
    .footer-right {
        text-align: center;
    }

    .footer-links a,
    .footer-social a {
        justify-content: center;
    }

    .footer-right ul {
        align-items: center;
    }

    .footer-links a:hover,
    .footer-social a:hover {
        transform: translateY(-2px);
    }

    .link-icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .link-card {
        padding: 1.2rem;
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .cover-image {
        height: 160px;
    }

    .profile-container {
        margin-top: -55px;
    }

    .profile-image-wrapper {
        width: 110px !important;
        height: 110px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .link-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }

    .link-content h3 {
        font-size: 1rem;
    }

    .link-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .name {
        font-size: 1.5rem;
    }

    .bio {
        font-size: 0.9rem;
    }
}

/* Multi-step Form Styles */
.step-container {
    width: min(100%, 720px);
    margin: 2.5rem auto 1rem;
    background:
        radial-gradient(circle at 10% -5%, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    padding: 3.2rem 2.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.08), transparent 55%);
}

.step {
    display: none;
    animation: stepIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.step.active {
    display: block;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.64);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.step-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 650;
    margin-bottom: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.step-input-group {
    margin-bottom: 2rem;
}

.step-input-group input,
.step-input-group select,
.step-input-group textarea {
    width: 100%;
    background: rgba(9, 14, 24, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
    color: white;
    text-align: left;
    transition: var(--transition);
    outline: none;
}

.step-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.step-input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.step-input-group textarea {
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
    line-height: 1.5;
}

.step-input-group input:focus,
.step-input-group select:focus,
.step-input-group textarea:focus {
    border-color: rgba(0, 113, 227, 0.8);
    background: rgba(8, 14, 24, 0.78);
    box-shadow:
        0 0 0 4px rgba(0, 113, 227, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.step-input-group select option {
    background-color: #0f1623;
    color: white;
}

.graphics-form-shell {
    max-width: 760px;
}

.graphics-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.graphics-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    text-align: left;
}

.graphics-option:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.graphics-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    margin: 0;
}

.graphics-option span {
    font-size: 0.92rem;
}

.thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 40000;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.thanks-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.thanks-card {
    width: min(90vw, 420px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    padding: 1.4rem 1.2rem;
    text-align: center;
}

.thanks-card h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.thanks-card p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
}

.error-message {
    color: #ff8f96;
    font-size: 0.82rem;
    margin-top: -0.65rem;
    margin-bottom: 1.5rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.btn-nav {
    min-width: 136px;
    min-height: 46px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-nav.primary {
    background: linear-gradient(135deg, #0a84ff, #4bb8ff);
    color: #001528;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.34);
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
}

.btn-nav.primary:hover {
    background: linear-gradient(135deg, #2a9bff, #74c7ff);
    transform: translateY(-2px);
}

.btn-nav:hover {
    transform: translateY(-2px);
}

.btn-nav:disabled {
    opacity: 0.38;
    pointer-events: none;
}

/* Refined Progress Bar - Integrated into Step Container */
.progress-info {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
}

.progress-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0071e3, #3b82f6);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.2);
}

@media (max-width: 900px) {
    .step-container {
        width: min(100%, 680px);
        margin-top: 1.75rem;
        border-radius: 28px;
        padding: 2.5rem 1.8rem;
        min-height: 390px;
    }

    .step-title {
        margin-bottom: 1.55rem;
    }

    .step-input-group input,
    .step-input-group select {
        border-radius: 14px;
        padding: 0.9rem 1rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
    }

    .btn-nav {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 560px) {
    .step-container {
        margin-top: 1.2rem;
        padding: 2.2rem 1rem 1.1rem;
        border-radius: 24px;
        min-height: 360px;
    }

    .step-label {
        margin-bottom: 0.9rem;
        letter-spacing: 0.13em;
    }

    .step-input-group {
        margin-bottom: 1.35rem;
    }

    .step-title {
        font-size: 1.45rem;
        margin-bottom: 1.15rem;
        line-height: 1.2;
    }

    #captchaNotice {
        margin-top: -0.2rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.82rem !important;
    }

    .nav-buttons {
        gap: 0.65rem;
    }

    .btn-nav {
        min-height: 44px;
        font-size: 0.88rem;
        min-width: 0;
    }

    .graphics-options {
        grid-template-columns: 1fr;
    }
}

/* Packages Styles */
.packages-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.packages-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.packages-hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 2rem 22px 5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.package-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 22px;
    padding: 30px 25px;
    /* Reduced from 40px for a more balanced look with video */
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 400px;
    /* Reduced since features list is gone */
}

.package-video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    /* Strict TikTok/Reels vertical aspect ratio */
    height: auto;
    border-radius: 16px;
    /* Slightly more rounded for premium look */
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .package-video-wrapper {
        aspect-ratio: 9 / 16;
    }
}

.package-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 2.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.6s ease-in-out,
        filter 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    /* Reduced initial zoom */
    filter: blur(8px) brightness(0.8);
    /* Lighter initial blur */
}

.package-video.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
    /* Smooth zoom out */
    filter: blur(0px) brightness(1);
}

.package-video.next {
    opacity: 0;
    z-index: 1;
    transform: scale(1.15);
    filter: blur(20px) brightness(0.4);
    /* Very heavy blur for outgoing/incoming */
}

.package-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 5;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Removed hover scale on video to prioritize cinematic transitions */

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 22px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--pkg-color) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.package-card:hover::after {
    opacity: 0.15;
}

.package-card.recommended {
    border: 1.5px solid var(--pkg-color, #FFFFFF);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    z-index: 2;
    padding: 44px 25px;
    /* Slightly taller */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--pkg-color), 0.1);
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-card.recommended:hover {
    transform: translateY(-10px) scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pkg-color, var(--accent-color));
    color: #000000;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 10;
}

.back-btn,
.btn-secondary,
.btn-reserve,
.btn-amazon {
    display: inline-block;
    text-align: center;
    height: 44px;
    line-height: 40px;
    /* 44px height - 4px (2px border top + 2px border bottom) */
    padding: 0 15px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
}

.back-btn span {
    margin-right: 6px;
    display: inline-block;
    vertical-align: top;
    line-height: 39px;
    /* Slightly adjusted for the arrow to center visually */
}

.back-btn,
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-reserve {
    background: var(--pkg-color, var(--accent-color));
    color: #000000;
    border-color: var(--pkg-color, var(--accent-color));
    /* Same border footprint */
}

.back-btn:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.package-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.2;
    overflow-wrap: break-word;
}

.package-price {
    font-size: 32px;
    font-weight: 600;
    margin: 10px 0 20px;
    letter-spacing: -0.015em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    /* Prevent overflow by wrapping if necessary */
}

.package-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dim);
}

.features-list {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
    flex: 1;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: 700;
}

.reserve-info {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}


.btn-reserve:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .package-card.recommended {
        transform: scale(1);
        padding: 40px 20px;
    }

    .package-card.recommended:hover {
        transform: translateY(-10px);
    }

    .packages-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-video-wrapper {
        height: 260px;
    }

    .package-name {
        font-size: 20px;
    }

    .package-price {
        font-size: 26px;
    }
}

/* Products Page Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding-bottom: 5rem;
}

.product-card {
    background: var(--secondary-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    background: #1d1d1f;
}

.product-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.product-price {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 19px;
    font-weight: 500;
}

.btn-amazon {
    background: var(--accent-color);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-amazon:hover {
    background: #0077ed;
}

.back-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-link:hover {
    padding-left: 5px;
}

/* Carousel Modal Styles */
.carousel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.carousel-modal.active {
    display: flex;
    opacity: 1;
}

.carousel-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition);
}

.carousel-close:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-track-container {
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    /* Slightly taller for PC */
    overflow: hidden;
    position: relative;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .carousel-track-container {
        height: 70vh;
        /* Shorter for mobile to fit UI */
    }
}

.carousel-track {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* Always flex but hidden */
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-main-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-user-drag: none;
}

body:not(.user-role-admin) .carousel-main-img {
    user-select: none;
}

.carousel-main-img.loaded {
    opacity: 1;
}

.carousel-cta {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-slide.active .carousel-cta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-carousel-pkg {
    background: #FFFFFF;
    color: #000000;
    padding: 14px 34px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-carousel-pkg:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-nav.prev {
    left: 40px;
}

.carousel-nav.next {
    right: 40px;
}

.carousel-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2010;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }

    .carousel-track-container {
        height: 60vh;
    }

    .carousel-cta {
        bottom: 40px;
    }

    .btn-carousel-pkg {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* Reviews Section Styles */
.reviews-section {
    margin-top: 2rem;
    padding: 2rem 1rem 4rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.reviews-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-track-container {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-card {
    min-width: 100%;
    padding: 3rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    text-align: center;
    box-sizing: border-box;
}

.review-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.review-comment {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 400;
}

.review-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.review-info {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.review-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: var(--transition);
}

.review-nav:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.review-nav.prev {
    left: -70px;
}

.review-nav.next {
    right: -70px;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.review-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

@media (max-width: 1100px) {
    .review-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 2rem;
    }

    .review-comment {
        font-size: 1.1rem;
    }
}

.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0071e3;
    border: 1px solid #0071e3;
    color: white;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5000;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
}

/* Offset for when marquee is active */
#seasonalMarquee:not(.fade-out)~.lang-switcher {
    top: 70px;
    /* Shifts down when marquee is present */
}

.lang-switcher:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #1d1d1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lang-switcher .active-lang {
    color: var(--accent-color);
    /* Highlight with accent color */
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0, 113, 227, 0.5);
    background: white;
    /* Optional: Make text more legible if needed, or stick to accent text on white? No, it's glass bg. */
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.lang-switcher .inactive-lang {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* -------------------------------- */
/*          BLOG STYLES             */
/* -------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 5rem;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.blog-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0;
    /* No margin bottom needed as it's the last element */
    color: var(--text-main);
}

/* Removed excerpt and read-more styles as per user request */

/* Article Modal - Obsoleto, se usa post.php */
.article-modal {
    display: none;
}

.article-content-wrapper {
    background: #161617;
    max-width: 800px;
    width: 100%;
    border-radius: 20px;
    padding: 0;
    margin-top: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.article-hero-container {
    width: 100%;
    height: 350px;
    position: relative;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* No radius on image itself, controlled by wrapper overflow */
    margin-bottom: 0;
}

.article-text-content {
    padding: 2.5rem;
}

.article-meta {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-body-text {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1.1rem;
}

.article-body-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.article-body-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

/* -------------------------------- */
/*       TEMPLATES STYLES           */
/* -------------------------------- */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 5rem;
}

.template-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.template-image-container {
    width: 100%;
    height: 250px;
    /* Taller for vertical templates */
    position: relative;
    overflow: hidden;
}

.template-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-card:hover img {
    transform: scale(1.05);
}

.use-template-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.template-card:hover .use-template-btn {
    transform: translateY(0);
}

.template-content {
    padding: 1.5rem;
    text-align: center;
}

.template-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.template-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.lang-switcher .divider {
    margin: 0 4px;
    opacity: 0.3;
}

/* -------------------------------- */
/*      FOOTER MODERNIZADO          */
/* -------------------------------- */
.footer-premium {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 20, 40, 0.9) 30%, #010c15 100%);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-column h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links,
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-social li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-social a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-center {
    text-align: center;
}

.footer-full-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-premium-text {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-right {
    text-align: right;
}

.footer-right ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    /* Logo Column at Top on Mobile */
    .footer-center {
        grid-row: 1;
        margin-bottom: 1rem;
    }

    .footer-column,
    .footer-right {
        text-align: center;
    }

    .footer-links a,
    .footer-social a {
        justify-content: center;
    }

    .footer-right ul {
        align-items: center;
    }

    .footer-links a:hover,
    .footer-social a:hover {
        transform: translateY(-2px);
    }

    .link-icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .link-card {
        padding: 1.2rem;
        min-height: 80px;
    }
}

/* Premium Gallery Styles */
.btn-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    font-size: 1.8rem;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Premium Gallery & Masonry Styles */
.gallery-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
    z-index: 1000;
    transition: var(--transition);
}

.gallery-toolbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.toolbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
}

.toolbar-actions {
    display: flex;
    gap: 15px;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.toolbar-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.premium-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 10s ease-out;
}

.premium-hero:hover .hero-bg {
    transform: scale(1.08);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-meta {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.btn-premium {
    background: white !important;
    color: black !important;
    border: none !important;
    padding: 18px 45px !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-premium:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4) !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Masonry Photos Grid */
.photos-masonry {
    columns: 3 350px;
    column-gap: 20px;
    padding: 0 20px;
    max-width: 1600px;
    margin: 100px auto;
}

.photo-item-premium {
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    background: #111;
}

.photo-item-premium img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.photo-item-premium:hover img {
    transform: scale(1.04);
}

.photo-overlay-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: flex-end;
}

.photo-item-premium:hover .photo-overlay-premium {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-toolbar {
        padding: 15px 20px;
    }

    .toolbar-brand {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .photos-masonry {
        columns: 1;
        margin: 50px auto;
    }
}