/* Variables CSS  */

:root {
  --bg-1: #F8F9FA;
  --bg-2: #E9ECEF;
  --text: #2C3E50;
  --text-muted: #6C757D;
  --accent: #cbbc99;
  --accent-2: #d4c7a8;
  --steel: #495057;
  --border: #DEE2E6;
  --wood: #6E4223;
  --led: #E6EEF7;
  --radius-1: 4px;
  --radius-2: 8px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.1);
  --focus-ring: 0 0 0 2px var(--accent);
}

/* Estructura de pantalla y contenedor */
#pantalla {
width:100%;
max-width: 100%;
height:auto;
position:relative;
float:left;
margin: 0px auto;
padding: 0;
overflow: hidden;
background-color: var(--bg-1);
}

#contenedor{
	width: 1150px;
	height: auto;
	position: relative;
  margin: 0px auto;
  padding: 0;
}

/* Estilo general del BODY */
html{
  font-size: 10px;
  background: var(--bg-1);
}

body{
	margin: 0px auto;
	padding: 0px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
	transition-duration: 2s;
  color: var(--text);
  background-color: var(--bg-1);
}

p{
  font-size: 2rem;
  line-height: 120%;
}

h1, h2, h3, h4{
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
  margin:0;
  padding:0;
}

h2{
  font-size: 4rem;
}

h5 {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
  margin:0;
  padding:0;
}

a{
  text-decoration: none;
}

.subtitulo{
  font-size: 2rem;
  line-height: 2.4rem;
}


header{
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  padding: 0;
  margin:0 auto;
  background-color: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow: visible;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(248, 249, 250, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--accent);
}

header.scrolled .logo-img {
  width: 75px;
  height: 75px;
}


header.scrolled #contenedor {
  padding: 0.8rem 2rem;
}

header div#contenedor{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

header h1{
  width: 25rem;
  height: auto;
  padding: 0;
  margin:0;
  float: left;
  position: relative;
  overflow: hidden;
}

header h1 img{
  width: 100%;
  height: auto;
  transition: .5s;
}

header h1 img:hover{
  opacity: .8;
  transition: .5s;
}

header nav{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

header nav ul,
header nav ul li{
  list-style: none;
  padding:0;
  margin:0;
  position: relative;
  text-align: center;
}

header nav ul li{
  display: inline-block;
  vertical-align: middle;
}

header nav ul li a{
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 8px;
  position: relative;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

header nav ul li:hover a{
  color: var(--accent);
}

header nav ul li a:hover::after {
  width: 80%;
}

header nav ul li a:focus{
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Estilos del Contenedor del Logo */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
  left: auto;
  top: auto;
  transform: none;
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-container a:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.logo-container a:hover .logo-img {
  opacity: 0.8;
}


/* Estilos del Contenedor del Carrito */
.cart-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cart-link:hover {
  background: var(--bg-2);
  border-color: var(--accent);
}

.cart-icon {
  width: 24px;
  height: 24px;
  filter: grayscale(1);
  transition: all 0.2s ease;
}

.cart-link:hover .cart-icon {
  filter: grayscale(0);
}

.cart-count {
  min-width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-link:hover .cart-count {
  color: var(--text);
}

header aside{
  width: 20rem;
  height: auto;
  margin-top:2rem;
  position: relative;
  overflow: hidden;
  float: right;
}

header button{
  width: 100%;
  height: auto;
  padding: 3% 0;
  margin:0;
  border-radius: 3rem;
  background-color: var(--accent);
  transition:.5s;
  color: var(--bg-1);
  font-size: 1.6rem;
  border:none;
  cursor: pointer;
}

header button:hover{
  background-color: var(--accent-2);
  transition:.5s;
}

header button:focus{
  outline: var(--focus-ring);
  outline-offset: 2px;
}

header button img{
  display: inline-block;
  vertical-align: middle;
  margin:0;
  margin-right: 1rem;
  padding:0;
  width: 2rem;
}


/*BARRA DE LOGEO*/
div#pantalla ul#logeado{
  display: none;
  width: 100%;
  height: auto;
  padding:0;
  margin:0 auto;
  background-color: rgba(200,215,150,.5);
  overflow: hidden;
  margin-bottom: 1rem;
  z-index: 100;
  position: relative;
  list-style: none;
}

ul#logeado li{
  list-style: none;
  margin:0 1rem;
  padding:1rem;
  display: inline-block;
  vertical-align: middle;
}

ul#logeado li a, ul#logeado li p{
  font-size: 1.2rem;
  color:#5eb88e;
  margin:0;
  padding:0;
  line-height: 100%;
  font-weight: 600;
}

ul#logeado li p{
  color:gray;
  font-weight: 300;
}

ul#logeado li:last-of-type{
    float: right;
    position: relative;
    margin-right: .5rem;
  }


ul#logeado span.escondido{
  display: none;
}

#logoff{
      top: .5rem;
  background-color: white;
  height: 1.5rem;
  border-radius: .5rem;
  vertical-align: middle;
  color:gray !important;
  font-weight: 600;
  padding:1rem !important;
  position: relative;
  transition: .5s;
}
#logoff img{
  height: 1.5rem;
  vertical-align: middle;
  margin-left:.5rem;
}

#logoff:hover{
  opacity: .6;
  transition: .5s;
}



article.search-container{
  position: relative;
  display: block;
}

article.search-container input{
    width: 100%;
    height: auto;
    padding: 1.5% 4%;
    font-size: 1.4rem;
    outline: none;
    border-radius: 2rem;
    border: solid 1px lightgray;
}

article.search-container a{
  position: absolute;
    right: -1rem;
    top: .4rem;
}

article.search-container span{
  font-size: 1.6rem;
  line-height: 100%;
  color: gray;
  transition: .5s;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

article.search-container span:hover{
  opacity: .5;
  transition: .5s;
}



div#pantalla.logeado ul#logeado{
  display: block;
}


#pantalla.logeado header button{
    width: fit-content;
    height: fit-content;
    padding: 6% 0%;
    margin: 0;
    background-color: white;
    transition: .5s;
    color: gray;
    font-size: 1.6rem;
    border: 0;
    border-radius: 0;
    text-align: center;
}

#pantalla.logeado header h1{
  width: 20rem;
}

#pantalla.logeado header button:hover{
  color:#e94c64;
}

#pantalla.logeado header button img{
  width: 2rem;
  margin-right: 0;
  transition: .5s;  
}

#pantalla.logeado header button:hover img{
  transition: .5s;
  opacity: .5;
}

#pantalla.logeado header aside {
    display: none;
}


#pantalla.logeado header nav{
  float: right;
  padding-top: 2rem;
}








/* ==================== TARJETAS DE CATEGORÍAS ==================== */
#category-cards {
  padding: 12rem 0 8rem 0;
  background: var(--bg-1);
  overflow: visible;
}

#category-cards #contenedor {
  overflow: visible;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
}

.category-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 5rem;
  color: var(--text);
  letter-spacing: 0.5rem;
}

.rubro-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  margin: 4rem 0 2rem 0;
  padding-left: 2rem;
  text-align: left;
  width: 100%;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 3rem 0;
}

.category-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.category-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--bg-2);
}

.category-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-content {
  padding: 1.5rem;
  background: var(--bg-2);
}

.category-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  border: 2px solid var(--text);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.category-btn:hover {
  background: var(--text);
  color: var(--bg-1);
  transform: translateX(5px);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.category-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==================== TARJETAS DE CATEGORÍAS - RESPONSIVE MÓVIL ==================== */
@media only screen and (max-width : 900px) {
  #category-cards #contenedor {
    padding: 0;
  }

  .category-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: 0.3rem;
  }

  .rubro-section-title {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    padding-left: 1.5rem;
    letter-spacing: 0.2rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-image {
    height: 250px;
  }

  .category-content {
    padding: 1.5rem;
  }

  .category-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .category-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }
}


@media only screen and (max-width : 600px) {
  #category-cards {
    padding: 12rem 0 4rem 0;
  }

  #category-cards #contenedor {
    padding: 0;
  }

  .category-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
  }

  .rubro-section-title {
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    letter-spacing: 0.15rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-image {
    height: 180px;
  }

  .category-content {
    padding: 1rem;
  }

  .category-name {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
}

/* ==================== SECCIÓN HERO DE CATEGORÍAS ==================== */
#categories-hero {
  width: 100%;
  min-height: 45vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  overflow: hidden;
  margin-top: 0;
  padding-top: 70px;
  margin-bottom: 4rem;
}

#categories-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text);
  max-width: 800px;
  padding: 2rem;
}

#categories-hero .hero-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  animation: fadeInUp 1s ease;
}

#categories-hero .hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  animation: fadeInUp 1.2s ease;
  opacity: 0.8;
  color: var(--text-muted);
}

/* ==================== SECCIÓN HERO DE TIENDA ==================== */
#store-hero {
  width: 100%;
  min-height: 45vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  overflow: hidden;
  margin-top: 0;
  padding-top: 70px;
  margin-bottom: 4rem;
}

#store-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text);
  max-width: 800px;
  padding: 2rem;
}

#store-hero .hero-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  animation: fadeInUp 1s ease;
}

#store-hero .hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  animation: fadeInUp 1.2s ease;
  opacity: 0.8;
  color: var(--text-muted);
}

/* ==================== SECCIÓN DE CARACTERÍSTICAS ==================== */
#features {
  padding: 6rem 0;
  background: var(--bg-2);
}

#features #contenedor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(56, 142, 60, 0.1);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(56, 142, 60, 0.2);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon {
  filter: grayscale(0);
}

.feature-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== CARACTERÍSTICAS - RESPONSIVE MÓVIL ==================== */
@media only screen and (max-width : 900px) {
  #features {
    padding: 4rem 0;
  }

  #features #contenedor {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 1rem;
  }

  .feature-card {
    padding: 2.5rem 1.5rem;
  }

  .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .feature-card p {
    font-size: 1.2rem;
  }
}


@media only screen and (max-width : 600px) {
  #features {
    padding: 3rem 0;
  }

  #features #contenedor {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 400px;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .feature-card p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}

