#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease;
}

.logo-preloader-img {
    height: 580px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    animation: reboteZoom 1.2s ease-in-out;
}

@keyframes reboteZoom {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}


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

/* Header */
.header-blanco {
    background-color: rgb(255, 255, 255);
    color: #333;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #e0e0e0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-header {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}


.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.navbar a {
    color: #c62828;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #000;
}


html {
    scroll-behavior: smooth;
}


#banner {
    background-image: url("../img/Foto-Local/FotoLocalFrente1.jpeg");
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
    padding: 180px 20px;
    color: white;
    text-align: center;
    position: relative;
    scroll-margin-top: 100px;
}

#banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-texto,
.destacados {
    position: relative;
    z-index: 2;
}

.banner-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #62b444;
}

.banner-texto p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-banner {
    padding: 10px 25px;
    background-color: #62b444;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #4e9436;
}


.beneficios-seccion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.beneficio {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 5px;
    width: 286px;
    text-align: center;
    transition: transform 0.3s ease;
}

.beneficio:hover {
    transform: translateY(-5px);
}

.beneficio img {
    height: 150px;
    margin-bottom: 15px;
}

.beneficio h3 {
    font-size: 1.6rem;
    color: #c62828;
    margin-bottom: 10px;
}

.beneficio p {
    font-size: 1.2rem;
    color: #555;
}


.seccion-nosotros {
    background-color: #f5f5f5;
    padding: 60px 0;
    scroll-margin-top: 10px;
}

.contenedor-nosotros {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    gap: 30px;
    overflow: hidden;
}

