/* General Reset */
*{ 
  margin:0;
  padding: 0%;
  box-sizing: border-box;
}
body {
     font-family: Arial, sans-serif;
     line-height: 1.6;
     color: #000000;
     background: white;
}
/*navbar*/
.navbar {
   display :flex;
   justify-content: space-between;
   align-items: center;
   padding: 1rem 2rem;
   background: #307ec7;
   color: white;
   position: sticky;
   top: 0;
   z-index:1000;
}
.navbar .logo {
     font-size: 1.5rem;
     font-weight: bold;
     color: white;
}
.nav-links {
   list-style:none;
   display:flex;
   gap: 1rem;

}
.nav-links a {
 text-decoration: none;
 color: white;
 transition: color 0.3s;
}
.nav-links a:hover {
 color: #ffd700;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}
.burger span {
    width: 25px;
    height:3px;
    background: white;
}
/*pagina principal-Hero section*/
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    background: lightgray no-repeat center/cover;
    color: rgb(57, 131, 192);
    text-align: center;
    padding: 2rem;
}
.hero-section h1 {
    font-size : 3.5rem;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.btn-primary {
    background: rgb(37, 101, 197);
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius:50px;
    transition: background 0.3s ,transform 0.3s;
    box-shadow: 0 4px 6px rgba(41, 127, 197, 0.2);
}
.btn-primary:hover {
    background: #333;
    transform: translateY(-3px);
}
/*Seccions de tarjetas*/
.cards-container {
    padding: 3rem;
    background: #f9f9f9;
}
.cards-container h2 {
    text-align: center;
    margin-bottom:2rem;
    font-size: 2.5rem;
    color: rgb(49, 119, 211)
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.card {
    background:#fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgb(0,0,0, 0.1);
    overflow :hidden ;
    text-align :center ;
    transition: transform 0.3s;
    color: rgb(28, 84, 147);
}
.card img {
    width: 100%;
    height: auto;
}
.card h3 {
    margin: 0 1rem 0;
    font-size: 1.5rem;
}
.card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}
/* Hover efecto para todas las tarjetas */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

/*Seccion de contactos*/
.contact-section {
    padding: 3rem;
    background: #3e73ce;
    color: white;
    text-align: center;
}
.contact-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: none;
}
#contact-form input, #contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}
#contact-form button {
    background: black;
    border:none;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor:pointer;
    border-radius: 50px;
    transition: background 0.3s;
}
#contact-form button:hover {
    background: #333;
}
/*Animacion de carga*/
#contact-form button.loading::after{ 
    background-color: #ccc;
    cursor: not-allowed;
    position:relative;
}
#contact-form button.loading::after {
    content:'';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius : 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin{
    0%{
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100%{
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
/*Seccion acerca de nosotros*/
.about-section{
    padding: 3rem;
    text-align: center;
    background: white;
    color: black;
}
.about-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
.about-section p {
    font-size: 1.3rem;
}
/* pie de pagina */
footer {
    padding: 1.5rem;
    background: #3a83d6;
    color: white;
    text-align: center;
    font-size: 1rem;
}
.flash-messages {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: auto;
}
.alert { 
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    animation: fade-in-out 5s forwards;
}
.alert.sucess {
    background-color: #4caf50;
}
.alert.danger {
    background-color: #f44336;
}
/* Animacion para desaparecer el mensaje*/
@keyframes fade-in--out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
/*Diseño responsivo*/
@media(max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

.nav-links.active {
    display: flex;
    background: #000;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem;
} 
    .burger { 
  display:flex;
    }
}


/* =============== DISEÑO ESPECÍFICO PARA PRODUCTOS (vinos, fiambres, panificacion) ================= */

/* Contenedor general para páginas de productos */
.product-container {
  padding: 3rem 2rem;
  background: #f9f9f9;
  min-height: 80vh;
  color: #000000;
  text-align: center;
}

/* Título principal en cada página producto */
.product-container h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #307ec7;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Contenedor de tarjetas dentro de las páginas producto */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjetas producto (vinos, fiambres, panificación) */
.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  color: #000000;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.product-card h3 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

.product-card p {
  padding: 0 1rem 1rem 1rem;
  font-size: 1rem;
  color: #1d2be2;
  font-weight: 400;
}

/* Diferentes fondos sutiles para cada página para dar identidad */
.vinos-page .product-container {
  background: #e8f0fb;
}

.fiambres-page .product-container {
  background: #fef7e7;
}

.panificacion-page .product-container {
  background: #f7f3f3;
}

/* Footer específico para páginas producto si querés cambiar algo */
footer.product-footer {
  background: #307ec7;
  color: white;
  padding: 1rem 0;
  font-weight: 600;
}

/* Responsive para tarjetas producto */
@media(max-width: 768px){
  .product-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.card {
  max-width: fit-content;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  backdrop-filter: blur(15px);
  box-shadow: inset 0 0 20px rgba(15, 223, 216, 0.192),
    inset 0 0 5px rgba(21, 224, 197, 0.274), 0 5px 5px rgba(0, 0, 0, 0.164);
  transition: 0.5s;
}

.card:hover {
  animation: ease-out 5s;
  background: rgba(173, 173, 173, 0.05);
}

.card ul {
  padding: 1rem;
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

.card ul li {
  cursor: pointer;
}

.svg {
  transition: all 0.3s;
  /* if you find some problems change w - h : 30px*/
  padding: 1rem;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  color: rgb(255, 174, 0);
  fill: currentColor;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
}

.text {
  opacity: 0;
  border-radius: 5px;
  padding: 5px;
  transition: all 0.3s;
  color: rgb(255, 174, 0);
  background-color: rgba(33, 215, 200, 0.3);
  position: absolute;
  z-index: 9999;
  box-shadow: -5px 0 1px rgba(15, 222, 215, 0.2),
    -10px 0 1px rgba(9, 219, 201, 0.2),
    inset 0 0 20px rgba(20, 228, 194, 0.3),
    inset 0 0 5px rgba(22, 203, 185, 0.5), 0 5px 5px rgba(0, 0, 0, 0.082);
}

/*isometric prooyection*/
.iso-pro {
  transition: 0.5s;
}
.iso-pro:hover a > .svg {
  transform: translate(15px, -15px);
  border-radius: 100%;
}

.iso-pro:hover .text {
  opacity: 1;
  transform: translate(25px, -2px) skew(-5deg);
}

.iso-pro:hover .svg {
  transform: translate(5px, -5px);
}

.iso-pro span {
  opacity: 0;
  position: absolute;
  color: #1877f2;
  border-color: #1877f2;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
  border-radius: 50%;
  transition: all 0.3s;
  height: 60px;
  width: 60px;
}

.iso-pro:hover span {
  opacity: 1;
}

.iso-pro:hover span:nth-child(1) {
  opacity: 0.2;
}

.iso-pro:hover span:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px, -5px);
}

.iso-pro:hover span:nth-child(3) {
  opacity: 0.6;
  transform: translate(10px, -10px);
}
.back-link {
    background-color: black;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.about-sections h2 {
    background-color: #2196f3; /* Color azul como el de tu encabezado */
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}
.card {
  --bg-card: #87ceeb;
  --light: #22e3ea;

}

.cart-icon {
  fill: white;
  background-color: red;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.item-list-button, .cart-button {
  background-color: white;
  color: black;
  border: none;
}

.item-list-button:hover, .cart-button:hover {
  box-shadow: 0 0 8px #87ceeb;

}
.cartBtn {
  width: 155px;
  height: 50px;
  border: none;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  font-weight: 500;
  position: relative;
  background-color: rgb(29, 29, 29);
  box-shadow: 0 20px 30px -7px rgba(27, 27, 27, 0.219);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}

.cart {
  z-index: 2;
}

.cartBtn:active {
  transform: scale(0.96);
}

.product {
  position: absolute;
  width: 12px;
  border-radius: 3px;
  content: "";
  left: 23px;
  bottom: 23px;
  opacity: 0;
  z-index: 1;
  fill: rgb(211, 211, 211);
}

.cartBtn:hover .product {
  animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-30px);
    opacity: 1;
  }

  100% {
    transform: translateY(0) rotate(-90deg);
    opacity: 1;
  }
}

.cartBtn:hover .cart {
  animation: slide-in-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.back-link:hover {
    background-color: #333;
}
.custom-select {
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.wrapper {
  display: flex;
  gap: 10px;
  font-family: monospace;
}

.wrapper > div {
  text-align: center;
}

.wrapper > div + div {
  border-inline-start: 1px solid #d6cfcf;
  padding-inline-start: 15px;
}

.wrapper > div > p {
  margin-top: 15px;
  max-width: 200px;
}

.wrapper a {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  background-color: #191919;
  color: #d5ad72;
  position: relative;
}

.data-tooltip::before,
.data-tooltip::after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.data-tooltip::before {
  content: attr(data-tooltip-content);
  width: fit-content;
  font-size: small;
  font-weight: 600;
  background-color: inherit;
  padding: 3px 10px;
  border-radius: 4px;
  bottom: calc(100% + 5px);
}

.data-tooltip::after {
  content: "";
  border-top: 5px solid #191919;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  bottom: calc(100% + 1px);
}

.data-tooltip:hover::before,
.data-tooltip:hover::after {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.span-tooltip > i {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.span-tooltip > span {
  position: absolute;
  width: fit-content;
  font-size: small;
  font-weight: 600;
  background-color: inherit;
  padding: 3px 10px;
  border-radius: 4px;
  bottom: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}

.span-tooltip > span::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: inherit;
  transform: rotate(45deg);
  top: calc(100% - 6px);
  left: 40%;
}

.span-tooltip > i:hover + span {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 6px);
}
ul {
  list-style: none;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"] ~ .tooltip {
  background-color: #128c7e;
}

.example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
  background-color: #3b5998;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}
footer {
    margin-top: 100px; /* Esto empuja el footer hacia abajo */
    padding: 40px 0;   /* Esto le da espacio adentro para que no quede apretado */
    background-color: #1f6fff; /* Tu azul */
    color: white;
    text-align: center;
}