/* ==========================================================================
   INGENIERÍA VITRAL - CSS Unificado (Estático Puro)
   Fusión de: index.css, Navbar.css, Footer.css, Gallery.css, Home.css,
   Portafolio.css, FloatingWhatsApp.css, FloatingPhone.css, ScrollToTopBtn.css
   ========================================================================== */

/* Google Fonts loaded via <link> tags in HTML for better performance */

/* ======================== TOKENS & RESET ======================== */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #131417;
    --bg-glass: rgba(19, 20, 23, 0.7);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent-gold: #cba358;
    --accent-gold-dim: rgba(203, 163, 88, 0.3);
    --accent-blue: #3b82f6;
    --brand-gold: #cba358;
    --nav-height: 80px;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --border-color: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(19, 20, 23, 0.7);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======================== AMBILIGHT BACKGROUND ======================== */
#ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.ambient-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    transition: background-color 1.5s ease-in-out, transform 3s ease-in-out;
    opacity: 0.65;
    will-change: background-color;
    transform: translateZ(0);
}

.ambient-spot-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background-color: var(--ambient-color-1, rgba(59, 130, 246, 0.25));
}

.ambient-spot-2 {
    top: 10%;
    right: -10%;
    width: 70vw;
    height: 70vh;
    background-color: var(--ambient-color-2, rgba(203, 163, 88, 0.25));
}

.ambient-spot-3 {
    bottom: -20%;
    left: -10%;
    width: 65vw;
    height: 65vh;
    background-color: var(--ambient-color-3, rgba(139, 92, 246, 0.25));
}

.ambient-spot-4 {
    bottom: -10%;
    right: 10%;
    width: 55vw;
    height: 55vh;
    background-color: var(--ambient-color-4, rgba(220, 38, 38, 0.25));
}

/* ======================== TYPOGRAPHY ======================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* ======================== UTILITIES ======================== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: linear-gradient(to right, #f4f4f5, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ======================== LAYOUT ======================== */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding-top: var(--nav-height);
}

.page-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(to bottom, rgba(19, 20, 23, 0.8), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    margin-bottom: 1rem;
}

.page-content {
    padding: 4rem 2rem;
}

/* ======================== PRELOADER ======================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-gold), #f4f4f5, var(--accent-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 2s ease-in-out infinite;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #f4f4f5);
    border-radius: 2px;
    animation: preloaderFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmerText {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(203, 163, 88, 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(203, 163, 88, 0.35), 0 0 80px rgba(203, 163, 88, 0.1);
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(203, 163, 88, 0.1);
    }

    50% {
        border-color: rgba(203, 163, 88, 0.4);
    }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

/* ======================== SCROLL REVEAL ======================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation delays */
.stagger-children .reveal:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-children .reveal:nth-child(3) {
    transition-delay: 0.19s;
}

.stagger-children .reveal:nth-child(4) {
    transition-delay: 0.26s;
}

.stagger-children .reveal:nth-child(5) {
    transition-delay: 0.33s;
}

.stagger-children .reveal:nth-child(6) {
    transition-delay: 0.40s;
}

/* ======================== PREMIUM MICRO-ANIMATIONS ======================== */
/* Decorative separator line under section headers */
.section-header h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 1rem auto 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.revealed h2::after,
.section-header h2::after {
    animation: lineExpand 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Enhanced card hover with glow */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(203, 163, 88, 0.4);
    box-shadow: 0 20px 50px rgba(203, 163, 88, 0.12);
}

/* Gallery item premium hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 12px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Video card shimmer border */
.video-card {
    transition: box-shadow 0.4s ease;
}

.video-card:hover {
    box-shadow: 0 10px 40px rgba(203, 163, 88, 0.15);
}

/* YouTube card lift */
.youtube-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Rounded image parallax tilt */
.rounded-image {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.rounded-image:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 30px 60px rgba(203, 163, 88, 0.25);
}

