/* 
  Modern Premium Photography Design System
  Theme: Midnight Luxury (Deep Onyx & Refined Gold)
*/

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --accent-gold: #d4af37;
    --accent-gold-hover: #f1c40f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Scroll Reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    content-visibility: auto;
    /* Browser performance optimization */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-gold {
    background: var(--accent-gold);
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    padding: 12px 30px;
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
}

@media (max-width: 768px) {

    .btn-gold,
    .btn-outline {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .glass {
        backdrop-filter: blur(8px);
        /* Lighter for mobile performance */
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    transition: var(--transition-smooth);
}

nav.scroll-shadow {
    background: rgba(5, 5, 5, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
}

.logo span {
    color: #fff;
    font-weight: 300;
}

.logo:hover {
    color: var(--accent-gold-hover);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.btn-admin {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 8px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-left: 20px;
}

.btn-admin:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .btn-admin {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}


/* Mobile Navigation and Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-gold);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-content {
        padding: 0 20px;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns a {
        width: 80%;
        margin-left: 0 !important;
    }

    /* General Layouts */
    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Portfolio Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Booking Form */
    .booking-container {
        padding: 20px !important;
    }

    #booking-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    /* Chat window mobile */
    .chat-window {
        width: 85vw;
        height: 60vh;
        right: 0;
        bottom: 80px;
    }
}

/* Fix for signature pad on touch devices */
#signature-pad {
    touch-action: none;
    /* Prevents scrolling while signing */
}

/* Google Translate Custom Styling */
#google_translate_element {
    margin-right: 15px;
}

.goog-te-gadget {
    font-family: var(--font-body) !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 1px;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
}

.goog-te-gadget-simple span {
    color: var(--text-primary) !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

@media (max-width: 768px) {
    #google_translate_element {
        margin-right: 10px;
        transform: scale(0.85);
    }
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Background Slider Animation */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenBurns 20s infinite alternate;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Gallery */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 10px 20px;
    transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Booking & Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-card {
    padding: 40px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.price-card h3 {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3rem;
    color: var(--accent-gold);
    margin: 20px 0;
}

.price-features {
    list-style: none;
    margin: 30px 0;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Payment Plans */
.payment-plans {
    margin-top: 40px;
    padding: 20px;
    border: 1px dashed var(--accent-gold);
    border-radius: 8px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 350px;
    right: 30px;
    z-index: 2000;
}

.chat-bubble {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    color: #000;
    font-size: 1.5rem;
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gold-hover);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 400px;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.chat-bubble.pulsing {
    animation: float 3s ease-in-out infinite, pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}


.chat-header {
    padding: 15px;
    background: var(--accent-gold);
    color: #000;
    font-weight: 700;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(10, 10, 11, 0.95);
}

.chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--glass-border);
}

.chat-input input {
    flex-grow: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
}

/* Testimonials Enhanced */
.testimonial-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
}

.add-testimonial-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 25px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.add-testimonial-btn:hover {
    background: var(--accent-gold);
    color: #000;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Testimonials */
.testimonial-card {
    padding: 30px;
    text-align: left;
    border-left: 3px solid var(--accent-gold);
    margin: 20px 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    font-family: var(--font-heading);
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Stats Counter */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-item {
    text-align: center;
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
}

.process-item:hover {
    transform: translateY(-10px);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.process-content {
    position: relative;
    z-index: 2;
}

.process-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* Brand Logos / Awards */
.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition-smooth);
    padding: 40px 0;
}

.brand-logos:hover {
    opacity: 1;
    filter: grayscale(0);
}

.brand-logos span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .brand-logos {
        gap: 30px;
    }
}

/* Admin Upload Improvements */
#upload-dropzone:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--accent-gold);
    transform: scale(1.01);
}

#upload-previews img {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* --- Mejoras para móviles (Smartphones pequeños) --- */
@media (max-width: 480px) {

    /* Esto corrige los textos gigantes en celulares */
    h1,
    .hero-title,
    #site-hero-h1 {
        font-size: 2.2rem !important;
        /* Ajusta "Latino Fine Art" y otros H1 */
        letter-spacing: 1px !important;
    }

    h2,
    .section-title h2,
    #about h2 {
        font-size: 1.8rem !important;
        /* Ajusta "Lo que dicen mis clientes", etc. */
    }

    .price-amount {
        font-size: 2.2rem !important;
        /* Ajusta los precios gigantes */
    }

    .stat-item h2 {
        font-size: 2.2rem !important;
        /* Ajusta los números gigantes del contador */
    }

    .process-number {
        font-size: 2.5rem !important;
        /* Ajusta los números de fondo del proceso */
    }

    .container,
    .glass,
    .testimonial-card,
    .price-card {
        width: 94% !important;
        /* Para que los cuadros no toquen los bordes */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    p,
    .hero-content p {
        font-size: 1rem !important;
        /* Texto de lectura cómodo */
        letter-spacing: 1px !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns a {
        margin: 0 !important;
        width: 100%;
    }
}