/* ==================== ÚLTIMOS PRODUCTOS ==================== */
#latest-products {
  padding: 8rem 0;
  background: var(--bg-1);
  overflow: visible;
}

#latest-products #contenedor {
  overflow: visible;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
}

.latest-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 5rem;
  color: var(--text);
  letter-spacing: 0.5rem;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin: 0;
}

.latest-card {
  background: var(--bg-1);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.latest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.latest-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.latest-image {
  width: 100%;
  height: 500px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-2);
}

.latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.latest-card:hover .latest-image img {
  transform: scale(1.05);
}

.latest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0;
}

.latest-card:hover .latest-overlay {
  opacity: 1;
}

.latest-overlay span {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.latest-content {
  padding: 2rem;
  background: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.latest-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05rem;
  line-height: 1.3;
  height: 4.6rem;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-category {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-style: italic;
  height: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latest-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: auto 0 0 0;
  text-align: left;
  height: 2.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.latest-actions {
  width: 100%;
  height: 4rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0.5rem 0;
  background: white;
}

.latest-btn {
  width: auto;
  height: auto;
  padding: var(--space-1) var(--space-2);
  border-radius: 0;
  background-color: var(--accent);
  color: var(--bg-1);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
  align-self: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.latest-card:hover .latest-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.latest-btn:focus {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ==================== ÚLTIMOS PRODUCTOS - RESPONSIVE MÓVIL ==================== */
@media only screen and (max-width : 900px) {
  #latest-products #contenedor {
    padding: 0;
  }

  .latest-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: 0.3rem;
  }

  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .latest-image {
    height: 400px;
  }

  .latest-content {
    padding: 1.5rem;
  }

  .latest-name {
    font-size: 1.6rem;
    min-height: 4rem;
  }

  .latest-category {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .latest-price {
    font-size: 2rem;
  }

  .latest-btn {
    padding: 0.9rem;
    font-size: 1.3rem;
  }
}

@media only screen and (max-width : 600px) {
  #latest-products {
    padding: 12rem 0 4rem 0;
  }

  #latest-products #contenedor {
    padding: 0;
  }

  .latest-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
  }

  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .latest-image {
    height: 320px;
  }

  .latest-content {
    padding: 1.2rem;
  }

  .latest-name {
    font-size: 1.4rem;
    min-height: 3.6rem;
    margin-bottom: 0.5rem;
  }

  .latest-category {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .latest-price {
    font-size: 1.8rem;
  }

  .latest-btn {
    padding: 0.8rem;
    font-size: 1.2rem;
  }
}

section#institucional h1{
  width: 100%;
  text-align: center;
  padding-top: 0;
  padding-bottom: 5.5rem;
}

section#institucional h1 img{
  width: 52%;
  height: auto;
  position: relative;
  margin:0px auto;
}

section#institucional h5{
  width: 100%;
  height: auto;
  text-align: center;
  color: var(--accent);
}

section#institucional a:hover{
  margin-top: -2rem;
  transition: 1s;
}

/* Explicación */
section#explicacion{
  width: 100%;
  position: relative;
  margin:0 auto;
  padding:0;
  overflow: hidden;
  text-align: center;
  border-bottom: solid 1px #b1b1b1;
}

section#explicacion article{
  width: 32%;
  display: inline-block;
  vertical-align: middle;
}

section#explicacion article img,
section#explicacion article p{
  display: inline-block;
  vertical-align: middle;
}

section#explicacion article p{
  font-size: 1.6rem;
  line-height: 1.9rem;
  margin-left: 1.5rem;
  text-align: left;
}

section#explicacion hr{
  width: 1px;
  height: 10rem;
  border:0;
  outline: none;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background-color: #b1b1b1;
}

/* Compra Mínima */
section#minima{
  text-align: center;
  background-color: #5eb88e;
  color:white;
}
section#minima h2,
section#minima hr,
section#minima p{
  display: inline-block;
  vertical-align: middle;
  color:white;
}

section#minima h2{
  margin-right: 1.2rem;
  font-size: 3rem;
}

section#minima hr{
    width: 1.2rem;
    height: 1.2rem;
    background-color: transparent;
    outline: 0;
    border: 2px solid white;
    margin: 0;
    transform: rotate(45deg);
    border-right: 0;
    border-top: 0;
    border-radius: .2rem;
}
/* Botones de Categorías */
section#cat{
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  display: block;
  margin:0 auto;
  padding: 6rem 0;
  background-color: var(--bg-1);
}

section#cat h2,
section#cat .subtitulo{
  width: 100%;
  text-align: center;
  margin:0 auto;
}

section#cat h2{
  margin-bottom: 2rem;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

section#cat .subtitulo{
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-weight: 300;
}

section#cat article{
  margin-top: 0;
}

section#cat article ul,
section#cat article ul li{
  list-style: none;
  padding:0;
  margin:0;
}

section#cat article ul.rubro-padre{
  width: 100%;
  height: auto;
  position: relative;
  float: none;
  padding: 1rem 0;
  margin: 0 auto 4rem auto;
  display: block;
  overflow: visible;
}

section#cat article ul button{
  width: 100%;
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  margin-bottom: 3rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  padding: 2rem 1.5rem;
  overflow: visible;
}

section#cat article ul button:hover{
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(203, 188, 153, 0.2);
  background: rgba(203, 188, 153, 0.1);
}


section#cat article ul button:focus{
  outline: var(--focus-ring);
  outline-offset: 2px;
}

section#cat article ul li{
  width: 23%;
  height: auto;
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 0 1%;
  margin-bottom: 2rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

section#cat article ul li div.image{
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

section#cat article ul li div.image img{
  width: 100%;
  height: 18rem;
  transition: all 0.3s ease;
    object-fit: cover;
    object-position: center;
}

section#cat article ul li span{
  width: 90%;
  height: auto;
    overflow: hidden;
    text-align: center;
  margin: 1.5rem auto;
  font-size: 1.2rem;
    text-transform: uppercase;
  color: var(--text);
    text-decoration: none;
    display: block;
    cursor: pointer;
    vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.05rem;
  line-height: 1.3;
  padding: 0 1rem;
}

section#cat article ul.COTILLON li{
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

section#cat article ul li:hover{
  background: rgba(203, 188, 153, 0.1);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(203, 188, 153, 0.15);
}

section#cat article ul li:hover div.image img{
  transform: scale(1.05);
}

section#cat article ul li:hover span{
  color: var(--accent);
}

.REPOSTERIA a,
.REPOSTERIA a button,
button.REPOSTERIA{
  color: var(--accent);
}

.COTILLON a,
.COTILLON a button,
button.COTILLON{
  color: var(--accent-2);
}


/* Productos */
section#productos{
  width: 100%;
  height: auto;
  position: relative;
  margin: 0 auto;
  padding: 6rem 0;
  background: var(--bg-1);
}

section#productos h2{
  width: 100%;
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

section#productos p.volante{
  width: 100%;
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
}

section#productos article{
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section#productos article ul,
section#productos article ul li{
  list-style: none;
  margin: 0;
  padding: 0;
}

section#productos article nav{
  width: 25%;
  height: auto;
  position: relative;
  background: white;
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 2rem;
}

section#productos article ul.listado{
  width: 72%;
  height: auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  justify-content: start;
  align-items: start;
}

section#productos article ul.listado li{
  width: 100%;
  height: auto !important;
  position: relative;
  background: white;
  border: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

section#productos article ul.listado li:hover{
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(203, 188, 153, 0.2);
}

li.producto span{
  display: none;
}

li.producto span.error-producto{
  background: blue;
    color: white;
    position: absolute;
    display: block !important;
    text-align: center;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: .5rem;
    z-index: 1;
}

li.producto span.error-select{
    right: 0;
    top: 2rem;
}

li.producto span.error-cantidad{
    bottom: -2rem;
    left: 0;
    right: auto;
}

li.producto span.error-producto:before{
    content: '';
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: blue;
    transform: rotate(45deg);
}

li.producto {
  background: var(--bg-1);
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px !important;
}

li.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(203, 188, 153, 0.2);
}

li.producto .producto-imagen {
  width: 100%;
  height: 25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  position: relative;
  cursor: pointer;
  background-color: var(--bg-2);
}

li.producto .producto-imagen .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0;
  pointer-events: none;
}

li.producto .producto-imagen:hover .overlay {
  opacity: 1;
}

li.producto .producto-imagen .overlay span {
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

li.producto .clickeable {
  cursor: pointer;
  transition: all 0.3s ease;
}

li.producto .clickeable:hover {
  transform: translateY(-2px);
}

li.producto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--bg-1);
  transition: transform 0.3s ease;
}

li.producto:hover img {
  transform: scale(1.05);
}

li.producto .producto-info {
  padding: 2rem;
  height: 19rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border-radius: 0;
}

