:root {
    --primary: #000000;
    --primary-light: #333333;
    --primary-dark: #1a1a1a;
    --navy: #e8e8e8;
    --navy-light: #f0f0f0;
    --navy-dark: #d0d0d0;
    --white: #ffffff;
    --cream: #1a1a1a;
    --gray: #666666;
    --announcement-height: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #e8e8e8;
    color: var(--cream);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ===========================
   ANNOUNCEMENT BAR
   =========================== */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--announcement-height);
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    z-index: 1100;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.announcement-bar::before,
.announcement-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.announcement-bar::before {
    left: 0;
    background: linear-gradient(90deg, #1a1a1a, transparent);
}

.announcement-bar::after {
    right: 0;
    background: linear-gradient(-90deg, #1a1a1a, transparent);
}

.announcement-track {
    display: flex;
    gap: 0;
    animation: marquee 28s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.announcement-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
}

.announcement-item .fire {
    font-size: 1rem;
    animation: flicker 1.6s ease-in-out infinite alternate;
}

@keyframes flicker {
    0%   { opacity: 1;   transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.1) rotate(5deg); }
}

.announcement-item .sep {
    color: rgba(255,255,255,0.25);
    font-weight: 300;
    font-size: 1rem;
    padding: 0 6px;
}

.announcement-item strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
}

.announcement-item .price-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 2px 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-left: 4px;
}

.announcement-item a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Pulse dot */
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #e8c97a;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,201,122,0.6); opacity: 1; }
    50%       { box-shadow: 0 0 0 5px rgba(232,201,122,0); opacity: 0.8; }
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 12px 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.navbar .logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.navbar .logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: calc(var(--announcement-height));
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 232, 232, 0.95) 0%, rgba(240, 240, 240, 0.92) 100%),
                url('images/Pulseras-3__1_.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero h1 {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { text-shadow: 3px 3px 6px rgba(0,0,0,0.4), 0 0 10px rgba(255,255,255,0.3); }
    50%       { text-shadow: 3px 3px 6px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.6); }
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 15px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 45px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before { left: 0; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-10px); }
    60%  { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary);
}

/* ===========================
   SECTIONS
   =========================== */
section {
    padding: 120px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-title {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-description {
    max-width: 700px;
    margin: 30px auto 0;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #f8f8f8 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before { left: 100%; }

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.service-card:hover .service-icon i { color: #ffffff; }

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card p { color: var(--gray); line-height: 1.9; }

/* ===========================
   CATALOG SECTION
   =========================== */
.catalog-section { background: #ffffff; }

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 14px 35px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===========================
   CATALOG GALLERY - RESPONSIVE GRID
   =========================== */
.catalog-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-item-photo {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    width: 100%;
    min-width: 0;
}

.catalog-item-photo.hidden { display: none; }

.catalog-item-photo:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

.catalog-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.catalog-item-photo:hover img { transform: scale(1.1); }

.catalog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.catalog-item-photo:hover .catalog-overlay {
    transform: translateY(0);
    opacity: 1;
}

.catalog-overlay h4 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.catalog-overlay p { color: rgba(255,255,255,0.9); font-size: 0.9rem; }

.item-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    font-weight: 500;
    z-index: 3;
}

/* ===========================
   ABOUT / TEAM SECTION
   =========================== */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

.maestro-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

.maestro-item:last-child { margin-bottom: 0; }

.maestro-item:nth-child(even) {
    grid-template-columns: 1fr 350px;
}

.maestro-item:nth-child(even) .maestro-image { order: 2; }
.maestro-item:nth-child(even) .maestro-text  { order: 1; }

.maestro-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.maestro-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--primary);
    border-radius: 15px;
    z-index: -1;
}

.maestro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.maestro-image:hover img { transform: scale(1.08); }

.maestro-text h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 30px; }
.maestro-text h4 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }

.maestro-text p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.feature-item i  { color: var(--primary); font-size: 1.5rem; }
.feature-item span { color: #1a1a1a; font-weight: 500; }

/* ===========================
   GALLERY SECTION - RESPONSIVE GRID
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    width: 100%;
    min-width: 0;
}

.gallery-item:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }

.gallery-overlay h4 { font-size: 1.6rem; color: #ffffff; margin-bottom: 10px; }
.gallery-overlay p  { color: #ffffff; font-size: 0.95rem; }

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section { background: #f8f8f8; }

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 30px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 15px; }

.author-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info h4 { color: #1a1a1a; font-size: 1.1rem; margin-bottom: 5px; }
.author-info p  { color: var(--primary); font-size: 0.9rem; }

.stars { color: var(--primary); margin-top: 20px; font-size: 1.1rem; }

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contact-info h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 30px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.contact-item:hover { background: rgba(255,255,255,0.9); transform: translateX(10px); }

.contact-item i { color: var(--primary); font-size: 1.6rem; min-width: 30px; }

.contact-details h4 { color: #1a1a1a; font-size: 1.2rem; margin-bottom: 10px; }
.contact-details p  { color: var(--gray); }

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover { color: var(--primary-light); }

.social-links { display: flex; gap: 15px; margin-top: 30px; }

.social-links a {
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-5px);
}

/* ===========================
   WHATSAPP BUTTON
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background: #f0f0f0;
    padding: 60px 5% 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 { color: var(--primary); font-size: 1.3rem; margin-bottom: 20px; }

.footer-section p,
.footer-section a {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.9;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img { width: 100%; height: 100%; object-fit: contain; }

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 4rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover { transform: rotate(90deg); background: var(--primary); }

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   RESPONSIVE - TABLET GRANDE
   =========================== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .catalog-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */
@media (max-width: 1024px) {
    .gallery-grid,
    .catalog-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item,
    .catalog-item-photo {
        height: 280px;
    }

    .maestro-item,
    .maestro-item:nth-child(even) { grid-template-columns: 1fr; }

    .maestro-item:nth-child(even) .maestro-image { order: 1; }
    .maestro-item:nth-child(even) .maestro-text  { order: 2; }

    .maestro-image { height: 400px; }
    .features-list { grid-template-columns: 1fr; }
}

/* ===========================
   RESPONSIVE - MÓVIL
   =========================== */
@media (max-width: 768px) {
    :root { --announcement-height: 38px; }

    /* ---- GRIDS ---- */
    .gallery-grid,
    .catalog-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-item,
    .catalog-item-photo {
        height: 200px !important;
        border-radius: 8px;
    }

    /* Overlays siempre visibles en móvil (no hover táctil) */
    .gallery-overlay,
    .catalog-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 10px 12px;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    }

    .gallery-overlay h4,
    .catalog-overlay h4 {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .gallery-overlay p,
    .catalog-overlay p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    /* ---- NAV ---- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    /* ---- TIPOGRAFÍA ---- */
    .hero h1       { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-logo     { width: 180px; height: 180px; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 40px; }

    /* ---- BOTONES ---- */
    .cta-buttons   { flex-direction: column; }
    .btn           { width: 100%; }

    /* ---- ESPACIADO ---- */
    section { padding: 60px 4%; }

    /* ---- OTROS GRIDS ---- */
    .services-grid,
    .testimonials-container { grid-template-columns: 1fr; }

    /* ---- FILTROS ---- */
    .catalog-filters { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .filter-btn { padding: 10px 18px; font-size: 0.78rem; letter-spacing: 1px; }

    /* ---- ELEMENTOS ---- */
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.7rem; bottom: 20px; right: 20px; }
    .announcement-item { font-size: 0.72rem; letter-spacing: 1.2px; padding: 0 24px; }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 3rem;
        width: 50px;
        height: 50px;
    }
}

/* ===========================
   RESPONSIVE - MÓVIL PEQUEÑO
   =========================== */
@media (max-width: 480px) {
    .gallery-grid,
    .catalog-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0;
    }

    .gallery-item,
    .catalog-item-photo {
        height: 160px !important;
        border-radius: 6px;
    }

    .gallery-overlay p,
    .catalog-overlay p { display: none; }

    .gallery-overlay h4,
    .catalog-overlay h4 { font-size: 0.75rem; }

    .navbar .logo-img          { height: 45px; }
    .navbar.scrolled .logo-img { height: 40px; }

    .hero h1   { font-size: 2.2rem; letter-spacing: 3px; }
    .hero-logo { width: 140px; height: 140px; margin-bottom: 20px; }

    section { padding: 50px 3%; }

    .section-title   { font-size: 1.8rem; }
    .maestro-text h3 { font-size: 2rem; }
    .maestro-text h4 { font-size: 1.4rem; }

    .filter-btn { padding: 8px 14px; font-size: 0.7rem; }
}