﻿/* Evitar scroll horizontal */
.row {
    margin-right: 0;
    margin-left: 0;
    overflow-x: hidden; /* corta el scroll lateral */
}

body {
    overflow-x: hidden;
}

/* Contenedor foto con border radius igual a .rounded de Bootstrap */
.foto-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.375rem; /* igual que .rounded en bootstrap */
}

    .foto-container img {
        width: 100%;
        display: block;
        border-radius: 0.375rem; /* igual que .rounded en bootstrap */
    }

/* Contenedor de los botones (overlay al pie de la foto) */
.foto-buttons {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 5;
}

/* Botones circulares transparentes */
.foto-button {
    width: 36px;
    height: 36px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 5;
}

    /* Hover con color y glow */
    .foto-button.trash:hover {
        background-color: red;
        color: white;
        box-shadow: 0 0 8px red;
    }

    .foto-button.cart:hover {
        background-color: blue;
        color: white;
        box-shadow: 0 0 8px blue;
    }

    /* Foco accesible para botones circulares */
    .foto-button:focus {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
    }

/* Estilos para inputs con sombra y bordes redondeados */
.styled-input {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .styled-input:focus {
        border-color: #0d6efd;
        background-color: #ffffff;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

/* Botón estilizado con sombra y transición */
.stylish-button {
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .stylish-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

/* Modal con scroll solo en el body y altura máxima */
.modal-dialog {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content {
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    padding: 2rem;
}

/* Ajuste de padding para móviles */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }
}

/* Marca de agua sutil y contenida */
.marca-de-agua-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    opacity: 0.05; /* visible y sutil */
    object-fit: contain;
}

/* Para el contenedor de la imagen con marca de agua, asegurar inline-block con max-width */
.position-relative.d-inline-block {
    display: inline-block;
    max-width: 100%;
}