li.producto h3.titulo-producto{
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0 0 0.6rem 0;
    padding: 0;
    color: var(--text);
    text-align: left;
    font-weight: 700;
    height: 4.6rem;
    flex-shrink: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

li.producto .categoria {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    height: 1.6rem;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

li.producto a{
  text-decoration: none;
  color: inherit;
}

li.producto .producto-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

li.producto .producto-link:hover {
  opacity: 0.95;
}

li.producto .descripcion{
    padding: 0;
    margin: 0 0 0.6rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-muted);
    height: 3.6rem;
    flex-shrink: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

li.producto .precio{
  font-size: 2.2rem;
  font-weight: 700;
  margin: auto 0 0 0;
  width: 100%;
  text-align: left;
  color: var(--text);
  height: 2.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

li.producto .producto-acciones{
  width: 100%;
  height: 4rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0.5rem 0;
}

li.producto .variantes-container {
  margin-bottom: var(--space-1);
}

li.producto .cantidad-container {
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

li.producto select.variables{
    width: 100%;
    height: auto;
    padding: var(--space-1);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-1);
    border: 1px solid var(--border);
    background-color: var(--bg-1);
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

li.producto select.variables:focus{
  outline: var(--focus-ring);
  border-color: var(--accent);
}


li.producto .cantidad-input{
  width: 80px;
  height: auto;
  padding: var(--space-1);
  border: 1px solid var(--border);
  font-size: 1.4rem;
  outline: none;
  border-radius: var(--radius-1);
  background-color: var(--bg-1);
  color: var(--text);
  text-align: center;
}

li.producto .cantidad-input:focus{
  outline: var(--focus-ring);
  border-color: var(--accent);
}

li.producto button.agregar-carrito{
  width: auto;
  height: auto;
  padding: var(--space-1) var(--space-2);
  border-radius: 0;
  background-color: var(--accent);
  color: var(--bg-1);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
  align-self: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

li.producto:hover button.agregar-carrito{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

li.producto button.agregar-carrito:focus{
  outline: var(--focus-ring);
  outline-offset: 2px;
}

li.producto .error-message {
  color: #ff6b6b;
  font-size: 1.2rem;
  margin-top: var(--space-1);
  display: block;
}

.no-products {
  text-align: center;
  padding: var(--space-3);
  color: var(--text-muted);
}

.no-products h3 {
  color: var(--text);
  margin-bottom: var(--space-1);
}

/* Estilos de la Página de Detalle del Producto */
#producto-detalle {
  padding: var(--space-3) 0;
  background-color: var(--bg-1);
  min-height: 80vh;
}

.producto-detalle-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.producto-imagenes {
  position: sticky;
  top: var(--space-2);
}

.imagen-principal {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0;
  background-color: var(--bg-2);
  border: 1px solid var(--border);
}

.producto-info {
  background-color: var(--bg-1);
  padding: var(--space-3);
  border-radius: 0;
  border: 1px solid var(--border);
}

.producto-titulo {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: var(--space-1);
  font-weight: 700;
}

.producto-categoria {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-style: italic;
}

.producto-precio {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.producto-descripcion {
  margin-bottom: var(--space-3);
}

.producto-descripcion h3 {
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: var(--space-1);
}

.producto-descripcion p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.4rem;
}

.producto-acciones {
  margin-bottom: var(--space-3);
}

.variantes-container,
.cantidad-container {
  margin-bottom: var(--space-2);
}

.variantes-container label,
.cantidad-container label {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: var(--space-1);
  font-size: 1.4rem;
}

.variantes-container select,
.cantidad-container input {
  width: 100%;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background-color: var(--bg-1);
  color: var(--text);
  font-size: 1.4rem;
}

.variantes-container select:focus,
.cantidad-container input:focus {
  outline: var(--focus-ring);
  border-color: var(--accent);
}

.btn-agregar {
  width: 100%;
  padding: var(--space-2);
  background-color: var(--accent);
  color: var(--bg-1);
  border: none;
  border-radius: var(--radius-1);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--space-2);
}

.btn-agregar:hover {
  background-color: var(--accent);
  transform: none;
}

.btn-agregar:focus {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.producto-info-adicional {
  background-color: var(--bg-1);
  padding: var(--space-2);
  border-radius: var(--radius-1);
  border: 1px solid var(--border);
}

.producto-info-adicional p {
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  font-size: 1.3rem;
}

.producto-info-adicional p:last-child {
  margin-bottom: 0;
}

/* Diseño Responsive */
@media (max-width: 768px) {
  .producto-detalle-content {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  
  .producto-titulo {
    font-size: 2rem;
  }
  
  .producto-precio {
    font-size: 2.4rem;
  }

  section#productos article {
    flex-direction: column;
    gap: 2rem;
  }

  section#productos article nav {
    width: 100%;
    order: 2;
  }

  section#productos article ul.listado {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    order: 1;
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    gap: 2rem;
    align-items: center;
    overflow: visible;
  }

  section#productos h2 {
    font-size: 2.5rem;
  }

  section#productos p.volante {
    font-size: 1.2rem;
  }
}

nav#categorias-nav ul li img{
  display: none;
}

nav#categorias-nav ul.rubro-padre{
  width: 100%;
  height: auto;
  border: none;
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
}

nav#categorias-nav ul button.padre{
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  text-transform: uppercase;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  text-align: left;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

nav#categorias-nav ul button.padre:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

nav#categorias-nav ul li.subrubro{
  font-size: 1.4rem;
  padding: 0.8rem 0;
  width: 100%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

nav#categorias-nav ul li.subrubro:hover{
  color: var(--accent);
  background: rgba(203, 188, 153, 0.1);
  padding-left: 1rem;
}

nav#categorias-nav ul li.subrubro span{
  display: block;
  text-transform: capitalize;
}

nav#categorias-nav ul li.subrubro span::first-letter{
  text-transform: uppercase;
}


/* Corte */
section#corte{
  width: 100%;
  height: auto;
  position: relative;
  background:url(../img/corte.png) no-repeat;
  background-position: center;
  background-size: cover;
}

section#corte:before,
section#corte:after{
  content: '';
  width: 100%;
  height: 4rem;
  position: absolute;
}

section#corte:before{
  top: 0;
  left: 0;
  background: url(../img/volado.png) no-repeat;
  background-size: cover;
  background-position: bottom;
}

section#corte:after{
  bottom: 0;
  left: 0;
  background: url(../img/volado-abajo.png) no-repeat;
  background-size: cover;
  background-position: top;
}

section#corte img{
  width: 90%;
  height: auto;
  margin:14rem 5%;
}

/* Contacto */
section#contacto{
  width: 100%;
  height: auto;
  position: relative;
  padding: 8rem 0;
  background: var(--bg-1);
}

section#contacto h2,
section#contacto p{
  width: 100%;
  height: auto;
  text-align: center;
}

section#contacto h2{
  color: var(--text);
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

section#contacto p{
  margin-bottom: 2rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
}

section#contacto .contact-container{
  display: flex;
  gap: 6rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: stretch;
}

section#contacto div.forma-wp{
  width: 50%;
  height: auto;
  position: relative;
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 4rem 4rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

section#contacto div.forma-wp input{
  padding: 1.5rem 1.5rem;
  background: var(--bg-2);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 2rem 0;
  width: 95%;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  text-align: left !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

section#contacto div.forma-wp input::placeholder{
  color: var(--text-muted);
}

section#contacto div.forma-wp input:focus{
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(203, 188, 153, 0.1);
}

section#contacto div.forma-wp input#tel-wasap{
  margin-left: 0;
}

section#contacto div.forma-wp input[type="email"]{
  width: 95%;
  margin-top: 0;
}

section#contacto div.forma-wp textarea{
  width: 95%;
  height: 12rem;
  border: 2px solid var(--border);
  outline: none;
  font-size: 1.4rem;
  color: var(--text);
  padding: 1.5rem;
  background: var(--bg-2);
  border-radius: 10px;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-bottom: 2rem;
  text-align: left !important;
  box-sizing: border-box;
}

section#contacto div.forma-wp textarea::placeholder{
  color: var(--text-muted);
}

section#contacto div.forma-wp textarea:focus{
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(203, 188, 153, 0.1);
}

section#contacto div.forma-wp input[type="button"]{
  padding: 1.5rem 3rem;
  border-radius: 50px;
  background: var(--accent);
  color: white;
  font-size: 1.4rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: fit-content;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1rem;
  margin-top: 3rem;
  align-self: center;
}

section#contacto div.forma-wp input[type="button"]:hover{
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 188, 153, 0.3);
}

section#contacto article div#contenedor{
  overflow: hidden;
}

section#contacto article{
  width: 50%;
  height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 50rem;
  padding: 1rem;
}

section#contacto article iframe{
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  right: inherit;
  top: inherit;
  border-radius: 20px;
  margin: 0;
  flex: 1;
}

/* Footer */
footer{
  width: 100%;
  height: auto;
  position: relative;
  background: var(--bg-1);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.footer-main{
  padding: 6rem 0 4rem 0;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.98) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo .logo-img{
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
}


.footer-description{
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.footer-tagline{
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
}

.footer-links,
.footer-contact{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-links h3,
.footer-contact h3{
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  width: fit-content;
}

.footer-links ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links ul li a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: block;
}

.footer-links ul li a:hover{
  color: var(--accent);
  padding-left: 1rem;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon{
  font-size: 1.6rem;
  width: 2rem;
  text-align: center;
}

.contact-item a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.contact-item a:hover{
  color: var(--accent);
}

.footer-bottom{
  background: rgba(0, 0, 0, 0.05);
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom .footer-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: none;
  gap: 0;
}

.copyright,
.credits{
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.credits a{
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.credits a:hover{
  color: white;
}

a#wasap-flotante{
  position: fixed;
  z-index: 50;
  bottom: 2%;
  right: 2%;
  transition: .5s;
}

a#wasap-flotante:hover{
  transform: scale(1.1,1.1);
  transition: .5s;
}

/*PAGINAS TODAS*/
section.cabeceras{
  width: 100%;
  height: 25rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: lightcoral;
}

section.cabeceras img{
  width: 100%;
  height: 100%;
  object-position: center bottom;
  object-fit: cover;
  display: none;
}

section.cabeceras:after{
  content: '';
  width: 100%;
  height: 4rem;
  position: absolute;
  bottom: 0;
  left: 0;
  background: url(../img/volado-abajo.png) no-repeat;
  background-size: cover;
  background-position: top;
}

section.cabeceras span{
  position: absolute;
  bottom: 7rem;
  left:0;
  right:  0;
  text-align: center;
  color: white;
  text-shadow: 0px 0px 1.5rem black;
}

section.cabeceras-tienda span{
  width: 100%;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
  bottom: 6rem;
}

section.cabeceras-tienda span strong{
  font-size: 3rem;
  font-weight: 700;
  text-transform: lowercase;
  display: inline-block;
}
section.cabeceras-tienda span strong::first-letter{
  text-transform: uppercase;
}

section#productos.tienda:before,
section#productos.tienda:after{
  display: none;
}

 button#filtros{
  display: none;
 }

 section#cat.pagcat{
  padding-top: 0;
 }


/* Carrito */

