/* --- VARIABLES --- */
:root {
    --primary-purple: #5D3A75;
    --accent-gold: #C5A059;
    --text-dark: #2c2c2c;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
}

/* --- RESETEO BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-purple);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Para que los anclajes no queden ocultos bajo el header fijo */
section[id] {
    scroll-margin-top: 90px;
}

/* --- LAYOUT GENERAL --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-alt-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.line-separator {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0 auto 30px auto;
}

.section-intro {
    text-align: center;
    margin: 0 auto 30px auto;
    max-width: 850px;
    color: var(--text-light);
    font-size: 1.02rem;
}

/* --- HEADER --- */
.main-header {
    background: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* LOGO */
.logo-nsc-mini {
    font-family: 'Playfair Display', serif;
    color: var(--primary-purple);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #333;
    display: block;
    letter-spacing: 1px;
}

/* NAV */
.nav-menu ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

/* Botón contacto en el menú */
.btn-contact-menu {
    border: 2px solid var(--primary-purple);
    padding: 6px 20px;
    border-radius: 50px;
    color: var(--primary-purple) !important;
}

.btn-contact-menu:hover {
    background: var(--primary-purple);
    color: white !important;
}

/* Botón menú móvil (hamburguesa) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-purple);
    cursor: pointer;
}

/* --- HERO BLANCO + MORADO --- */
.hero-rgr-style {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(
                    135deg,
                    #f7f3ff 0%,
                    #ffffff 45%,
                    #ffffff 100%
                );
    display: flex;
    align-items: center;
    padding: 70px 0;
    border-bottom: 1px solid #e5e5e5;
}

.hero-inner {
    display: grid;
    /* MAGIA AQUÍ: Repartimos mejor el espacio. La derecha ahora es más grande */
    grid-template-columns: 1.2fr 1.1fr; 
    gap: 40px;
    align-items: center;
}

/* Columna de texto */
.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.12);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--primary-purple);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 22px;
}

.hero-phones i {
    margin-right: 4px;
}

.hero-separator {
    font-size: 1.4rem;
    font-weight: 300;
    color: #bbb;
}

/* Botones */
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--primary-purple);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: #ffffff;
}

/* Columna visual de la portada */
.hero-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 35px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid #ece5fa;
    width: 100%;
}

.hero-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-purple);
    margin-bottom: 18px;
}

.hero-single-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.hero-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-panel-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-top: 18px;
    margin-bottom: 0;
}

/* --- BARRA INFO --- */
.info-bar {
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
}

.info-col h2.info-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-col p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-col i {
    color: var(--primary-purple);
}

/* Logo dentro de la barra de información */
.info-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-purple);
}

.info-logo-sub {
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

/* --- QUIÉNES SOMOS --- */
.about-section-bg {
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    padding-right: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.about-subtitle {
    margin-bottom: 25px;
    color: var(--primary-purple);
}

.about-logo-integration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 30px;
}

.about-logo-integration img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* --- NUESTRO EQUIPO --- */
.team-container {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.team-text p {
    margin-bottom: 15px;
    font-size: 1.02rem;
    text-align: justify;
    color: var(--text-dark);
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.team-photo {
    border: 4px solid var(--primary-purple);
    border-radius: 6px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NUEVO CATÁLOGO ESTILO REFERENCIA (DIAGONAL) ===== */
.new-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.new-cat-card {
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
}

.new-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 10px;
}

.new-cat-img {
    width: 100%;
    height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
    margin-bottom: 20px;
}

.new-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-cat-card:hover .new-cat-img img {
    transform: scale(1.05);
}

.new-cat-body {
    padding: 0 15px 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.new-cat-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.ver-trabajos-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 5px;
}

.ver-trabajos-btn:hover {
    color: var(--accent-gold);
}


/* --- CEMENTERIOS --- */
.cemetery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.cem-card {
    position: relative;
    height: 230px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cem-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.cem-card:hover img {
    transform: scale(1.08);
}

.cem-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(93, 58, 117, 0.9));
    color: white;
}

.cem-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

/* --- CONTACTO / MAPAS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-purple);
    display: flex;
    flex-direction: column;
}

.location-box-gold {
    border-top-color: var(--accent-gold);
}

.location-content {
    padding: 30px;
}

.location-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.location-icon {
    font-size: 1.3rem;
}

.office-icon {
    color: var(--primary-purple);
}

.factory-icon {
    color: var(--accent-gold);
}

.location-text {
    margin-top: 10px;
    font-size: 0.98rem;
    color: var(--text-dark);
}

.location-phone {
    margin-top: 15px;
    color: var(--primary-purple);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container {
    width: 100%;
    height: 300px;
    background: #eee;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.other-phones {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

/* --- FOOTER --- */
/* --- FOOTER PROFESIONAL --- */
.main-footer {
    background: #2f2f2f;
    color: #ffffff;
    padding: 50px 8% 22px;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 35px;
}

.footer-column h3,
.footer-column h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-column h3 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-column h4 {
    font-size: 0.95rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-column p {
    color: #dddddd;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 13px;
}

.footer-column strong {
    color: #ffffff;
}

.footer-column a {
    display: block;
    color: #dddddd;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-decoration: none;
}

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

.footer-legal {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #555555;
}

.footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid #555555;
    text-align: center;
}

.footer-bottom p {
    color: #dddddd;
    font-size: 0.82rem;
    margin: 0;
}

/* Responsive footer */
@media (max-width: 1000px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-footer {
        text-align: center;
        padding: 45px 25px 90px;
    }

    .footer-legal {
        border-top: 1px solid #555555;
    }
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    font-size: 0.95rem;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-col-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {

    .header-container {
        padding: 0 15px;
    }

    /* Mostrar botón hamburguesa y ocultar menú al inicio */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        background: white;
        border-top: 1px solid #eee;
        display: none;
        padding: 12px 0 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-menu--open {
        display: block;
    }

    .hero-rgr-style {
        padding: 50px 0 40px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px; /* Más espacio en móvil */
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-panel {
        max-width: 500px; /* Le dejamos crecer más en tablet/móvil grande */
        margin: 0 auto;
    }

    .info-grid,
    .contact-grid,
    .team-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Adaptación Quiénes Somos para móvil */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-text p {
        text-align: center;
    }

    .about-logo-integration {
        padding-left: 0;
        margin-top: 20px;
    }

    .whatsapp-btn {
        right: 15px;
        bottom: 15px;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-panel {
        padding: 24px;
    }

    .hero-single-image {
        height: 220px;
    }
/* MAGIA AQUÍ: Las fotos del catálogo en móvil recuperan su altura original */
    .new-cat-img {
        height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); 
    }
}

/* ========================================================= */
/* --- ESTILOS DEL NUEVO FORMULARIO DE CONTACTO --- */
/* ========================================================= */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #ffffff;
    margin-top: 40px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 30px;
}

/* Estilos de los campos del formulario */
.nsc-form .form-group {
    margin-bottom: 20px;
}

.nsc-form input,
.nsc-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    background-color: #fdfdfd;
    transition: all 0.3s ease;
}

.nsc-form input:focus,
.nsc-form textarea:focus {
    border-color: var(--primary-purple);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(93, 58, 117, 0.2);
}

.btn-submit {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--accent-gold);
}

/* Estilos de la lista de información lateral */
.info-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.info-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--primary-purple);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-list span {
    line-height: 1.6;
}

