﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

footer {
    background-color: #222;
    color: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
}

    footer h5 {
        color: #ffffff;
        margin-bottom: 1rem;
    }

    footer a {
        color: #adb5bd;
        text-decoration: none;
    }

        footer a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

    footer .social-icons img {
        filter: invert(1);
        transition: transform 0.2s ease;
    }

        footer .social-icons img:hover {
            transform: scale(1.2);
        }

    footer ul {
        padding-left: 0;
        list-style: none;
    }

#btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    text-align: center;
}

#whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px; /* antes era right: 30px */
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.whatsapp-label {
    font-size: 0.75rem;
    background: #25D366;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#whatsapp-button {
    background-color: #25D366;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

    #whatsapp-button img {
        width: 28px;
        height: 28px;
        filter: invert(1);
    }

    #whatsapp-button:hover {
        transform: scale(1.1);
    }

.img-miniatura.selected {
    border: 3px solid #28a745; /* verde bootstrap */
    opacity: 0.9;
}

/* Chatbot flotante */
.chatbot-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.chatbot-container {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 320px;
    height: 420px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

#chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: left;
    position: relative;
}

#chatbot-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

#chatbot-input {
    display: flex;
    border-top: 1px solid #ccc;
}

    #chatbot-input input {
        flex: 1;
        border: none;
        padding: 10px;
        font-size: 14px;
    }

    #chatbot-input button {
        border: none;
        background-color: #007bff;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
    }

.d-none {
    display: none !important;
}

.categorias-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #f8f9fa; /* un gris clarito */
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* oculta solo el scroll horizontal */
    overflow-y: auto; /* permite scroll vertical */
}


.hero {
    position: relative;
    width: 100vw;
    height: 100vh !important;
    min-height: 90vh;
    /* rompe cualquier padding de contenedor padre */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* A partir de móvil pequeño, reducimos a 85vh */
@media (max-width: 576px) {
    .hero {
        height: 85vh !important;
        min-height: 85vh;
    }
}

    .hero video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* cover garantiza recorte proporcional sin dejar espacios */
        object-fit: cover;
        pointer-events: none;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    border-radius: .5rem;
    background: transparent; /* ya no habrá recuadro negro */
}

/* cambiar color al pasar por encima */
.card-hover:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    transition: all 0.2s ease-in-out;
}

.card-hover {
    transition: all 0.2s ease-in-out;
}