section.carrito{
 width: fit-content;
    height: auto;
    padding: 0 1rem;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    background: #5eb88e;
    border-radius: 0 0rem 1rem 1rem;
    display: block;
    bottom: -3rem;
    right: 8%;
    z-index: 1;
}

#pantalla.logeado section.carrito{
	display:block;

}

section.carrito,
section.carrito p,
section.carrito a{
  font-size: 1.3rem;
  color: white;
}

section.carrito a{
  font-weight: 700;
}

section.carrito p,
section.carrito a{
  display: inline-block;
  vertical-align: middle;
  margin: .7rem 1rem;
}

section.carrito a span{
    font-size: 2.5rem;
    top: -1rem;
    position: absolute;
    vertical-align: middle;
    background: #fff;
    border-radius: 50%;
    margin-left: .5rem;
    padding: 0.5rem;
    border: solid 3px #5eb88e;
}


/* Tablas del Carro */

section#carro{
  padding:5rem 0;
}

section#carro table{
  width: 100%; 
  font-size: 1.4rem;
}

section#carro table tr{
  padding:2rem 0;
  border-bottom: 1px solid lightgray;
}

section#carro table tr.detalle td{
  font-weight: 700;
  font-size: 1.2rem;
  color: gray;
}

section#carro table tr td {
  padding:.5%;
}
section#carro table tr td img{
  width: 100%;
  cursor: pointer;
  transition: .5s;
}

section#carro table tr td img:hover{
  filter: grayscale(1);
  transition: .5s;
}

/* Estilos de la Tabla del Carrito */
section#carro table.carro {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  table-layout: fixed;
}

/* Contenedor de tabla del carrito con scroll horizontal */
section#carro .cart-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin-bottom: 3rem;
}

section#carro table.carro thead {
  background: var(--text);
  border-bottom: 2px solid var(--accent);
}

section#carro table.carro thead tr {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

section#carro table.carro thead td {
  padding: 1.5rem 1rem;
  text-align: center;
  border: none;
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
}

section#carro table.carro tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

section#carro table.carro tbody tr:hover {
  background: var(--bg-2);
}

section#carro table.carro tbody tr:last-child {
  border-bottom: none;
}

section#carro table.carro tr td:nth-of-type(1){
  width: 10% !important;
  border: 0;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

section#carro table.carro tr td:nth-of-type(1) .btn-delete-item {
  background: rgba(231, 76, 60, 0.1) !important;
  border: 1px solid rgba(231, 76, 60, 0.3) !important;
  padding: 0.6rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

section#carro table.carro tr td:nth-of-type(1) .btn-delete-item:hover {
  background: rgba(231, 76, 60, 0.2) !important;
  border-color: #e74c3c !important;
  transform: scale(1.05) !important;
}

section#carro table.carro tr td:nth-of-type(1) .btn-delete-item img {
  width: 16px !important;
  height: 16px !important;
  filter: brightness(0) saturate(100%) invert(47%) sepia(91%) saturate(2292%) hue-rotate(337deg) brightness(95%) contrast(86%) !important;
}

section#carro table.carro tr td:nth-of-type(2){
  width: 25%;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

section#carro table.carro tr td:nth-of-type(2) .cart-quantity-controls {
  display: inline-flex !important;
  align-items: center !important;
  background: white !important;
  border: 2px solid var(--text) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  gap: 0 !important;
  margin: 0 auto !important;
  min-width: 120px !important;
}

section#carro table.carro tr td:nth-of-type(2) .cart-qty-btn {
  background: transparent !important;
  border: none !important;
  padding: 0.8rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text) !important;
  min-width: 40px !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  font-family: 'Ubuntu', sans-serif !important;
}

section#carro table.carro tr td:nth-of-type(2) .cart-qty-btn:hover {
  background: rgba(203, 188, 153, 0.2) !important;
}

section#carro table.carro tr td:nth-of-type(2) .cart-qty-btn img {
  display: none !important;
}

section#carro table.carro tr td:nth-of-type(2) .cart-qty-btn.qty-minus::before {
  content: "−" !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

section#carro table.carro tr td:nth-of-type(2) .cart-qty-btn.qty-plus::before {
  content: "+" !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

section#carro table.carro tr td:nth-of-type(2) input.cantidad {
  width: 60px !important;
  border: none !important;
  background: transparent !important;
  padding: 0.8rem 0.5rem !important;
  text-align: center !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  outline: none !important;
  border-left: 1px solid var(--text) !important;
  border-right: 1px solid var(--text) !important;
}

section#carro table.carro tr td:nth-of-type(3){
  width: 35%;
  padding: 1.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1.4rem;
  word-wrap: break-word;
  text-align: center;
}

section#carro table.carro tr td:nth-of-type(4){
  width: 15%;
  text-align: right;
  padding: 1.5rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.4rem;
}

section#carro table.carro tr td:nth-of-type(5){
  width: 15%;
  text-align: right;
  padding: 1.5rem 1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Estilos de la Sección de Total */
section#carro table.total{
  width: 100%;
  margin-top: 1rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section#carro table.total thead tr {
  background: var(--text);
}

section#carro table.total thead td {
  padding: 1.5rem;
  text-align: center;
  border: none;
}

section#carro table.total .agregar {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 0.5rem;
}

section#carro table.total .agregar:hover {
  background: #2d7a3d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

section#carro table.total td:last-child {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  padding: 1.5rem;
}

section#carro table.total td:last-child strong {
  font-size: 1.5rem;
}

section#carro table.total tr{
    border:0;
}

section#carro table.total td{
  width: 23%;
  font-size: 2rem;
  color:#5eb88e;
    padding:3rem 1%;
    text-transform: uppercase;
}

section#carro table.total td{
  text-align: right;
}

section#carro table.total a.agregar{
  position: relative;
  display: block;
  margin: 0 auto;
  padding:1% 5%;
  font-size: 1.4rem;
  background: #5eb88e;
  color: white;
  border-radius: 5rem;
  width: fit-content;
  transition:1s;
  box-shadow: 0 0 18px -4px gray;
  cursor:pointer;
  text-align: center;
}

section#carro a.confirmar{
  position: relative;
  display: block;
  margin: 0 auto;
  padding:1% 5%;
  font-size: 1.8rem;
  background: #5eb88e;
  color: white;
  border-radius: 5rem;
  width: fit-content;
  transition:1s;
  box-shadow: 0 0 18px -4px gray;
  cursor:pointer;
}

section#carro a.confirmar:hover{
transition:1s;
  box-shadow: 0 0 18px 4px #5eb88e;
}

section#carro p.nota{
  width: 80%;
  height: auto;
  position: relative;
  margin:4rem auto;
  text-align: center;
  font-size: 1.2rem;
  color:gray;
}

form#carritoForm input.envio{
    width: 80%;
    margin: 1rem auto;
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form#carritoForm input.envio:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

form#carritoForm input.envio::placeholder {
    color: #666;
    opacity: 0.8;
}

form#carritoForm select.envio{
  width: 80%;
  margin: 1rem auto;
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

form#carritoForm select.envio:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

form#carritoForm select.envio option {
  color: #333;
  background: white;
  padding: 0.5rem;
}

form#carritoForm textarea.envio{
  width: 80%;
  margin: 1rem auto;
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

form#carritoForm textarea.envio:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

form#carritoForm textarea.envio::placeholder {
  color: #666;
  opacity: 0.8;
}

.g-recaptcha{
  margin-bottom: 2rem;
}

.g-recaptcha div{
  margin:0 auto;
}

#status{
  padding:1rem;
  width: 100%;
  text-align: center;
}

/* Menú Hamburguesa */
div#hamb{
  width: 3rem;
  height: 3rem;
  position: absolute;
  right: 0;
  top: 1rem;
  overflow:  hidden;
  display: none;
  cursor: pointer;
}

div#hamb hr{
  width: 3rem;
  height: .3rem;
  background: gray;
  border:0;
  outline: 0;
  display: block;
  border-radius: .5rem;
    transition: .5s;

}

div#hamb.click hr:nth-of-type(1){
  transform: rotate(-45deg);
  margin-top: 1rem;
  transition: .5s;
  background: #e94c64;
}

div#hamb.click hr:nth-of-type(2){
transform: rotate(45deg);
transition: .5s;
margin-top: -.7rem;
background: #e94c64;
}
div#hamb.click hr:nth-of-type(3){
  display: none;
}


/* Mis Pedidos */
section#historial{
  padding:5rem 0;
  margin:0 auto;
}

form#historialForm{
  width: fit-content;
  position: relative;
  margin: 0 auto;
  font-size: 1.4rem;
  color:gray;
}

form#historialForm input{
  margin: 0 1rem;
  padding: 1rem;
  background: transparent;
  text-transform: uppercase;
  border: 0;
  outline: none;
  border-bottom: solid 1px gray;
}

form#historialForm button{
    height: auto;
    padding: 1rem 3rem;
    border-radius: 3rem;
    background-color: #e94c64;
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 0;
    transition: .5s;
    display: inline-block;
  }

  form#historialForm button:hover{
    background-color: gray;
    transition: .5s;
  }



article.historial{
  margin:4rem auto;
}

article.historial ul,
article.historial ul li{
  list-style: none;
  margin:0;
  padding:0;
}

article.historial ul li details{
  width: 96%;
  padding: 2%;
  margin:0;
  background-color: lightgray;
}
article.historial ul li details:nth-of-type(even){
  background-color: white;
}
article.historial ul li details p{
  font-size: 1.4rem;
  font-weight: 300;
}

article.historial ul li details p strong{
  font-weight: 700;
}

article.historial ul li details p span{
  font-weight: 700;
  cursor: pointer;
  color:#e94c64;
  position: absolute;
  right: 2%;
}
article.historial ul li details aside{
  font-size: 1.2rem;
}

article.historial ul li details aside h4{
  margin-bottom: 1rem;
}
article.historial ul li details aside ul li{
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: solid 1px gray;
}





