/* =============================================
   VARIABLES (ya las tenías, las mantengo)
   ============================================= */
:root {
    --lc-red: #b71c1c;      /* usé el que más aparece en tu código */
    --lc-black: #111111;
    --lc-white: #ffffff;
}

/* =============================================
   BASE
   ============================================= */
body {
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-lc {
    min-height: 90vh;                       /* mejor que height fija */
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
                url('img/hero-fondo.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 120px 15px 60px;               /* espacio para logo + buscador */
}

.hero-top {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3% 5%;
    background-color: rgba(0,0,0,0.15);
}

.logo-hero {
    position: relative;                     /* ya no absolute, flex lo maneja */
    width: 90px;
    height: auto;
    border-radius: 50%;
}

.buscador-hero {
    max-width: 420px;
    width: 100%;
}

.buscador-hero .input-group {
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 2px solid var(--lc-red);
}
.menu-hero .nav-link {
     color: #ffffff;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}

.menu-hero .nav-link:hover,
.menu-hero .nav-link.active {
    color: #ffffff;
}


#input-busqueda {
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    background: transparent;
}

#input-busqueda:focus {
    outline: none;
    box-shadow: none;
}

#buscarPedido {
    background: var(--lc-red);
    border: none;
    padding: 0 28px;
    font-weight: 600;
    color: white;
    transition: background 0.3s ease;
}

#buscarPedido:hover {
    background: #8e0000;
}

/* Hero contenido */
.hero-contenido h1 {
    font-size: clamp(2.5rem, 8vw, 56px);
    margin-bottom: 15px;
}

.hero-contenido p {
    font-size: clamp(1.1rem, 4vw, 22px);
    margin-bottom: 30px;
}

.hero-botones a {
    padding: 14px 28px;
    margin: 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-principal { background: var(--lc-red); color: #fff; }
.btn-secundario { border: 2px solid #fff; color: #fff; }

/* Ocultar "Ver trabajos" en móvil */
@media (max-width: 576px) {
    .btn-principal { display: none; }   /* o usa d-none d-sm-inline-block en HTML */
}

/* =============================================
   RESPONSIVE - Hero (logo + buscador)
   ============================================= */
@media (max-width: 576px) {
    .hero-lc {
        padding-top: 160px !important;  /* espacio suficiente para logo + buscador */
        padding-bottom: 40px;
    }

    .hero-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        top: 10px;
        padding: 0 15px;
    }

    .logo-hero {
        width: 70px;
    }

    .buscador-hero {
        max-width: 100%;
    }
}

/* =============================================
   GALERÍA Y CARDS (corregido para móvil)
   ============================================= */
.seccion-galeria {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.seccion-galeria.visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card img.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;                /* cuadrado – cambia a 4 / 3 si prefieres */
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.card:hover img.card-img-top {
    transform: scale(1.08);
}

.card-body {
    flex: 1;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Mínimo en móvil para que no colapse */
@media (max-width: 576px) {
    .card {
        min-height: 280px;
    }
    .card-img-top {
        min-height: 180px;
    }
}

/* Filtros */
.filtros {
    text-align: center;
    margin: 30px 0;
}

.filtros button {
    padding: 10px 18px;
    margin: 5px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
}

.filtros .activo {
    background: var(--lc-red);
}

/* Ocultamiento */
.oculto { display: none; }

/* Lightbox transiciones */
#lightbox .col {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#lightbox .col.d-none {
    display: none !important;
}

.seccion-invitaciones {
    background: #f9f9f9;
}

.invitaciones-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.invitaciones-carousel::-webkit-scrollbar {
    display: none;
}

.invitacion-item {
    flex: 0 0 auto;
    width: 320px; /* ancho base en móvil */
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

@media (min-width: 576px) {
    .invitacion-item {
        width: 340px;
    }
}

.invitacion-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.invitacion-preview:hover {
    transform: translateY(-10px);
}

.invitacion-preview img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9 / 16; /* formato vertical típico de invitación digital */
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.invitacion-preview:hover .overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
}

.invitacion-info h5 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .invitacion-item {
        width: 85vw;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.activo {
    background: #8e0000;
    color: white;
    border-color: #8e0000;
}
.btn-marca {
    background-color: #1F8E8A;
    border-color: #1F8E8A;
    color: #ffffff;
}

.btn-marca:hover {
    background-color: #176e6b; /* un poco más oscuro */
    border-color: #176e6b;
    color: #ffffff;
}

.btn-marca:focus,
.btn-marca:active {
    background-color: #145c59;
    border-color: #145c59;
    box-shadow: 0 0 0 0.2rem rgba(31, 142, 138, 0.25);
}

/* =============================================
   FOOTER
   ============================================= */
.footer-lc {
    background-color: #111;
    color: #eee;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-contenido {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--lc-red);
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 15px;
    font-size: 13px;
    color: #aaa;
}