/* Responsive para que en móviles el formulario caiga debajo */
@media (max-width: 900px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 20px;
    }
}

/* ========================================================= */
/* --- GALERÍA DE ORNAMENTOS (ACCESORIOS) --- */
/* ========================================================= */

.ornament-category {
    margin-top: 50px;
    margin-bottom: 60px;
}

.subcategory-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ornaments-grid {
    display: grid;
    /* Esto crea las 3 columnas iguales */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ornament-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 3px solid #f9f9f9;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: white;
}

/* Efecto bonito al pasar el ratón */
.ornament-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.ornament-card img {
    width: 100%;
    height: 300px; 
    object-fit: contain; /* MAGIA: Ahora encaja la foto entera sin recortar nada */
    display: block;
    padding: 15px; /* Le da un poquito de margen blanco alrededor para que respire */
    background-color: #ffffff; /* Fondo blanco por si la foto tiene otro tamaño */
}

/* Responsive: Para que en móviles se vea una debajo de otra */
@media (max-width: 800px) {
    .ornaments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ornament-card img {
        height: auto; /* En móvil dejamos que la foto coja su altura natural */
        max-height: 400px;
    }
}

/* --- PÁGINAS LEGALES --- */
.legal-page {
    min-height: 100vh;
    background: #f7f7f7;
    padding: 80px 20px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.legal-container h1 {
    font-size: 2.2rem;
    color: var(--primary-purple);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.legal-container h2 {
    font-size: 1.2rem;
    color: var(--primary-purple);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-container p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-back {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-purple);
    font-weight: 700;
}

.legal-back:hover {
    color: var(--accent-gold);
}

@media (max-width: 600px) {
    .legal-container {
        padding: 30px 22px;
    }

    .legal-container h1 {
        font-size: 1.7rem;
    }
}
/* ===== IMÁGENES AMPLIABLES ===== */

.clickable-image {
    cursor: zoom-in;
}

/* Fondo del visor */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(15, 15, 18, 0.92);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Cuando se abre */
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Imagen grande */
.lightbox img {
    max-width: 90vw;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 20px 70px rgba(0,0,0,0.45);

    cursor: default;
}

/* Texto inferior */
.lightbox-caption {
    color: #ffffff;
    font-size: 0.95rem;
    margin-top: 15px;
    text-align: center;
}

/* Botón X */
.lightbox-close {
    position: absolute;

    top: 22px;
    right: 30px;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.12);
    color: #ffffff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.22);
}


/* Móvil */
@media (max-width: 600px) {

    .lightbox {
        padding: 20px;
    }

    .lightbox img {
        max-width: 95vw;
        max-height: 78vh;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}
/* ===== VOLVER AL CATÁLOGO ===== */

.back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #5D3A75;
    text-decoration: none;

    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 22px;

    transition: all 0.2s ease;
}

.back-catalog:hover {
    transform: translateX(-3px);
    color: #45285a;
}

.back-catalog i {
    font-size: 0.85rem;
}


/* MÓVIL */
@media (max-width: 600px) {

    .back-catalog {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

}