/* Media Queries */
@media only screen and (max-width : 1200px){
  div#contenedor{
    width: 900px;
    /*background: rgba(90,65,190,.5);*/
  }

  div#pantalla.logeado ul#logeado {
      height: 4.5rem;
      overflow: hidden;
  }

  ul#logeado li{
    margin:0;
  }

  ul#logeado li.buscador{
    width: 30%;
  }

  section#elegirnos div.izq span{
    margin-top: 0;
  }

  section#elegirnos div.der{
    margin-left: 5%;
  }

  section#elegirnos div.der img {
      width: 100%;
      height: 86rem;
      object-fit: cover;
      object-position: center;
  }

  section#contacto div.forma-wp input#tel-wasap{
    margin-left: .2%;
  }

  header button{
    font-size: 1.4rem;
  }

  header button img{
    margin-right: .5rem;
  }


}



@media only screen and (max-width : 768px){
  div#contenedor{
    width: 700px;
    max-width: 90%;
   /* background: rgba(190,65,190,.5);*/
  }


  p{
    font-size: 1.4rem;
    line-height: 120%;
  }

  h2{
    font-size: 2.7rem;
  }

  h5 {
    font-size: 4rem;
  }


  .subtitulo{
    font-size: 1.6rem;
    line-height: 2rem;
  }

  header {
    min-height: 70px;
  }

  header div#contenedor {
    padding: 1.5rem 2rem;
    min-height: 70px;
  }

  #pantalla.logeado header aside {
    margin: 0;
    width: 70%;
    text-align: center;
    position: relative;
    right: 0;
    float: none;
    top: 0;
}

#logoff{
  padding: 1.5rem 1rem !important;
    font-size: 0 !important;
}

    ul#logeado li.buscador {
        width: 22%;
    }

  div#hamb{
    display: inline-block;
    left: 1rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }

   header div#contenedor{
    overflow: visible !important;
    justify-content: space-between;
    position: relative;
   }

  header button img{
    width: 1.6rem;
    margin:0;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
  }

  .logo-img {
    width: 80px !important;
    height: 80px !important;
  }

  header h1{
    width: 18rem;
  }

  header button{
    padding: 1rem;
    margin-top: 0;
  }

  /* Visibilidad del botón del carrito en móvil */
  .cart-container {
    display: flex !important;
    align-items: center;
    z-index: 100;
    position: absolute;
    right: 1.5rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .cart-link {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .cart-icon {
    width: 20px;
    height: 20px;
  }

  .cart-count {
    min-width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text);
    border-radius: 0;
    font-weight: 600;
  }


header nav{
  position: fixed;
   left: 0;
  right: 0;
   text-align: center;
   top: 70px;
   background: var(--bg-1);
   backdrop-filter: blur(10px);
   padding: 2rem 3% 3rem 3%;
   margin: 0;
   z-index: 999;
   opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

div#pantalla.logeado header nav{
	   top: 115px !important;
}

header nav.click{
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: all;
  max-height: 500px;
  overflow-y: auto;
}

  header nav ul li{
    padding: 0.5rem 3%;
    color: var(--text);
    transition: all 0.3s ease;
   }

  header nav ul li a{
    font-size: 1.6rem;
    margin:0;
    padding: 1.2rem 2rem;
    color: var(--text);
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  header nav ul li a:hover{
    background: rgba(203, 188, 153, 0.1);
    color: var(--accent);
    transform: translateX(5px);
  }

  header aside {
    width: 20rem;
    height: auto;
    margin-top: .5rem;
    position: relative;
    overflow: hidden;
    float: right;
    margin-right: 5rem;
}





  section#explicacion article p {
      font-size: 1.4rem;
      line-height: 140%;
      text-align: center;
      margin: 0 1.5rem;
  }

  section#cat article ul button{
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  section#elegirnos:before,
  section#productos:before {
      width: 34rem;
      height: 34rem;
      top: -23rem;
      right: -10%;
  }

  section#productos:before{
    right: auto;
    left:-25%;
    top:-1.5%;
  }
  section#elegirnos div.izq h2{
    margin-top: 2rem;
  }

  section#elegirnos div.der img{
    height: 66rem;
  }
  
  section#productos h2,
  section#productos p.volante{
    margin-bottom: 3rem;
  }

  section#productos article ul.listado li{
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  #pantalla.logeado section#productos article ul.listado li{
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  li.producto {
    width: 100% !important;
    max-width: 420px;
    height: auto;
    background: var(--bg-1);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #pantalla.logeado li.producto {
    height: auto;
  }
  
  li.producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(203, 188, 153, 0.2);
  }

  section#productos article ul.listado li:nth-child(3n-1),
  section#productos article ul.listado li{
    margin-bottom: 2rem;
  }

  li.producto .producto-imagen{
    height: 200px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    background: var(--bg-2);
  }

  li.producto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  li.producto .producto-info {
    padding: 1rem;
    height: 13rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    background: white;
    border-radius: 0;
  }

  li.producto h3.titulo-producto{
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }

  li.producto p{
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
  }
  
  li.producto p.descripcion {
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }
  
  li.producto .categoria {
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
    height: 1.4rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }

  li.producto .precio,
  li.producto .precios,
  li.producto div.precio,
  li.producto div.precios{
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin: auto 0 0 0;
    display: flex !important;
    align-items: center;
    height: 2.2rem;
    flex-shrink: 0;
    width: 100%;
    text-align: left;
  }

  li.producto .producto-acciones {
    margin-top: auto;
    padding: 0.5rem 0;
    height: 3.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: fit-content;
  }

  li.producto button,
  li.producto button.agregar-carrito{
    width: fit-content;
    min-width: auto;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    background: var(--accent);
    color: var(--bg-1);
    border: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    align-self: flex-start;
  }

  li.producto button:hover,
  li.producto button.agregar-carrito:hover {
    background: var(--accent);
    color: var(--bg-1);
    transform: none;
    box-shadow: none;
  }

  nav#categorias-nav ul button.padre{
    font-size: 1.4rem;
    padding:1rem;
  }

  nav#categorias-nav ul li.subrubro{
    font-size: 1.2rem;
    padding:.5rem 1rem;
  }

  nav#categorias-nav ul.rubro-padre{
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  section#contacto{
    padding: 4rem 0;
  }

  section#contacto h2{
    font-size: 2.5rem;
  }

  section#contacto p{
    margin-bottom: 4rem;
    font-size: 1.2rem;
  }

  section#contacto .contact-container{
    flex-direction: column;
    gap: 3rem;
    align-items: stretch;
  }

  section#contacto div.forma-wp{
    width: 100%;
    padding: 3rem 2rem;
    min-height: auto;
    justify-content: center;
    align-items: center;
  }

  section#contacto article{
    width: 100%;
    min-height: 30rem;
    padding: 0.5rem;
  }

  section#contacto article iframe{
    height: 100%;
    margin: 0;
  }

  section#contacto div.forma-wp input,
  section#contacto div.forma-wp textarea{
    width: 95%;
    max-width: none;
  }

  #categories-hero {
    min-height: 35vh;
    margin-bottom: 3rem;
  }

  #categories-hero .hero-title {
    font-size: 3.5rem;
    letter-spacing: 0.4rem;
  }

  #categories-hero .hero-subtitle {
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
  }

  #store-hero {
    min-height: 35vh;
    margin-bottom: 3rem;
  }

  #store-hero .hero-title {
    font-size: 3.5rem;
    letter-spacing: 0.4rem;
  }

  #store-hero .hero-subtitle {
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
  }

  .footer-container{
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand{
    align-items: center;
  }

  .footer-logo{
    justify-content: center;
  }

  .footer-links,
  .footer-contact{
    align-items: center;
  }

  .footer-links h3,
  .footer-contact h3{
    margin: 0 auto;
  }

  .footer-bottom .footer-container{
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  section.cabeceras{
    height: 22rem;
  }

  section.cabeceras span{
    bottom: 5rem;
    font-size: 1.2rem;
  }

  section.cabeceras span strong{
    font-size: 1.8rem;
  }



}

@media only screen and (max-width : 780px){

   




    li.producto span.error-cantidad{
        bottom: -4rem;
    }

    li.producto span.error-select{
      top: 2rem;
    }

    article.historial ul li details p span{
      position: relative;
      right: 0;
      display: inline-block;
      margin:1%;
    }

    form#historialForm{
      width: 22rem;
      text-align: center;
    }

    form#historialForm input{
      margin-bottom: 2rem;
    }
}

