html{
    scroll-behavior:smooth;
}

body{
    background-color: rgba(228, 222, 222, 0.986); 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header{
    display:flex; 
    height: 165px;
    justify-content: space-around;
}
nav{
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    height: 60px;
}
nav ul{
    flex-wrap: wrap; 
    display:flex;
    grid-row: auto;
    max-width: 100%;
    padding: 1%;
    margin-left: 20px;
    justify-content:space-evenly ;
    text-align:center;  
}
nav li{
    list-style: none;
    padding: 5px;
}
nav a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    padding:10px 10px ;
    border-radius: 20px;
}
nav ul li a:hover{
    color:#145da0;
    transition: color 0.3s ease;
    background-color: #f7f7f7;
    border-color: #255a97 solid 8px;
}
nav  ul li a:hover{
    transition: color 0.3s ease;
    border-color: #255a97 solid 2px;
}
#andromeda{
    text-align:center;
    margin-bottom: 0%; 
    padding: 2%;
    color: #110f07;
    letter-spacing: 10px;
    font-size: 50px;
    margin-left: 150px;
    margin-top: 40px;
    text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: skewX(-5deg); 
    animation: reflejo 4s infinite;
}
.site-footer {
    background-color: #040404bd;
    color: #fdfaf7;
    margin: 10px;
    padding: 40px 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
}
.footer-bottom {
    margin-top: 254px;
    padding-top: 20px;
    font-size: 12px;
    color: #b0b0b0;
    margin-left: -498px;
    width: 144%;
    justify-content: center;
}
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #E0CDB6; 
    font-weight: 700;
}
.footer-section  {
    margin-left: 200px;
    width: auto;
}
.footer-section p, .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    justify-content: center;
    width: 200px;
    line-height: 1.5;
}
.footer-section a:hover {
    color: #ffffff;
    text-decoration: none;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-left: 50px;
}
.social-icons a {
    font-size: 1.5rem;
    color: #E0CDB6;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    text-decoration: none;
}
.imagen {
    width: 100%;
    height: auto;
}
.imagen img {
    width: 25%;
    height: 300px;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #9e69ff;
    object-fit: cover;
}
#sub{
    margin-bottom: 10%; 
    padding: 6%;
    color: #110f07;
    letter-spacing: 5px;
}
.categorias {
    display: flex;
    align-content: flex-start;
    justify-content: space-around;
    transition: color 0.3s;
}
.categorias  a {
    text-decoration: none;
    background-color: white;
    transition: color 0.3s;
    width: auto;
    color: #000;
    text-align: center;
    height: 30px;
    padding: 9px;
    border-radius: 10px;
}
.categorias2 {
    display: flex;
    gap: 63px;
    align-content: stretch;
    justify-content: space-evenly;
    transition: color 0.3s;
    flex-direction: row;
    flex-wrap: wrap;
}
.categorias2 a {
    text-decoration: none;
    background-color: white;
    transition: color 0.3s;
    width: auto;
    color: #000;
    text-align: center;
    height: 30px;
    padding: 9px;
    border-radius: 10px;
}
.fondo{
   padding: 10px;
    background-image: url(../imagenes/flor1c.jpg);
    height: 400px;
    border-radius: 10px;
    background-size: cover;
    opacity: 85%;
    margin: 17px;
    margin-top: 40px;
}
.fondo2{
   padding: 10px;
    background-image: url(../imagenes/encanto-de-margaritasc.jpg);
    height:600px;
    border-radius: 10px;
    background-size: cover;
    margin: 17px;
    margin-top: 40px;
    background-origin: padding-box;
    opacity: 100%;
}
.categorias  a:hover {
    transition: color 0.3s;
    color:gray;
    font-size: 20px;
}
.categorias li a{
    background-color: black;
}
#catalogo{
    text-align: center;
    padding: 40px;
    font-size: 40px;
    color: rgb(22, 12, 12);
}
.cumple{
    width:94 ;
    height:94; 
    padding: 10px;
    margin: 2%;
}
.categoria-productos{
    display: flex;
    flex-direction: row;
}
.categoria-titulo{
    margin-top: 40px;
    padding: 30px;
    font-size: 35px;
    margin-left: 20px;
}
.producto-imagen{
    height: 300px;
    margin-top: 40px;
}
.producto-grid {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.general{
    display: flex;
}
.producto-card2 {
    background-color: #f3f2f2;
    width: 370px;
    border-radius: 10px;
    margin: 28px;
}
.producto-precio{
    text-align: center;
}
.nombrepro ,#nombrepro{
    margin: 10px;
    position: absolute;
    margin-left: 30px; 
    font-size: 15px;
    font-weight: normal;
}
.titulo4{
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    letter-spacing: 4px;
    background-clip: text;
    color: rgb(22, 12, 12);
    animation: gradient 6s infinite;
    font-size: 40px;
    justify-content: center;
    text-align: center;
}
.acces{
    padding-top:100px;
}
.producto-card{
    background-color: #f3f2f2;
    width:250px;
    border-radius: 10px;
    height: 396px;
}
.producto-card2{
    background-color: #f3f2f2;
    width: 370px;
    border-radius: 10px;
}
.producto-card .producto-info .contenido{
    position: relative;
    margin-top: -140px;
    visibility: hidden;
}
img.producto-imagen{
    height: 300px;
    justify-content: center;
    border-radius: 10px;
    display: block;
    margin: 36px auto auto auto;
    object-fit: cover;
    width: 200px;
}
img.producto-imagen2 {
    height: 371px;
    filter: CONTRAST(1.2) BRIGHTNESS(1.3);
    border-radius: 10px;
    display: block;
    margin: 36px auto auto auto;
    object-fit: cover;
    width: 325px;
    border-radius: 8px;
}
.descripcion{
    text-align: center;
    margin: 10px;
    line-height: 1.4;
}
.accesorio{
    padding: 400px;
}
.describir{
    text-align: center;
    margin: 5px;
    font-size: 12px;
}
.parrafos{
    margin-bottom: 20px;
    padding-inline: 20px;
    font-size: 10px;
    height: auto;
}
.producto-card .descripcion:hover{
    opacity: 1;
}
.producto-card{
    background-color:white;
    overflow: hidden;
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.175, 0.88, 0.32, 1.275);
}
.producto-card:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 16px #c9080833;
    color:#255a97;
    height: 400px;
}
.producto-card2:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 16px #c9080833;
    color:#255a97;
    height: 500px;
}
.descripcion2{
    padding: 20px;
    width: 800px;
    justify-content: center;
    text-align: justify;
    margin-left: 250px;
}
.material{
    padding: 10px;
    justify-content: center;
    margin-left: 270px;
}
.material ul li{
    text-decoration: none;
    list-style: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
.close-btn {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}
.close-btn:hover {
  color: #e63946;
}
.modal-content h2 {
  margin-top: 0;
  font-size: 20px;
  text-align: center;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
#checkout-details p {
  font-size: 14px;
  margin: 6px 0;
  color: #444;
}
#checkout-details hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}
.remove-btn {
  background: transparent;
  border: none;
  color: #e63946;
  font-size: 14px;
  cursor: pointer;
}
.remove-btn:hover {
  color: #c1121f;
}
.confirm-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 15px;
}
.confirm-btn:hover {
  background: #218838;
}
.clear-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #dc3545;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}
.clear-btn:hover {
  background: #b02a37;
}
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  color: #333;
  font-size: 22px;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1100;
}
.cart-icon:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e63946;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 50%;
  min-width: 20px;
  text-align: center;
}
.card-btn{
    background-color: #bcc7d6;
    border-radius: 8px;
    width: 40px;
    height:40px;
    box-shadow: #1d010609;
    border: 2px solid #b0b0b0
}
.card-btn:hover {
  background-color: #a5b3c7; 
  border-color: #888;
  transform: scale(1.1);      
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.card-content{
    box-sizing: border-box;
    transition: all 0.6s;
    transform-origin: bottom;
    transform: rotateX(0deg);
    height: 100px;
    color: white;
}
.producto-card:hover.card-content{
    transform: rotateX(-180deg);
    height: 800px;
}
.descripcion3{
    width: 900px;
    margin-left: 170px;
    padding: 20px;
    text-align: center;
}
.producto-titulo,.producto-precio{
    text-align: center;
    margin: 5px;
    color: #000;
}
.add-to-cart {
    margin-left: 80px;
    width: auto;
}
.add-to-cart2 {
    margin-left: 132px;
    width: auto;
}
.titulo2 {
    margin: 30px;
    padding: 40px;
    height: 118px;
    flex-wrap: wrap;
    width: 100%;
    letter-spacing: 4px;
    background-clip: text;
    color: white;
    animation: gradient 6s infinite;
    font-size: 40px;
    justify-content: center;
    text-align: center;
}
.titulo3 {
    margin-top: 250px;
    flex-wrap: wrap;
    width: 100%;
    letter-spacing: 4px;
    background-clip: text;
    color: rgb(22, 12, 12);
    animation: gradient 6s infinite;
    font-size: 40px;
    justify-content: center;
    text-align: center;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; 
  align-items: center; 
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
  text-align: left;
  font-family: Arial, sans-serif;
}
.modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}
#checkout-details p {
  margin: 8px 0;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 8px;
}
#checkout-details h3 {
  margin-top: 12px;
  color: #111;
}
.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}
.close-btn:hover {
  color: #000;
}
.confirm-btn {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #25D366;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.confirm-btn:hover {
  background: #1ebe5d;
}

