body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #4B0082;
    color: #fff;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #5A189A, #7B2CBF);
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    font-style: italic;
    color: #ecebe5;
}

.logo-container {
    background: white;
    border-radius: 100%;
    padding: 10px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.logo-container img {
    width: 100px;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.logo-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


nav {
    background-color: #37006b;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 15px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
}

nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: black;
}
.cta-boton {
    display: inline-block;
    background-color: blanchedalmond;
    color: #4B0082;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

main {
    padding: 50px 20px;
    background-color: #f3f0ff;
    color: #333;
    text-align: center;
}

main h2 {
    font-size: 2em;
    color: #4B0082;
    margin-bottom: 20px;
}

main p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
}



footer {
    background-color: #220042;
    color: #fff;
    padding: 30px 20px;
    font-size: 0.95em;
    text-align: center;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}


.productos {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.productos h2 {
    color: #4B0082;
    margin-bottom: 30px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    gap: 32px 28px;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 40px; 
}

.producto-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.producto-card h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.producto-card h4 {
    color: #111;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 10px;
}

.producto-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}
.producto-card label {
    display: block;
    margin-bottom: 5px;
    color: #4B0082;
    font-weight: bold;
}

.producto-card input[type="number"] {
    width: 70px;
    padding: 6px 10px;
    border: 1.5px solid #4B0082;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f3f0ff;
    color: #4B0082;
    box-shadow: 0 1px 4px rgba(75,0,130,0.05);
}

.producto-card input[type="number"]:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 2px #ffcc0033;
}

#comprar-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; 
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background-color 0.3s;
}

#comprar-flotante:hover {
    background-color: #1ebd57;
}


@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .grid-productos {
        grid-template-columns: 1fr;
    }

    .producto-card img {
        height: auto;
    }
}
.encabezado-portada {
    background: linear-gradient(to bottom, #5A189A, #4B0082);
    padding: 0;
    margin: 0;
    color: white;
}

.contenedor-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo-centro {
  width: 160px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid white;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.logo-lado img {
    width: 160px; /* antes 120px */
    margin-top: 20px; /* esto lo baja un poco */
    height: auto;
    border-radius: 50%;
    border: 3px solid white;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.portada-imagen {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.portada-imagen img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.eslogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
}

.eslogan h1 {
    font-size: 2em;
    margin: 0 0 10px;
}

.eslogan p {
    font-size: 1.2em;
    margin: 0;
    font-style: italic;
}

/* Adaptación responsive */
@media screen and (max-width: 768px) {
    .contenedor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-lado {
        margin: 0 0 10px;
    }

    .portada-imagen img {
        max-height: 200px;
    }

    .eslogan h1 {
        font-size: 1.5em;
    }

    .eslogan p {
        font-size: 1em;
    }
}

categorias-productos {
  background-color: #f3f0ff;
  padding: 40px 20px;
  text-align: center;
}

.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.categoria-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.categoria-card:hover {
  transform: translateY(-5px);
}

.categoria-card img {
  width: 90%;
  height: 180px;
  object-fit: cover;
}

.categoria-card h3 {
  margin: 0;
  padding: 15px;
  color: #4B0082;
  font-size: 1.2em;
  font-weight: bold;
}

.boton-volver {
  position: fixed;
  bottom: 10px;
  left: 20px;
  display: inline-block;
  background-color: #FF6F61;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.boton-volver:hover {
  background-color: #5A189A;
  transform: scale(1.05);
}