@media only screen and (max-width : 780px){

  div#contenedor{
    max-width: 95%;
    padding: 0 1rem;
   /* background: rgba(190,165,90,.5);*/
  }

  html {
   /* font-size: 8px;*/
  }

  header {
    min-height: 75px;
  }

  header div#contenedor {
    padding: 1.2rem 1.5rem;
    min-height: 75px;
    max-width: 100%;
  }

  div#hamb{
    left: 0.8rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    z-index: 1002;
  }

  .logo-img {
    width: 70px !important;
    height: 70px !important;
  }

  .cart-container {
    position: absolute;
    right: 1.5rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    max-width: 40%;
  }

  .cart-link {
    padding: 0.4rem 0.8rem !important;
    white-space: nowrap !important;
  }

  .cart-count {
    min-width: 18px !important;
    height: 18px !important;
  }

      header #contenedor{
        overflow: visible !important;
      }

 

    section#explicacion article img{
      width: 5rem;
      height: 5rem;
      object-position: center;
      object-fit: contain;
    }

    section#explicacion article p{
      font-size: 1.2rem;
    }

    section#cat h2{
      margin-bottom: 2rem;
    }

    h2,
    section#cat article ul button{
      font-size: 2.4rem;
    }

    .subtitulo {
        font-size: 1.4rem;
        line-height: 140%;
    }

    section#cat article{
      margin-top: 3rem;
    }

    section#cat article ul.rubro-padre{
      width: 100%;
      float: none;
      position: relative;
      overflow: hidden;
      margin: 0 auto;
      margin-bottom: 2rem;
      text-align: center;
    }

    section#cat article ul li{
      width: 15rem;
      margin: 1%;
      border-radius: 0 0 1rem 1rem;
    }

    section#elegirnos:before, section#productos:before{
      display: none;
    }

    section#elegirnos{
      padding:4rem 0;
      padding-bottom: 0;
    }

  section#elegirnos div.izq {
      width: 80%;
      height: auto;
      position: relative;
      display: block;
      vertical-align: inherit;
      text-align: center;
      margin: 0 auto;
  }

      section#elegirnos div.izq span {
        margin-top: 0;
        display: inline-block;
        vertical-align: bottom;
        width: 32%;
      }

      section#elegirnos div.izq span img {
        display: block;
        margin: 0 auto;
        width: 5rem;
        height: 5rem;
        object-fit: contain;
        object-position: center;
      }

      section#elegirnos div.izq span p{
        font-size: 1.2rem;
        line-height: 140%;
      }
    section#elegirnos div.der {
        margin-left: 0;
        margin: 2rem auto;
        width: 100%;
        height: 20rem;
        overflow: hidden;
        display: block;
    }

    section#elegirnos div.der img {
        height: 100%;
        width: 100%;
        object-position: bottom;
        object-fit: cover;
    }

        section#productos h2, section#productos p.volante {
          margin-bottom: 2rem;
        }


        section#productos article{
          overflow: visible;
          padding: 0 1rem !important;
        }

  section#productos article ul.listado {
      width: 100%;
      max-width: 600px;
      height: auto;
      position: relative;
      overflow: visible;
      float: none;
      margin: 0 auto;
      padding: 0 1rem;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      align-items: center;
  }

  /* Asegurar que las tarjetas de producto no toquen los bordes en pantallas de 630px */
  li.producto {
    margin: 0 0.5rem !important;
    width: calc(100% - 1rem) !important;
  }

  li.producto .producto-info {
    padding: 1rem !important;
    box-sizing: border-box !important;
    background: white;
    border-radius: 0;
  }

  li.producto h3.titulo-producto,
  li.producto .precio,
  li.producto .descripcion {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Correcciones de Tabla de Carrito en Móvil */
  section#carro .cart-table-wrapper {
    margin: 0 1rem;
  }

  section#carro table.carro {
    min-width: 650px;
    font-size: 1rem;
  }

  section#carro table.carro th,
  section#carro table.carro td {
    padding: 1rem 0.8rem;
  }

  section#carro table.carro tr td:nth-of-type(1) {
    width: 10% !important;
  }

  section#carro table.carro tr td:nth-of-type(2) {
    width: 25% !important;
  }

  section#carro table.carro tr td:nth-of-type(3) {
    width: 35% !important;
    word-wrap: break-word;
  }

  section#carro table.carro tr td:nth-of-type(4) {
    width: 15% !important;
  }

  section#carro table.carro tr td:nth-of-type(5) {
    width: 15% !important;
    white-space: nowrap;
  }

  /* Correcciones de Acciones de Carrito en Móvil */
  .cart-actions-wrapper {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    gap: 1.8rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart-action-buttons {
    margin-right: 0.8rem;
    gap: 1.2rem;
    max-width: 100%;
  }

  .btn-cart-action {
    padding: 1.1rem 1.8rem;
    font-size: 1.3rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart-total-display {
    padding: 1.8rem 2.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  section#productos article nav{
    position: absolute;
    float: none;
    left:-90rem;
    z-index: 1;
    width: 80%;
    max-width: 350px;
    border-right: solid 1px var(--border);
    transition: 1s;
    padding: 2rem 2rem 2rem 2rem;
    background: var(--bg-1);
    backdrop-filter: blur(10px);
    top: -.5rem;
    height: 100vh;
    overflow-y: auto;
  }

  nav#categorias-nav.apretado{
    left:0;
    transition: 1s;
  }

  button#filtros{
    display: block;
    font-size: 1.4rem;
    border: 0;
    color: var(--text);
    margin-bottom: 2rem;
    transition: 1s;
    z-index: 2;
    position: relative;
    border-radius: var(--radius-2);
    transition: 1s;
    background: var(--bg-2);
    border-bottom: solid 2px var(--accent);
    padding: 1rem 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-1);
  }

  button#filtros:before{
    content:'Filtrar por';
  }
  button#filtros.apretado:before{
    content:'Cerrar categorías';
  }

  nav#categorias-nav ul.rubro-padre {
        margin-bottom: 0;
        border:0;
        width: auto;
       
    }

        nav#categorias-nav ul button.padre {
        font-size: 1.6rem;
        padding: 1.5rem 0;
        background: transparent;
        color: var(--accent);
        font-weight: 700;
        border-bottom: 2px solid var(--border);
        margin-bottom: 1rem;
        margin-top: 1rem;
        transition: all 0.3s ease;
    }

        nav#categorias-nav ul li.subrubro {
        font-size: 1.3rem;
        padding: 0.8rem 1rem;
        width: auto;
        background: transparent;
        border: 0;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        border-radius: var(--radius-1);
        cursor: pointer;
    }
    
    nav#categorias-nav ul li.subrubro:hover {
        color: var(--accent);
        background: var(--bg-2);
        padding-left: 1.5rem;
    }


section#contacto{
  margin-bottom: 0;
}

section#contacto h2, section#contacto p{
  margin-bottom: 2rem;
}

    section#contacto div.forma-wp {
    width: 80%;
    height: auto;
    position: relative;
    float: none;
    overflow: hidden;
    text-align: right;
    margin: 0 auto;
}
section#contacto article iframe {
    width: 100%;
    height: 30rem;
    border: 0;
    position: relative;
    right: inherit;
    top: inherit;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    margin-top: 3rem;
}

    footer article.contacto p span {
        margin: 0 .5rem;
    }

    footer article.abajo p.link, footer article.abajo p.firma{
      font-size: 1.2rem;
      margin-bottom: .5rem;
    }

    footer article.abajo nav.redes{
      margin: 3rem auto;
    }

    section#contacto div.forma-wp input[type="button"]{
      padding: 1rem 2.5rem;
      font-size: 1.4rem;
    }

div#pantalla.logeado a#wasap-flotante{
  bottom: 5%;
}
    a#wasap-flotante img{
      width: 6rem;
      height: 6rem;
    }


section#carro table.carro tr td:nth-of-type(1){
    width: 6%;
}

section#carro table.carro tr td:nth-of-type(2) {
    width: 10%;
}

section#carro table.carro tr td:nth-of-type(3) {
    width: 24%;
}

section#carro table.carro tr td:nth-of-type(4),
section#carro table.carro tr td:nth-of-type(5){
  width: 10%;
}

.total strong{
  display: block;
}
section#carro table tr td {
    padding: 1%;
}

section.carrito, section.carrito p, section.carrito a{
  font-size: 1.4rem;
}

section.carrito{
  bottom: -3.2rem;
}


div#pantalla.logeado header nav{
	   top: 115px !important;
}

div#pantalla.logeado ul#logeado{
  height: 3rem;
  transition: 1s;
}

div#pantalla.logeado ul#logeado.apretado{
  height: 30rem;
  transition: 1s;
}

ul#logeado li, ul#logeado li:last-of-type{
  display: block;
  float: none;
  padding: 2rem 1rem;
  border-bottom: solid 1px white;
  width: 100% !important;
}

ul#logeado li:first-of-type{
  padding: 1rem 1rem;
}

article.search-container input{
  width: 85%;
}

article.search-container a {
    right: 10%;
}

#logoff{
  padding:1rem !important;
}

ul#logeado li:last-of-type{
  border:0 !important;
}
ul#logeado li:last-of-type a{
  font-size: 1.2rem !important;
}

div#pantalla.logeado ul#logeado span.escondido{
  display: block;
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  cursor:pointer;
  font-weight: 600;
}

div#pantalla.logeado ul#logeado span.escondido:before{
  content: 'VER ';
}
div#pantalla.logeado ul#logeado span.escondido.apretado:before{
  content: 'CERRAR ';
}

}  /* End of 780px media query */




@media only screen and (max-width : 480px){
  /* Asegurar que el carrito siempre sea visible en pantallas muy pequeñas */
  .cart-container {
    display: flex !important;
    position: absolute !important;
    right: 1.2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    max-width: 30% !important;
  }

  .cart-link {
    padding: 0.2rem 0.4rem !important;
    font-size: 1rem !important;
    min-width: auto !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .cart-link .cart-text {
    display: none !important;
  }

  /* Ocultar el texto "productos" en pantallas muy pequeñas */
  #mi_carrito {
    font-size: 0.7rem !important;
    min-width: 12px !important;
    height: 12px !important;
    padding: 0 0.1rem !important;
  }

  /* Asegurar que el contenedor del carrito no desborde */
  .cart-container {
    right: 1.2rem !important;
    max-width: 30% !important;
  }

  .cart-count {
    min-width: 14px !important;
    height: 14px !important;
    font-size: 0.8rem !important;
    padding: 0 0.2rem !important;
  }

  .logo-container {
    max-width: 45% !important;
  }

  .logo-img {
    width: 60px !important;
    height: 60px !important;
  }

  header div#contenedor {
    padding: 0.8rem 0.5rem !important;
  }
}

