/* ==== VARIABLES ==== */
:root {
  --color-primary: #ff504d;
  --color-secondary: #00c9b7;
  --color-terciary: #ff8e43;
  --color-bg: #fffdf6;
  --color-dark: #333;
  --font-main: 'Poppins', sans-serif;
}

/* ==== RESETEO ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
}

/* ==== PRELOADER ==== */
#preloader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#preloader p {
  margin-top: 20px;
  font-weight: 600;
  color: var(--color-dark);
}

/* ==== HEADER ==== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: linear-gradient(to right, var(--color-terciary), var(--color-primary));
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 75px;
  border-radius: 0px;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ==== USER ==== */
.user-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

#loginLink {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

#welcomeContainer{
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcomeContainer p {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

#logoutButton {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  margin-left: 15px;
}

#logoutButton:hover {
  background: white;
  color: var(--color-primary);
}

/* ==== HERO ==== */
.hero {
  background: linear-gradient(to right, #fff8e7, #d9fff9);
  background-image: url('Elementos/FondoWeb3.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 100px 20px;
  color: #333;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  background: none;
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 10px;
  padding-left: 50px;
  padding-right: 50px;
}

.hero h2 {
  font-size: 48px;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hero p {
  margin-top: 15px;
  font-size: 20px;
}

.btn-primary {
  display: inline-block;
  margin-top: 25px;
  background: var(--color-secondary);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--color-primary);
}

/* ==== PRODUCTOS ==== */
.productos {
  padding: 80px 20px;
  text-align: center;
}

.productos h3 {
  font-size: 45px;
  color: var(--color-primary);
  margin-bottom: 50px;
}


.productos h2 {
  font-size: 42px;
  color: var(--color-terciary);
  margin-bottom: 50px;
}

.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 3fr));
  gap: 50px;
  justify-content: center !important;
  align-items: center !important;
}

.categoriaContainer{
    display: flex;
    gap: 50px;
}

.Card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
  text-align: center;
}

.Card:hover {
  transform: translateY(-10px);
}

.Card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.Card h1 {
  font-size: 22px;
  color: var(--color-dark);
  margin-top: 10px;
}

.Card .informacion {
  padding: 10px;
  font-size: 16px;
}

.Card a{
    text-decoration: none;
}


.ver-mas-btn {
  margin-top: 40px;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.ver-mas-btn:hover {
  background: var(--color-secondary);
}

/* ==== CONTACTO ==== */
.contacto {
  background: linear-gradient(to right, #ffecd2, #fcb69f);
  text-align: center;
  padding: 80px 20px;
}

.contacto h2 {
  font-size: 42px;
  color: #333;
  margin-bottom: 50px;
}

.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 200px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: scale(1.05);
}

.contact-card img {
  width: 70px;
  margin-bottom: 10px;
}

/* ==== FOOTER ==== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

.Talle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.Talle h2{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 5px !important;
}

.Talla h3{
    font-size: 18px;
    margin-bottom: 5px !important;
}

.informacion h2{
    font-size: 24px;
}

.informacion h4{
    font-size: 26px;
    color: var(--color-primary);

}
.Medidas{

    margin-bottom: 5px !important;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .productos h2, .contacto h2 {
    font-size: 32px;
  }
}