/* Float animation for feature icons */
.feature-icon {
    animation: floatY 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

/* Hero shimmer text gradient */
.hero h1 .text-gradient {
    background: linear-gradient(90deg, #f4f4f5, var(--accent-gold), #f4f4f5, var(--accent-gold));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 4s ease-in-out infinite;
}

/* CTA buttons pulse */
.hero-cta .btn-primary {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Smooth page header entrance */
.page-header h1 {
    animation: fadeInUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header p {
    animation: fadeInUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Founder info border glow */
.founder-info {
    animation: borderGlow 4s ease-in-out infinite;
}

/* Smooth scrollbar */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .feature-icon {
        animation: none;
    }

    .hero h1 .text-gradient {
        animation: none;
    }

    .hero-cta .btn-primary {
        animation: none;
    }

    .founder-info {
        animation: none;
    }
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #d1b173;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-gold-dim);
}

.btn-secondary {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

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

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        background-image: radial-gradient(circle at center, rgba(30, 30, 30, 0.95) 0%, rgba(18, 18, 18, 1) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(-100%);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.5rem;
    }
}

/* ======================== HERO (HOME) ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-primary);
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================== HOME SECTIONS ======================== */
.section-padding {
    padding: 6rem 1rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(203, 163, 88, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.video-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.youtube-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.dark-section {
    background: #050505;
    padding: 6rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--brand-gold);
    margin-bottom: 2rem;
    font-style: italic;
}

.founder-info {
    padding: 2rem;
    border-left: 4px solid var(--brand-gold);
}

.founder-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.studies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.studies-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.studies-list strong {
    color: var(--text-primary);
}

.rounded-image {
    width: 100%;
    border-radius: 12px;
    max-height: 600px;
    object-fit: cover;
}

.shadow-gold {
    box-shadow: 0 20px 40px rgba(203, 163, 88, 0.15);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================== GALLERY (MASONRY + LIGHTBOX) ======================== */
.gallery-container {
    margin: 3rem 0;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

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

.lightbox-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    cursor: auto;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-actions {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.btn-whatsapp-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-whatsapp-quote:hover {
    background-color: #1ebd5a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

@media (max-width: 1024px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .lightbox-modal {
        padding: 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-actions {
        bottom: 15px;
    }

    .btn-whatsapp-quote {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        column-count: 1;
        column-gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .gallery-item {
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }

    .gallery-item img {
        max-height: 70vh;
        object-fit: cover;
        width: 100%;
    }

    .page-header {
        padding: 4rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 2rem 0.5rem;
    }
}

/* ======================== FOOTER ======================== */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 1rem;
}

.footer-brand .highlight {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ======================== FLOATING WHATSAPP ======================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.5);
}

.wpp-icon-wrapper {
    background-color: #25D366;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.wpp-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.wpp-text {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    white-space: nowrap;
}

.wpp-text strong {
    color: #25D366;
    font-weight: 600;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        padding: 8px;
    }

    .wpp-text {
        display: none;
    }

    .wpp-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .wpp-icon {
        width: 28px;
        height: 28px;
    }
}

/* ======================== FLOATING PHONE ======================== */
.floating-phone {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-phone:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(203, 163, 88, 0.3);
    border-color: rgba(203, 163, 88, 0.5);
}

.phone-icon-wrapper {
    background-color: var(--accent-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(203, 163, 88, 0.4);
}

.phone-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.phone-text {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    white-space: nowrap;
}

.phone-text strong {
    color: var(--accent-gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .floating-phone {
        bottom: 95px;
        right: 20px;
        padding: 8px;
    }

    .phone-text {
        display: none;
    }

    .phone-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .phone-icon {
        width: 28px;
        height: 28px;
    }
}

/* ======================== SCROLL TO TOP BUTTON ======================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        right: 20px;
        bottom: 165px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* ======================== PORTAFOLIO EXTRAS ======================== */
.list-info-section {
    padding-top: 2rem;
}

.list-info-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}