body {
    font-family: Arial, sans-serif;
}

.producto-container {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}

.producto-imagen {
    width: 400px; /* o el tamaño que desees ancho */
    height: 700px; /* altura fija */
    margin-right: 20px;
    overflow: hidden; /* para ocultar el desbordamiento si la imagen es más grande */
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* hace que la imagen cubra el área sin deformarse */
}

.producto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-left: 100px;
}

/* Estilo actualizado para el título principal (h5) */
.producto-info h5 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;       /* Tamaño grande y legible */
    font-weight: 700;      /* Negrita */
    color: #000000;        /* Verde oscuro suave */
    margin-bottom: 20px;   /* Espacio debajo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: capitalize; /* Capitaliza cada palabra */
}

.producto-info .precio {
    color: #ff3232; /* Color rojo para el precio */
    font-weight: bold;
    display: block; /* Asegura que se comporte como un bloque separado */
    margin-bottom: 25px; /* Agrega espacio debajo del precio */
}

.producto-info .descripcion {
    margin-bottom: 25px; /* Agrega margen inferior para separar del siguiente elemento */
}

.producto-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

a {
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-whatsapp2 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.btn-whatsapp2 img {
    display: block;
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.btn-whatsapp2 img:hover {
    transform: scale(1.1);
}

/* Estilo para el botón "Agregar al carrito" */
.btn-agregar-carrito {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e14141 !important; /* Rojo */
    color: white !important;
    font-size: 16px !important;
    text-decoration: none;
    text-align: center;

    border-radius: 8px !important;
    border: 2px solid #e14141 !important;
    transition: background-color 0.3s, transform 0.2s !important;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3) !important;
    width: 100% !important; /* Ocupa todo el ancho disponible */
    max-width: 220px !important; /* Máximo ancho */
    margin-bottom: 20px !important; /* Espacio debajo */
    cursor: pointer;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* Efecto hover */
.btn-agregar-carrito:hover {
    background-color: #e14141 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 10px rgba(0, 123, 255, 0.4) !important;
}

/* Efecto activo (cuando se presiona el botón) */
.btn-agregar-carrito:active {
    background-color: #004085 !important;
    transform: translateY(1px) !important;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3) !important;
}

/* Efecto de enfoque (cuando el botón es seleccionado) */
.btn-agregar-carrito:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5) !important;
}

.form-carrito {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-carrito .btn-agregar-carrito {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

.form-carrito input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    transform: translateY(-8px); /* Sube ligeramente el sumador */
    -moz-appearance: textfield; /* Firefox */
    appearance: auto;
}

.descripcion-box {
    background-color: #f9f9f9;
    border-left: 6px solid #e14141;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo actualizado para el subtítulo (h6) */
.descripcion-box h6 {
    font-size: 1.2rem;     /* Tamaño mediano */
    font-weight: 600;      /* Semi-negrita */
    color: #e14141;        /* Rojo vivo, para destacar */
    margin-bottom: 12px;   /* Espacio debajo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase; /* Todo en mayúsculas */
    letter-spacing: 1.5px; /* Espacio entre letras */
    margin-top: 0;
}

.descripcion-box p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #444;
}

.precio-box {
    background-color: #e9f7ef;
    border: 1px solid #b7e0c5;
    border-radius: 10px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: fit-content;  /* que ajuste al contenido */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px; /* <-- espacio debajo del precio */
}

.precio-label {
    color: #2d6a4f;
}

.precio-valor {
    color: #1b4332;
    font-size: 18px;
}

@media (max-width: 768px) {
    .producto-container {
        flex-direction: column;
        align-items: center;
        margin: 10px;
    }

    .producto-imagen {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .producto-imagen img {
        height: auto;
    }

    .producto-info {
        margin: 20px 0 0 0;
        text-align: center;
        padding: 0 10px;
    }

    .producto-info h5 {
        font-size: 1.3em;
    }

    .producto-info p {
        font-size: 1em;
    }

    .btn-agregar-carrito {
        width: 70% !important;
        max-width: none !important;
    }

    .btn-whatsapp2 img {
        width: 60px;
        height: 60px;
    }
}
