/* ============================================
   MEMENTO FOTOGRAFIA - Custom Styles
   ============================================ */

:root {
    --memento-orange: #E66711;
    --memento-orange-text: #D4783E;
    --memento-orange-hover: #C2530A;
    --memento-orange-light: #F08030;
    --memento-dark: #121212;
    --memento-dark-2: #1C1C1C;
    --memento-dark-3: #1C1C1C;
    --memento-gray: #2D2D2D;
    --memento-text: #A0A0A0;
    --memento-white: #FFFFFF;
    --memento-accent: #E66711;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--memento-dark);
    color: var(--memento-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.navbar-brand {
    font-family: 'Satisfy', cursive;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0;
    display: flex;
    align-items: center;
}

.memento-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.memento-logo-svg {
    height: 48px;
    width: auto;
}

.footer-logo .memento-logo-svg {
    height: 48px;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .memento-logo-svg {
        height: 62px;
    }
}

.brand-memento {
    color: var(--memento-white);
}

.brand-foto {
    color: var(--memento-orange-text);
    font-weight: 300;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--memento-orange-text);
}

.nav-link-cta {
    background: var(--memento-orange) !important;
    color: var(--memento-dark) !important;
    border-radius: 2px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
}

.nav-link-cta:hover {
    background: var(--memento-orange-light) !important;
    color: var(--memento-dark) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--memento-dark) 0%, var(--memento-dark-2) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Floating camera icons */
.floating-camera {
    position: absolute;
    color: var(--memento-orange);
    animation: floatCamera 14s infinite ease-in-out alternate;
}

.floating-camera svg {
    width: 100%;
    height: 100%;
}

/* BIG ones */
.cam-1 {
    width: 280px; height: 280px;
    top: -80px; right: -60px;
    opacity: 0.03;
    animation-duration: 22s;
    color: #E66711;
}
.cam-2 {
    width: 220px; height: 220px;
    bottom: -60px; left: -50px;
    opacity: 0.04;
    animation-duration: 18s;
    animation-delay: -3s;
    color: #F08030;
}
.cam-3 {
    width: 250px; height: 250px;
    top: 20%; right: 5%;
    opacity: 0.035;
    animation-duration: 25s;
    animation-delay: -6s;
    color: #E6753A;
}
.cam-4 {
    width: 300px; height: 300px;
    bottom: -80px; left: 30%;
    opacity: 0.025;
    animation-duration: 28s;
    animation-delay: -2s;
    color: #FFB880;
}
.cam-5 {
    width: 180px; height: 180px;
    top: -40px; left: 10%;
    opacity: 0.045;
    animation-duration: 20s;
    animation-delay: -8s;
    color: #E66711;
}

/* MEDIUM */
.cam-6 {
    width: 120px; height: 120px;
    top: 40%; left: -20px;
    opacity: 0.05;
    animation-duration: 15s;
    animation-delay: -4s;
    color: #F08030;
}
.cam-7 {
    width: 100px; height: 100px;
    bottom: 15%; right: -10px;
    opacity: 0.06;
    animation-duration: 12s;
    animation-delay: -1s;
    color: #FF9A55;
}
.cam-8 {
    width: 140px; height: 140px;
    top: 60%; right: 15%;
    opacity: 0.04;
    animation-duration: 17s;
    animation-delay: -9s;
    color: #E6753A;
}
.cam-9 {
    width: 90px; height: 90px;
    top: 5%; left: 35%;
    opacity: 0.05;
    animation-duration: 14s;
    animation-delay: -5s;
    color: #E66711;
}
.cam-10 {
    width: 160px; height: 160px;
    top: 55%; left: 45%;
    opacity: 0.035;
    animation-duration: 19s;
    animation-delay: -11s;
    color: #F08030;
}

/* SMALL */
.cam-11 {
    width: 50px; height: 50px;
    top: 12%; left: 18%;
    opacity: 0.08;
    animation-duration: 10s;
    animation-delay: -2s;
    color: #FFB880;
}
.cam-12 {
    width: 35px; height: 35px;
    bottom: 30%; right: 25%;
    opacity: 0.09;
    animation-duration: 8s;
    animation-delay: -3s;
    color: #FF9A55;
}
.cam-13 {
    width: 60px; height: 60px;
    top: 75%; left: 8%;
    opacity: 0.06;
    animation-duration: 11s;
    animation-delay: -7s;
    color: #E66711;
}
.cam-14 {
    width: 40px; height: 40px;
    top: 25%; right: 35%;
    opacity: 0.07;
    animation-duration: 9s;
    animation-delay: -1s;
    color: #F08030;
}
.cam-15 {
    width: 30px; height: 30px;
    top: 50%; right: 8%;
    opacity: 0.1;
    animation-duration: 7s;
    animation-delay: -4s;
    color: #FF9A55;
}

@keyframes floatCamera {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    16% { transform: translate(180px, -120px) rotate(12deg) scale(1.1); }
    33% { transform: translate(-140px, 80px) rotate(-8deg) scale(0.9); }
    50% { transform: translate(100px, 160px) rotate(5deg) scale(1.05); }
    66% { transform: translate(-200px, -60px) rotate(-15deg) scale(0.95); }
    83% { transform: translate(60px, -180px) rotate(10deg) scale(1.02); }
    100% { transform: translate(-80px, 120px) rotate(-5deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--memento-orange-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--memento-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title .italic {
    font-style: italic;
    color: var(--memento-orange-text);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-cta .btn {
    padding: 0.8rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-memento {
    background: var(--memento-orange);
    border-color: var(--memento-orange);
    color: var(--memento-dark);
}

.btn-primary-memento:hover {
    background: var(--memento-orange-light);
    border-color: var(--memento-orange-light);
    color: var(--memento-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 103, 17, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceDown 2s infinite;
    z-index: 10;
}

.hero-scroll-indicator a {
    color: rgba(255,255,255,0.4);
    font-size: 1.8rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.hero-scroll-indicator a:hover {
    color: var(--memento-orange-text);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.bg-dark-section {
    background: var(--memento-dark-2) !important;
}

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

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--memento-orange-text);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 300;
    color: var(--memento-white);
    margin-bottom: 1rem;
}

.section-title .italic {
    font-style: italic;
    color: var(--memento-orange-text);
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   SERVICES
   ============================================ */
.service-card {
    background: var(--memento-dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--memento-orange), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 103, 17, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 103, 17, 0.08);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--memento-orange-text);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(230, 103, 17, 0.15);
    transform: scale(1.1);
}

.service-card h4 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--memento-white);
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--memento-orange);
    border-color: var(--memento-orange);
    color: var(--memento-dark);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-item-overlay span {
    color: var(--memento-white);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.filosofia-image {
    position: relative;
}

.filosofia-image img {
    width: 100%;
    border-radius: 12px;
}

.filosofia-image-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--memento-orange);
    border-radius: 12px;
    top: 20px;
    left: 20px;
    z-index: -1;
    opacity: 0.3;
}

.filosofia-content {
    padding-left: 2rem;
}

.filosofia-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.filosofia-text strong {
    color: var(--memento-orange-text);
    font-weight: 500;
}

.signature-name {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--memento-white);
    margin-bottom: 0.2rem;
}

.signature-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--memento-dark-3);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    color: var(--memento-orange-text);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   ABOUT
   ============================================ */
.about-item {
    text-align: center;
    padding: 2rem;
}

.about-item i {
    font-size: 2rem;
    color: var(--memento-orange-text);
    margin-bottom: 1rem;
    display: block;
}

.about-item h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--memento-white);
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.about-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--memento-dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-sans);
    font-size: 4rem;
    color: var(--memento-orange-text);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--memento-white);
    margin-bottom: 0.2rem;
}

