/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f5ed;
    color: #494949;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

/* Logo */
.logo {
    max-width: 103px;
    max-height: 103px;
    width: auto;
    height: auto;
}

/* Encabezados */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #494949;
}

h2, h3 {
    color: #494949;
    margin: 0;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

/* Imagen del producto 
img.product-image {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
*/


/* Sección de precios 
.pricing {
    background-color: #ecdccf;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}*/


/* Estilo para la sección de precios */
.pricing {
    background-color: #ecdccf;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Espacio entre los precios */
    margin-top: 20px;
    flex-wrap: wrap; /* Esto permitirá que los precios se apilen si no hay suficiente espacio */
}

/* Estilo individual para cada precio */
.price-item {
    text-align: center;
    flex: 1 1 45%; /* Ocupa un 45% del ancho del contenedor en pantallas grandes */
    min-width: 200px; /* Establece un ancho mínimo para las cajas de precios */
    box-sizing: border-box;
}

.price-item h2 {
    font-size: 2rem;
    margin: 5px 0;
}

.price-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Centrar tabla de detalles del producto */
.product-details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

.product-details .label {
    font-weight: bold;
    padding-right: 10px;
}

.product-details .value {
    padding-left: 10px;
}

/* Tabla de detalles del producto */
table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

table caption {
    font-size: 1.5em;
    font-weight: bold;
    background-color: #d6beb2;
    color: #fff;
    padding: 10px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

td.label {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
    color: #494949;
}

td.value {
    text-align: left;
    color: #2c3e50;
}

tr:last-child td {
    border-bottom: none;
}

/* Mensaje de error */
.error {
    color: red;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: center;
}


/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    /* Logo responsivo */
    .logo {
        max-width: 80px;
        max-height: 80px;
    }

    /* Imagen del producto adaptada en pantallas pequeñas */
    img.product-image {
        max-width: 80%;
        height: auto;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    table caption {
        font-size: 1.2em;
    }

    td {
        padding: 10px;
        font-size: 14px;
    }

    /* Si la pantalla es pequeña, los precios se apilan verticalmente */
    .pricing {
        flex-direction: column;
        align-items: center; /* Para centrar los precios cuando se apilen */
    }

    .price-item {
        width: 100%;
        max-width: 300px; /* Limitar el ancho máximo cuando se apilen en móviles */
    }

    .price-item h2 {
        font-size: 1.8rem;
    }

    .price-item h3 {
        font-size: 1.2rem;
    }
}
