/* ==========================
   Mercyshoes Estilos Modernos
   con Variables CSS
   ========================== */

@import url('variables.css');
/* ==========================
   Hero Slider (Mercyshoes)
   ========================== */
main {
  flex: 1;               /* El main crece para ocupar el espacio disponible */
}

html, body {
  height: 100%;          /* Que el body ocupe toda la altura */
  margin: 0;
  display: flex;
  flex-direction: column;
}


.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 40px;
  background: #fff9fb;
}

.hero-slider .slider-track {
  display: flex;
  width: 100%;  /* 3 slides */
  animation: slide 15s infinite;
}

.hero-slider .slide {
  flex: 0 0 100%;     /* cada slide ocupa todo el espacio */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slider .slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;    /* siempre se ve completa */
  display: block;
}

/* Overlay con texto encima */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.055), rgba(0, 0, 0, 0.142));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text-light);
  padding: 20px;
}

.slider-overlay h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.slider-overlay p {
  font-size: 18px;
  margin-bottom: 20px;
}

.slider-overlay .btn {
  font-size: 16px;
}

/* Animación automática */
@keyframes slide {
  0%, 20%   { transform: translateX(0%); }
  25%, 45%  { transform: translateX(-100%); }
  50%, 70%  { transform: translateX(-200%); }
  75%, 100% { transform: translateX(0%); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slider { height: 50vh; }
  .slider-overlay h1 { font-size: 26px; }
  .slider-overlay p { font-size: 14px; }
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(180deg, #ee1c4ddd, #f4aeae, #ee1c4ddd);
  color: var(--color-text);
  line-height: 1.6;
}

/* Contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--color-secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 1px;
}
.site-header nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  transition: opacity .2s;
}
.site-header nav a:hover {
  opacity: .8;
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-text-light);
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  font-size: 14px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
}
.btn.light {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn.light:hover {
  background: var(--color-light);
}

/* Grid productos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card .p {
  padding: 16px;
}
.card .p strong {
  font-size: 16px;
}
.price {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 8px 0;
}

/* Formularios */
.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-light);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}
.checkout-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.checkout-form .file-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed #bbb;
  background: #fafafa;
}
.checkout-form button {
  width: 100%;
}

/* Tablas */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.table th {
  background: var(--color-light);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

/* Alerts / Badges */
.alert {
  background: var(--color-light);
  border-left: 4px solid var(--color-primary);
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  color: var(--color-text);
}
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-info {
    order: 2;
  }
  .checkout-form {
    order: 1;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    height: auto;
  }
  .site-header nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .site-header nav a {
    margin: 0;
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
  .hero-slider {
    height: 48vh;
  }
}

@media (max-width: 640px) {
  .checkout-layout {
    margin-top: 16px;
  }
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header nav a {
    flex: 1 1 100%;
  }
  .checkout-info {
    padding: 16px;
  }
}

/* Admin */
.admin-header {
  background: var(--color-primary);
}
.admin-header nav a {
  color: var(--color-text-light);
  font-weight: 500;
}

/* Animaciones */
a, .btn {
  transition: var(--transition);
}

/* ESTILOS CONTACTO */
.contacto {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fcc2eb, #ededed, #f9bfcc);
}

.titulo-contacto {
  font-size: 48px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0f1833;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.intro-contacto {
  font-size: 18px;
  color: #444;
  margin-bottom: 40px;
}

.cards-contacto {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card h3 {
  font-size: 22px;
  color: #e91e63;
  margin-bottom: 12px;
}

.card p {
  font-size: 16px;
  color: #151515;
}

.card a {
  text-decoration: none;
  color: #0f1833;
  font-weight: bold;
}

.card a:hover {
  color: #e91e63;
}