.testimonial-event {
    font-size: 0.75rem;
    color: var(--memento-orange-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--memento-dark-2) 0%, var(--memento-dark-3) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--memento-orange);
    border-radius: 50%;
    opacity: 0.02;
    top: -250px;
    right: -250px;
}

.cta-title {
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--memento-white);
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-title .italic {
    font-style: italic;
    color: var(--memento-orange-text);
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--memento-dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(230, 103, 17, 0.3);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--memento-orange-text);
    margin-bottom: 1rem;
    display: block;
}

.contact-card h4 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--memento-white);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 0;
}

.contact-card a {
    color: var(--memento-orange-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--memento-orange-light);
}

.contact-form-wrapper {
    background: var(--memento-dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 3rem;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--memento-white);
    padding: 0.9rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form-wrapper .form-control::placeholder {
    color: rgba(255,255,255,0.25);
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    background: rgba(255,255,255,0.05);
    border-color: var(--memento-orange);
    box-shadow: 0 0 0 3px rgba(230, 103, 17, 0.1);
    color: var(--memento-white);
}

.contact-form-wrapper .form-select option {
    background: var(--memento-dark-3);
    color: var(--memento-white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 0 2rem;
    background: var(--memento-dark);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-brand {
    font-family: 'Satisfy', cursive;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.footer-social a {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--memento-orange-text);
}

.footer-divider {
    border-color: rgba(255,255,255,0.05);
    margin: 2rem 0 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--memento-orange);
    color: var(--memento-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--memento-orange-light);
    transform: translateY(-3px);
    color: var(--memento-dark);
}

/* ============================================
   ANIMATIONS (simple data-aos replacement)
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* Offcanvas - estilos mínimos, fondo manejado por variable Bootstrap */
#offcanvasNavbar { --bs-offcanvas-bg: var(--memento-dark, #111); --bs-offcanvas-color: #f8f9fa; z-index: 1055; display: flex; flex-direction: column; }
#offcanvasNavbar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
#offcanvasNavbar .offcanvas-body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
#offcanvasNavbar .nav-link { color: rgba(255,255,255,0.75); }
#offcanvasNavbar .nav-link:hover { color: var(--memento-orange, #E66711); }

/* Fix offcanvas móvil: asegurar visibilidad completa con scroll previo */
body.modal-open { padding-right: 0 !important; }
body.modal-open .navbar { backdrop-filter: none; }

@media (max-width: 991.98px) {
  .navbar > .container {
    flex-wrap: nowrap !important;
  }
  .navbar-brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: 60%;
  }
  .memento-logo-svg {
    /*height: 50px !important;*/
    /*width: auto !important;*/
    /*max-width: 100%;*/
  }
  .navbar > .container > .d-none {
    display: none !important;
    width: 0 !important;
    flex: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar-toggler {
    margin-left: auto !important;
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .navbar > .container >.d-lg-flex {
    margin-left: auto !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .filosofia-content {
        padding-left: 0 !important;
    }
    .filosofia-image-accent {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .hero-cta .me-3 {
        margin-right: 0 !important;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}