.contenedor-nosotros::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 600px;
    height: 600px;
    background-image: url('../img/Logo/Logo-Carman.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.columna-contacto,
.columna-nosotros {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.columna-contacto h2,
.columna-nosotros h2 {
    font-size: 1.8rem;
    color: #1c1c1c;
    margin-bottom: 20px;
    font-weight: bold;
}

.columna-contacto p,
.columna-nosotros p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.columna-nosotros p strong {
    font-weight: bold;
    display: block;
    margin-top: 20px;
    text-transform: uppercase;
    color: #222;
}

.redes-sociales-nosotros {
    margin-top: 30px;
}

.redes-sociales-nosotros p {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    color: #222;
}

.iconos-redes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.iconos-redes i {
    transition: transform 0.3s ease;
}

.iconos-redes i:hover {
    transform: scale(1.2);
}


.galeria-local {
    text-align: center;
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.galeria-local h2 {
    font-size: 2rem;
    color: #4caf50;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.galeria-local .subinfo {
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-galeria img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.grid-galeria img:hover {
    transform: scale(1.03);
}


.seccion-productos {
    background-color: #f9f9f9;
    padding: 60px 20px;
    scroll-margin-top: 16px
}

.seccion-productos h2 {
    font-size: 2rem;
    color: #c62828;
    margin-bottom: 40px;
    text-align: center;
}

.contenedor-productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.producto {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 5px;
    width: 286px;
    text-align: center;
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: translateY(-5px);
}

.producto img {
    height: 150px;
    margin-bottom: 15px;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.producto h3 {
    font-size: 1.6rem;
    color: #c62828;
    margin-bottom: 10px;
}

.producto p {
    font-size: 1.2rem;
    color: #555;
}

.tarjeta-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.tarjeta-link .producto:hover {
    cursor: pointer;
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}


.seccion-contacto {
    background-color: #ffffff;
    padding: 30px 20px;
    scroll-margin-top: 1px;
}

.contenedor-contacto {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contenedor-contacto h2 {
    text-align: center;
    color: #c62828;
    margin-bottom: 30px;
    font-size: 2rem;
}

.campo-formulario {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.campo-formulario label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.campo-formulario input,
.campo-formulario textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-enviar {
    width: 100%;
    padding: 12px;
    background-color: #0d47a1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #09306f;
}


.mensaje-resultado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mensaje-resultado.ok {
    background-color: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    opacity: 1;
}

.mensaje-resultado.error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

.mensaje-resultado .icono {
    font-size: 1.5rem;
}


footer {
    background-color: #0d47a1;
    color: white;
    font-size: 0.9rem;
    padding: 15px 20px;
}

.contenedor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.iconos-redes-footer {
    display: flex;
    gap: 15px;
}

.iconos-redes-footer i {
    background-color: #e1306c;
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.iconos-redes-footer i.fa-facebook-f {
    background-color: #3b5998;
}

.iconos-redes-footer i:hover {
    transform: scale(1.1);
}

.texto-footer {
    text-align: center;
    flex-grow: 1;
}


.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 999;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


#btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#btn-top:hover {
    background-color: #a41e1e;
}


/* Producto Pagina*/

.buscador-seccion {
    background-color: #f3f3f3;
    padding: 30px 20px;
    text-align: center;
}

.contenedor-buscador {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    width: 100%;
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contenedor-buscador input {
    flex: 1;
    border: none;
    font-size: 1rem;
    outline: none;
}

.contenedor-buscador button {
    background-color: #c62828;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-consultar {
    padding: 12px 24px;
    background-color: #0d47a1;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-bottom: 40px;
}

.btn-consultar:hover {
    background-color: #09306f;
}

.info-resultados {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin: 0 30px 20px;
    text-align: center;
}

.sin-resultados {
    text-align: center;
    color: #444;
    padding: 60px 20px;
    font-size: 1.2rem;
}

.sin-resultados p {
    margin-bottom: 15px;
}

.sin-resultados .btn-volver-todo {
    display: inline-block;
    padding: 12px 20px;
    background-color: #c62828;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.sin-resultados .btn-volver-todo:hover {
    background-color: #a32020;
}

.btn-volver-todo {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0d47a1;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-volver-todo:hover {
    background-color: #09306f;
}

#pantalla-carga {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999;
    flex-direction: column;
    padding: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paginacion-ml {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.paginacion-ml a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #e0e0e0;
    color: #0d47a1;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.paginacion-ml a:hover {
    background-color: #b0bec5;
}

.paginacion-ml .pagina-activa {
    background-color: #0d47a1;
    color: white;
    pointer-events: none;
}

#pantalla-carga {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

#pantalla-carga.mostrar {
    visibility: visible;
    opacity: 1;
}

#pantalla-carga .mensaje {
    font-size: 1.5rem;
    color: #c62828;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#pantalla-carga .mensaje i {
    font-size: 2rem;
    animation: girar 1s linear infinite;
    color: #0d47a1;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* View-Producto Página */

.contenido-principal {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.contenido-principal section {
    flex: 1;
}

.btn-volver {
    display: inline-block;
    margin-bottom: 20px;
    color: #0d47a1;
    text-decoration: none;
    font-weight: bold;
    background-color: #e3f2fd;
    padding: 8px 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-volver:hover {
    background-color: #bbdefb;
    color: #09306f;
}

.detalle-producto {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contenedor-detalle {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

.galeria-detalle {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.miniaturas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.miniaturas img {
    width: 70px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.miniaturas img:hover {
    transform: scale(1.05);
    border-color: #0d47a1;
}


.imagen-grande {
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen-grande img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}


.info-detalle {
    flex: 1;
    min-width: 300px;
}

.info-detalle h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #cc0000;
}

.info-detalle .precio {
    font-size: 1.5rem;
    color: #0d47a1;
    margin-bottom: 15px;
    font-weight: bold;
}

.info-detalle .descripcion {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.botones-detalle a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-wpp {
    background-color: #25D366;
}

.btn-wpp:hover {
    background-color: #1DA851;
}

.btn-email {
    background-color: #0d47a1;
}

.btn-email:hover {
    background-color: #09306f;
}


.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.flecha {
    color: white;
    font-size: 50px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.flecha:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#prev {
    left: 40px;
}

#next {
    right: 40px;
}

.overlay-contacto {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.overlay-contacto.mostrar {
    display: flex;
}

.contenido-form {
    background: #fff;
    width: min(520px, 94vw);
    max-height: 92vh;
    overflow: auto;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.cerrar-form {
    position: sticky;
    top: 0;
    display: inline-block;
    margin-left: auto;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #c62828;
    background: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    z-index: 1;
}

@media (max-height: 820px) {
    .contenido-form {
        max-height: 88vh;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contenido-form {
        padding: 16px;
    }

    .campo-formulario input,
    .campo-formulario textarea {
        font-size: .95rem;
    }

    .btn-enviar {
        font-size: 1rem;
    }
}


.mensaje-resultado {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.mensaje-resultado.ok {
    color: green;
}

.mensaje-resultado.error {
    color: red;
}


/* ============================ */
/* Ajustes para pantallas chicas (Responsive) */

@media (max-width: 600px) {
    .logo-preloader-img {
        height: 220px;
    }

    .logo-header {
        height: 30px;
    }

    body {
        overflow-x: hidden;
    }

    .header-blanco {
        padding: 8px 15px;
    }

    .navbar a {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        position: fixed;
        bottom: 75px;
        right: 10px;
        z-index: 1001;
        background-color: #25D366;
        padding: 12px;
        border-radius: 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .whatsapp-float img {
        width: 35px;
        height: 35px;
    }

    #btn-top {
        position: fixed;
        bottom: 30px;
        right: 20px;
        z-index: 1000;
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        padding: 12px 14px;
        font-size: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }
}