
:root{
  --accent: #fff;
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}


*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family: var(--font);
   background-color: #f1e4da;
  color:#222;
}

.icon-user {
    font-size: 2px;
    display: inline-block;
    filter: brightness(0) invert(0.6);   /* gris medio forzado */
    transition: 0.3s ease;
}

.icon-user:hover {
    filter: brightness(0) invert(1);     /* blanco forzado */
}



.site-header{
  position:absolute;
  top:18px;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:1000;
}

.logo img{ height:100px; display:block; }


#primary_nav_wrap ul{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}

/*  Oscurece imagen  */
#primary_nav_wrap img,
.slide {
  filter: brightness(0.6); 
  transition: filter 0.3s ease;
}

#primary_nav_wrap img:hover,
.slide:hover {
  filter: brightness(0.8); }


* Submenús */
#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }


#primary_nav_wrap ul li{ position:relative; }

#primary_nav_wrap ul li a{
  color: var(--accent);
  text-decoration:none;
  font-weight:600;
  font-size:18px;
  padding:8px 6px;
  display:inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
}

#primary_nav_wrap ul li a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after{
  transform: translateX(-50%) scaleX(1);
}

/* Submenús */
#primary_nav_wrap ul ul{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  background:#fff;
  padding:6px 0;
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
  border-radius:6px;
  min-width:200px;
  z-index:1100;
}

#primary_nav_wrap ul li:hover > ul{ display:block; }

#primary_nav_wrap ul ul li a{
  color:#333;
  padding:9px 16px;
  display:block;
  font-weight:500;
  font-family: var(--font);
}

#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }

/* HERO */
.hero{
  width:100%;
  height:100vh;
  position:relative;
  overflow:hidden;
}





.slideshow{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  animation: fade 16s infinite;
}

.slide:nth-child(1){ animation-delay: 0s; }
.slide:nth-child(2){ animation-delay: 4s; }
.slide:nth-child(3){ animation-delay: 8s; }
.slide:nth-child(4){ animation-delay: 12s; }

@keyframes fade{
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Texto Hero */
.hero-caption{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color: var(--accent);
  font-size:48px;
  font-weight:700;
  text-align:center;
  font-family: var(--font-title);
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  pointer-events:none;
  animation: blink 16s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.9; }
  50% { opacity: 1; }
}

.hero-caption span{
  display:block;
  font-size:50px;
  font-weight:400;
  font-family: var(--font);
}

/* WHY CHOOSE */
.why-choose{
  text-align:center;
  padding:60px 20px;
  background:#f8f5f2;
}

.why-choose h2{
  font-family: var(--font-title);
  font-size:36px;
  margin-bottom:10px;
  color:#3b2d2d;
}

.why-choose .subtitle{
  font-size:16px;
  color:#666;
  margin-bottom:40px;
}



.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch; /* 🔑 Hace que todas tengan la misma altura */
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 300px;
  flex: 1;
  display: flex;             /* 🔑 Para alinear contenido interno */
  flex-direction: column;    /* 🔑 Hace que el contenido se ordene de arriba a abajo */
  justify-content: space-between; /* 🔑 Mantiene el botón abajo */
}

.card:hover{ transform: translateY(-6px); }

.card img{
  width:100%;
  border-radius:8px;
  margin-bottom:15px;
}

.card h3{
  font-family: var(--font-title);
  font-size:20px;
  margin-bottom:10px;
  color:#3b2d2d;
}

.card p{
  font-size:14px;
  color:#555;
  margin-bottom:15px;
}

.card .btn{
  display:inline-block;
  padding:10px 18px;
  background:#F25C05;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  transition: background .3s ease;
}

.card .btn:hover{ background:#f1a969; }



.order {
  background: url("IMG/pedido.jpeg") no-repeat center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
}

.order::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* oscurece la ft pq resalte el tx */
}

.order-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
}

.order h2 {
  font-family: var(--font-title);
  font-size: 42px;
  margin-bottom: 15px;
}

.order p {
  font-size: 18px;
  margin-bottom: 25px;
}

.order-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-order {
  display: inline-block;
  padding: 12px 24px;
  background: #F25C05;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-order:hover {
  background:#F25C05;
}


@media (max-width: 600px) {
  .order h2 { font-size: 28px; }
  .order p { font-size: 14px; }
  .btn-order { padding: 10px 18px; font-size: 14px; }
}



.pie {
  background: #3a2418;
  color: #f1e7dd;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

.pie-logo img {
  width: 150px;
  height: auto;
}

.pie-columna {
  min-width: 200px;
  margin: 15px;
}

.pie-columna h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

.pie-columna p {
  font-size: 14px;
  color: #d8b499;
  margin: 5px 0;
}

.pie-columna a {
  text-decoration: none;
  color: #ffb347;
  font-size: 14px;
}

.pie-columna a:hover {
  text-decoration: underline;
}

.redes {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.redes img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s;
}

.redes img:hover {
  transform: scale(1.1);
}








.card {
  position: relative;               /* Necesario para ubicar el carrito dentro */
  width: 250px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
  padding-bottom: 15px;
  font-family: Arial, sans-serif;
  overflow: hidden;                 /* evita que algo sobresalga */
}

/* Imagen del producto */
.imagen-producto {
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}


/* Botón */
.btn-pedir {
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}




.icon-carrito {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.icon-carrito:hover {
    transform: scale(1.05);
}

.badge-carrito {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #F25C05, #ff7f32);
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(242, 92, 5, 0.4);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge-carrito:empty {
    display: none;
}

.icono-carrito-producto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.icono-carrito-producto:hover {
    background: #F25C05;
    color: white;
    transform: scale(1.1);
}

/* Animaciones para notificación */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

header {
    position: relative;
    z-index: 100;
}

header + header {
    display: none;
}