/* ============================= */
/* BLOQUE NUEVO PARA RESPONSIVIDAD */
/* ============================= */

img.producto-imagen, img.producto-imagen2 {
    width: 100%;
    max-width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 34px auto;
}
@media (max-width: 2560px){
.producto-card2 {
    width: 800px;
    border-radius: 10px;
}
}

/* Responsive para pantallas pequeñas */
@media (max-width: 412px){
   header {
        flex-direction: column; /* Apilamos logo y título */
        height: auto;
        padding: 10px;
    }
   nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        
    }
    nav li {
        width: 90%;
        margin-bottom: 5px;
    }
    nav a {
        display: block;
        width: 100%;
        
    }
    nav{
      height: 100%;
    }
    
    
    .descripcion2{
    padding: 10px;
    width: 343px;
    text-align: justify;
    margin-left: 0;
}
.descripcion3 {
    width: 365px;
    margin-left: 0px;
    padding: 20px;
    text-align: justify;
}
   
    .categorias a {
    text-decoration: none;
    background-color: white;
    transition: color 0.3s;
    width: auto;
    color: #000;
    text-align: center;
    height: auto;
    padding: 1px;
    border-radius: 10px;
    font-size: smaller;
    margin: 1px;
    /* gap: 31px; */
}
    .cart-icon {
      
    position:inherit; 
    top: 5px;
    right: 5px;
    background: #ffffff;
    color: #333;
    font-size: 22px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s 
ease, background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1100;
}
.cart-count {
    position: inherit;
    
}
.modal-content {
    background-color: #fff;
     margin: 5% ;
    padding: 20px;
    border-radius: 12px;
    width: 50%;
    max-width: 300px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s 
ease-in-out;
}
.fondo2{
  height: 1100px;
}
.footer-section p, .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.5;
    width: auto;
}
.footer-section {
    margin-left: 0;
    padding: 0 10px;
}
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 12px;
    color: #b0b0b0;
    margin-left: 0;
    width: 100%;
}
.material ul li {
        text-decoration: none;
        list-style: none;
        margin-left: -271px;
        text-align: justify;
        width: 318px;
        justify-content: center;
        display: flex
;
    }
    .producto-card:hover{
    transform: scale(1);
    box-shadow: 0 8px 16px #c9080833;
    color:#255a97;
    height: 400px;
}
    .producto-card2:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px #c9080833;
        color: #255a97;
        height: 339px;
    }
   
.add-to-cart {
        margin-left: 33%;
        width: auto;
    }

    .add-to-cart2 {
    margin-left: 33%;
    width: auto;
}
.imagen2 {
        max-width: 200px;
        height: 179px;
        border-radius: 8px;
        margin-left: 25%;
    }
    
    .site-footer {
        width: 325px;
        display: flex;
    flex-direction: column;
    }
    .producto-imagen{
    height: 300px;
    margin-top: 40px;
}
.producto-imagen2{
height: 100px;
width: 1px;
}
}


@media (max-width: 768px) {
  .producto-grid {
    flex-direction: column;
    align-items: center;
  }
  .producto-card,
  .producto-card2 {
    width: 90% !important;
    margin: 15px 0;
  }
  img.producto-imagen,
  img.producto-imagen2 {
    max-width: 220px;
    height: 220px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  img.producto-imagen,
  img.producto-imagen2 {
    max-width: 200px;

  }
  #andromeda {
    font-size: 28px;
    margin-left: 0;
  }
  .categoria-titulo {
    font-size: 24px;
    padding: 10px;
  }
  .titulo4,
  .titulo2,
  .titulo3 {
    font-size: 24px;
    padding: 20px;
  }
}