@media only screen and (max-width : 600px){
  div#contenedor{
    max-width: 95%;
    padding: 0 0.5rem;
   /* background: rgba(190,165,190,.5);*/
  }

  /* Corregir tarjetas de producto tocando los bordes en pantallas muy pequeñas */
  section#productos article {
    padding: 0 0.5rem !important;
  }

  section#productos article ul.listado {
    padding: 0 !important;
    max-width: 100% !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  li.producto {
    margin: 0 !important;
    width: 100% !important;
    height: auto;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
  }
  
  li.producto .producto-imagen {
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-2);
  }
  
  li.producto .producto-acciones {
    height: 3rem;
    flex-shrink: 0;
    padding: 0.3rem 0;
  }

  li.producto .producto-info {
    padding: 0.8rem !important;
    height: 11rem;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box !important;
    background: white;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  li.producto h3.titulo-producto {
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
  }

  li.producto .categoria {
    height: 1.3rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
    font-size: 1rem;
  }

  li.producto .descripcion {
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1rem;
  }
  
  li.producto .precio {
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 2rem;
    flex-shrink: 0;
    margin: auto 0 0 0;
    font-size: 1.4rem;
  }

  section#carro .cart-table-wrapper {
    margin: 0 0.5rem;
  }

  section#carro table.carro {
    min-width: 600px;
    font-size: 0.9rem;
  }

  section#carro table.carro th,
  section#carro table.carro td {
    padding: 0.8rem 0.5rem;
  }

  section#carro table.carro tr td:nth-of-type(1) {
    width: 10% !important;
  }

  section#carro table.carro tr td:nth-of-type(2) {
    width: 25% !important;
  }

  section#carro table.carro tr td:nth-of-type(3) {
    width: 35% !important;
    word-wrap: break-word;
  }

  section#carro table.carro tr td:nth-of-type(4) {
    width: 15% !important;
  }

  section#carro table.carro tr td:nth-of-type(5) {
    width: 15% !important;
    white-space: nowrap;
  }

  /* Correcciones de Acciones de Carrito en Móvil */
  .cart-actions-wrapper {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart-action-buttons {
    margin-right: 0.5rem;
    gap: 1rem;
    max-width: 100%;
  }

  .btn-cart-action {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart-total-display {
    padding: 1.5rem 2rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  p{
    font-size: 1.2rem;
  }

  h2, section#cat article ul button{
    font-size: 2rem;
  }

header{
  padding-top: 0;
  min-height: 80px;
}

header div#contenedor {
  padding: 1rem 1rem;
  min-height: 80px;
  max-width: 100%;
}

div#hamb{
  left: 0.5rem;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    z-index: 1002;
  }

  .logo-img {
    width: 65px !important;
    height: 65px !important;
  }

  .cart-container {
    position: absolute;
    right: 1.5rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    max-width: 35%;
  }

  .cart-link {
    padding: 0.3rem 0.6rem !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
  }

  .cart-count {
    min-width: 16px !important;
    height: 16px !important;
    font-size: 0.9rem !important;
  }

  #pantalla.logeado header aside{
    margin-right: 0;
        margin-top: 0;
        position: absolute;
        top: -2rem;
        right: 0;
        text-align: right;
        width: 100%;
  }
#label_usuario{
  width: auto;
}
#label_usuario br{
  display: none;
}



    header nav {
        padding: 2rem 5% 3rem 5% !important;
        top: 70px;
    }

  header nav ul li{
    padding: 1.5rem 2% !important;
  }

  header nav ul li a{
    font-size: 1.5rem !important;
    padding: 1rem 0 !important;
  }

  section#explicacion article{
    width: 100%;
  }

  section#explicacion hr{
    width: 10rem;
    height: 1px;
    margin: 1rem auto;
  }

  section#explicacion article p{
    text-align: left;
  }

  section#explicacion{
    border:0;
  }

  section#elegirnos div.izq span{
    width: 100%;
    margin-top: 1.5rem;
  }
  section#elegirnos div.der{
    height: auto;
  }

  section#productos article ul.listado li{
    width: 100%;
    margin: 0;
  }

  section#productos article ul.listado li:nth-child(3n-1){
    margin: 0;
  }

  section#contacto div.forma-wp textarea,
  section#contacto div.forma-wp input{
    font-size: 1.2rem;
  }

  section#contacto div.forma-wp textarea{
    height: 15rem;
  }

      section#contacto div.forma-wp input[type="button"] {
        padding: .7rem 2rem;
        font-size: 1.2rem;
    }

        footer article.contacto p span {
        margin: 1rem auto;
        display: block;
        width: 1rem;
        height: 1px;
        background: white;
        overflow: hidden;
        color: transparent;
    }

    footer article.abajo h1 a img{
      width: 70%;
    }

    header nav ul li{
      padding: .7% 2%;
    }

    header nav ul li a{
      font-size: 1.1rem;
    }



    header h1{
    	width: 5rem;
    	height: 5rem;
    	overflow: hidden;
    }

    header h1 img{
    	width: auto;
    	height: 100%;

    }

    div#pantalla.logeado header h1{
    	width: 20rem;
    }

    div#pantalla.logeado header h1 img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
        div#pantalla.logeado header nav {
        top: 115px !important;
        padding: 2rem 5% 3rem 5% !important;
    }
    
    header nav ul li{
      padding: 1.5rem 2% !important;
    }

    header nav ul li a{
      font-size: 1.4rem !important;
      padding: 1rem 0 !important;
    }
}



/*LOGIN*/
section#login{
  position: fixed;
  display: block;
    opacity: 1;
    top: -125%;
    width: 40rem;
    max-width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
  pointer-events: none;
  text-align: center;
  z-index: 5;
  opacity: 0;
  transition:1s;
}

section#login.modal{
  top: 25%;
  opacity: 1;
  transition:1s;
}

section#login #contenedor{
  margin-top: 15%;
    padding: 2%;
    width: auto;
    background: rgba(0,0,0,.9);
}

section#login #cerrar{
    width: 3rem;
    height: 2.5rem;
    padding-top: .5rem;
    position: relative;
    margin: 0 auto;
    border-radius: 50%;
    background: white;
    font-size: 1.6rem;
    font-weight: 700;
    color: #e94c64;
    margin-bottom: -1.5rem;
    pointer-events: all;
    cursor: pointer;
    transition: .5s;
}

section#login #cerrar:hover{
  color: black;
  transition: .5s;
}

section#login p{
  font-size: 1.6rem;
  color:white;
}
section#login p a{
  pointer-events: all;
  color:black;
}

section#login form{
  width: 90%;
  padding:3% 2%;
  border-radius: 1rem;
  background: #e94c64;
  color:white;
  text-align: center;
  margin:0px auto;
  pointer-events: all;
  padding-top: 6%;
  box-shadow: 0px 6px 7px 0px gray;
}

section#login form input{
  width: 90%;
  padding:3% 2%;
  border:0;
  border-radius: 4rem;
  outline: 0;
  background: white;
  color:gray;
  font-size: 1.5rem;
  margin:.5rem auto;
  text-align: center;
}

section#login form input[type="submit"]{
  background: rgba(255,255,255,.5);
  color:white;
  text-transform: uppercase;
  font-weight: 700;
  width: 92%;
  transition: .5s;
}

section#login form input[type="submit"]:hover{
  background: #5eb88e;
  transition: .5s;
}
input#password{
  position: relative;
}

section#login form span{
  position: relative;
}
section#login form span p.ojito{
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: -.7rem;
    right: 1.3rem;
    padding: 0;
    background: url(../img/eye.png) no-repeat;
    background-color: white;
    background-size: 2rem auto;
    background-position: 95% center;
    margin: 0;
}




/*COSAS A CAMBIAR una vez logeado*/

  li.producto div.precios{
    display: inline-block;
  }
  #pantalla.logeado li.producto div.precios{
    display: inline-block;

  }

  section#productos article ul.listado li{
    pointer-events: all;
  }

  #pantalla.logeado section#productos article ul.listado li{
    pointer-events: all;
  }

  li.producto button{
    display: block;
  }

 #pantalla.logeado li.producto button{
    display: block;
  }

  body.swal2-shown.swal2-height-auto{
    padding:0!important;
  }
  
.swal2-container.swal2-center.swal2-backdrop-show{
  width: 100% !important;
  overflow: hidden !important;
  padding:0 !important;
}

/* ===== PÁGINA DE DETALLE DEL PRODUCTO ===== */
#producto-detalle {
    padding: 10rem 0 2rem 0;
    min-height: 80vh;
    position: relative;
    z-index: 5;
}

#producto-detalle .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.producto-detalle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.producto-imagenes {
    position: sticky;
    top: 10rem;
    z-index: 10;
    display: flex;
    align-items: stretch;
}

.imagen-principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* ===== ESTILOS DE GALERÍA ===== */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-main {
    width: 100%;
    position: relative;
    min-height: 400px;
}

/* Contador de imágenes */
.image-counter-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

/* Indicadores de puntos */
.gallery-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: var(--accent);
    border-color: white;
    transform: scale(1.3);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== GALERÍA RESPONSIVE ===== */
@media (max-width: 768px) {
    .gallery-main {
        min-height: 550px;
        height: 550px;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
    }
    
    /* Ocultar miniaturas en móvil - usar deslizamiento en su lugar */
    .gallery-thumbnails {
        display: none !important;
    }
    
    .gallery-container {
        gap: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .imagen-principal {
        border-radius: 12px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-counter-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }
    
    .gallery-dots {
        bottom: 1.5rem;
        gap: 0.4rem;
    }
    
    .gallery-dot {
        width: 9px;
        height: 9px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        min-height: 500px;
        height: 500px;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
    }
    
    /* Miniaturas ocultas en móvil */
    .gallery-thumbnails {
        display: none !important;
    }
    
    .gallery-container {
        gap: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .imagen-principal {
        border-radius: 8px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-counter-badge {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }
    
    .gallery-dots {
        bottom: 1.25rem;
        gap: 0.4rem;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
        border-width: 2px;
    }
}

.producto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.producto-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.producto-categoria {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.producto-descripcion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.producto-descripcion h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.producto-descripcion p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.producto-acciones {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.variantes-container,
.cantidad-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variantes-container label,
.cantidad-container label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select option {
    background: white !important;
    color: var(--text) !important;
    padding: 0.8rem 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
}

.select-wrapper select option:hover {
    background: var(--bg-2) !important;
    color: var(--accent) !important;
}

.select-wrapper select option:checked {
    background: var(--accent) !important;
    color: white !important;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: var(--text-light);
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quantity-btn {
    background: transparent;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-btn img {
    display: none;
}

.quantity-btn.quantity-minus::before {
    content: "−";
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.quantity-btn.quantity-plus::before {
    content: "+";
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.quantity-controls input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.btn-agregar {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-agregar:hover {
    transform: none;
    box-shadow: none;
}

.btn-agregar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.producto-info-adicional {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Responsive móvil para el detalle del producto */
@media only screen and (max-width: 768px) {
    .producto-detalle-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .producto-imagenes {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Altura de imagen controlada por el contenedor gallery-main en los estilos de galería */
    
    .producto-titulo {
        font-size: 2rem;
    }
    
    .producto-precio {
        font-size: 1.8rem;
    }
    
    .producto-descripcion,
    .producto-info-adicional {
        padding: 1.5rem;
    }
    
    .btn-agregar {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ESTILOS MODERNOS DE LA PÁGINA DEL CARRITO ===== */
#cart-hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.8)), var(--bg-1);
    padding: 140px 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-hero .hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

#cart-hero .hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

#cart-hero .hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
    margin: 0;
}

.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem 6rem 3rem;
    box-sizing: border-box;
}

.cart-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Controles de cantidad en la tabla del carrito */
.cart-quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.cart-qty-btn {
    background: transparent;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Ubuntu', sans-serif;
}

.cart-qty-btn:hover {
    background: rgba(203, 188, 153, 0.2);
}

.cart-qty-btn img {
    display: none;
}

.cart-qty-btn.qty-minus::before {
    content: "−";
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.cart-qty-btn.qty-plus::before {
    content: "+";
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.cart-quantity-controls input.cantidad {
    width: 50px;
    border: none;
    background: transparent;
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    outline: none;
}

.btn-delete-item {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-item:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    transform: scale(1.1);
}

.btn-delete-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(91%) saturate(2292%) hue-rotate(337deg) brightness(95%) contrast(86%);
}

.cart-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 100%;
    box-sizing: border-box;
}

.cart-action-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-right: 1rem;
}

.btn-cart-action {
    background: white !important;
    color: var(--text) !important;
    border: 2px solid var(--text) !important;
    padding: 1.2rem 2rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.btn-cart-action:hover {
    background: var(--bg-2) !important;
    color: var(--text) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.btn-cart-action img {
    width: 20px !important;
    height: 20px !important;
    filter: brightness(0) saturate(100%) !important;
}

.btn-cart-action:hover img {
    filter: brightness(0) saturate(100%) !important; 
}

.cart-total-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(203, 188, 153, 0.3);
}

.total-label-text {
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.total-amount-text {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
}

/* Contenedor de formulario unificado */
.checkout-form-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 5rem 4rem;
    margin: 0 auto 3rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 100rem;
}

/* Contenedor de campo de formulario para mejor estructura */
.form-field-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Estilos de etiquetas del formulario */
.form-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.8rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    line-height: 1.2;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* Estilos mejorados de campos de formulario */
.form-field-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    align-items: stretch;
}

/* Estados de enfoque para mejor UX */
.form-field-wrapper:focus-within .form-label {
    color: var(--accent);
    transition: color 0.3s ease;
}

/* Asegurar alineación adecuada para todos los elementos del formulario */
.checkout-form-wrapper .form-field-wrapper * {
    box-sizing: border-box;
}

.checkout-form-wrapper .modern-input,
.checkout-form-wrapper .modern-select,
.checkout-form-wrapper .modern-textarea {
    margin: 0;
    padding: 1.8rem 2.2rem;
    border: 2px solid var(--text);
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: var(--text);
    font-size: 1.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checkout-form-wrapper .modern-input:focus,
.checkout-form-wrapper .modern-select:focus,
.checkout-form-wrapper .modern-textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(203, 188, 153, 0.1);
}
/* Sobrescribir entradas legacy 'envio' para asegurar ancho completo y alineación dentro del formulario de pago */
form#carritoForm .checkout-form-wrapper .envio {
    width: 100% !important;
    margin: 0 !important;
}

.unified-form-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 3rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    line-height: 1.2;
    padding: 0 0;
}

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 1.6rem;
    margin-bottom: 2.4rem;
    align-items: start;
}

.form-row-group:last-child {
    margin-bottom: 0;
}

.modern-input.full-width,
.modern-textarea.full-width {
    grid-column: 1 / -1;
}

/* Diseño de columna única para campos de ancho completo */
.form-row-group .form-field-wrapper:only-child {
    grid-column: 1 / -1;
}

.modern-select-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.modern-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('img/icons/chevron-down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 1.8rem 2.2rem;
    border: 2px solid var(--text);
    border-radius: 15px;
    background: white;
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Ubuntu', sans-serif;
    box-sizing: border-box;
    height: 6rem;
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
    text-indent: 0;
}

.modern-input::placeholder,
.modern-textarea::placeholder {
    color: var(--text-muted);
}

.modern-textarea {
    height: 8rem;
    resize: vertical;
    align-items: flex-start;
    padding-top: 1.8rem;
    width: 100%;
    min-width: 0;
}

.modern-select {
    padding-right: 4rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(203, 188, 153, 0.1);
    background: white;
}

.modern-select {
    appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 7.5L10 12.5L15 7.5" stroke="%232C3E50" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 20px;
    padding-right: 4rem;
}

.modern-select option {
    background: white;
    color: var(--text);
    padding: 1rem;
}

.modern-textarea {
    min-height: 140px;
    resize: vertical;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0 0 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.confirm-button-wrapper {
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

.btn-confirm-order {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    padding: 2rem 4rem;
    border-radius: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(203, 188, 153, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-confirm-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(203, 188, 153, 0.5);
}

.btn-icon-svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.important-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 15px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 2rem 0;
}

.notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.notice-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.4rem;
}

.notice-content strong {
    color: #ffc107;
    font-weight: 700;
}

/* Responsive móvil para el carrito */
@media only screen and (max-width: 900px) {
    #cart-hero .hero-title {
        font-size: 2.8rem;
        letter-spacing: 0.3rem;
    }

    #cart-hero .hero-subtitle {
        font-size: 1.3rem;
    }

    .cart-page-container {
        padding: 2rem 2rem 4rem 2rem;
        box-sizing: border-box;
    }

    .cart-table-wrapper,
    .checkout-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-row-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-field-wrapper {
        margin-bottom: 0;
        width: 100%;
    }

    .cart-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
    }

    .cart-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cart-total-display {
        justify-content: center;
        padding: 1.5rem 2rem;
    }

    .btn-cart-action {
        width: 100%;
        justify-content: center;
    }

    .btn-confirm-order {
        width: 100%;
        justify-content: center;
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .confirm-button-wrapper {
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .unified-form-title {
        font-size: 2rem;
        margin-bottom: 3.5rem;
        letter-spacing: 0.2rem;
        padding: 0 1rem;
    }

    .checkout-form-wrapper {
        padding: 3rem 2rem;
        border-radius: 20px;
        max-width: 95%;
    }

    .form-row-group {
        gap: 0.8rem;
        margin-bottom: 2.5rem;
    }

    .modern-input,
    .modern-select,
    .modern-textarea {
        font-size: 1.4rem;
        padding: 1.5rem 1.8rem;
        height: 5.5rem;
        margin: 0;
    }

    .modern-textarea {
        height: 7rem;
    }

    .cart-quantity-controls input.cantidad {
        width: 45px;
        font-size: 1.3rem;
    }

    .total-label-text {
        font-size: 1.5rem;
    }

    .total-amount-text {
        font-size: 2.2rem;
    }
}




/* PRECIOS */
.precios, .latest-prices {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.precio-efectivo, .latest-cash, .total-cash {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.precio-efectivo .label, .latest-cash .label, .total-cash .label {
  font-weight: 400;
  margin-left: 0.35em;
  font-size: 1em;
  color: var(--text-muted);
}

.producto-precio + .precio-efectivo {
  margin-top: 0.1em;
  margin-bottom: 0.6em;
}

li.producto .precio-efectivo .label,
li.producto .latest-cash .label,
li.producto .precios .label {
  display: inline !important;
}

li.producto .precio-principal {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.1;
}
li.producto .precio-efectivo {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
}
li.producto .precios { font-size: inherit; color: inherit; }

@media only screen and (max-width : 600px) {
  li.producto .precio-principal { font-size: 1.6rem !important; }
  li.producto .precio-efectivo { font-size: 1.1rem !important; }
}

.cart-total-cash {
  margin-top: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.cart-total-cash .cash-amount { 
  font-size: 1.6rem; 
  font-weight: 700; 
  color: var(--text); 
}
.cart-total-cash .label { 
  font-size: 1.2rem; 
  color: var(--text-muted); 
  font-weight: 600; 
}

@media only screen and (max-width : 900px) {
  .latest-btn { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
@media only screen and (max-width : 600px) {
  .latest-btn { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}

.cart-actions-wrapper { flex-wrap: wrap; }

/* Cart total display: stack both rows inside same goldish box */
.cart-total-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(203, 188, 153, 0.3);
}
.cart-total-display .total-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cart-total-display .cart-total-cash {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.cart-total-display .total-label-text {
  font-size: 1.8rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.1rem;
}
.cart-total-display .total-amount-text {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
}
.cart-total-display .cart-total-cash .cash-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}
.cart-total-display .cart-total-cash .label {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ===== BADGES Y LEYENDAS DE STOCK ===== */

/* Leyenda de stock para la página de detalle del producto */
.stock-legend {
  margin: 1rem 0;
}

.stock-legend .stock-badge {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Badge de stock superpuesto para las tarjetas de productos */
.stock-badge-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.stock-badge-overlay .stock-badge {
  display: inline-block;
  background: rgba(220, 53, 69, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

/* Asegurar que el badge sea visible en las imágenes de productos */
.latest-image,
.producto-imagen {
  position: relative;
}

/* Estilos para botones deshabilitados */
.btn-disabled,
button.btn-disabled,
.latest-btn.btn-disabled,
.btn-agregar.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
  background-color: #6c757d !important;
  color: white !important;
}

.btn-disabled:hover,
button.btn-disabled:hover,
.latest-btn.btn-disabled:hover,
.btn-agregar.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background-color: #6c757d !important;
}

/* Ajustes responsivos para los badges de stock */
@media (max-width: 768px) {
  .stock-legend .stock-badge {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }
  
  .stock-badge-overlay .stock-badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .stock-badge-overlay {
    top: 0.5rem;
    right: 0.5rem;
  }
}




