/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
  color: #000;
}

/* ===== ESTILOS SITIO PRINCIPAL ===== */

/* Header */
header {
  background: #f0f8ff;
  padding: 20px;
  position: relative;
}

.logo-placeholder {
  font-size: 2rem;
  font-weight: bold;
  color: #2c5aa0;
  margin-bottom: 10px;
}

.logo img {
  max-width: 150px;
}

/* Carrusel */
.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin-top: 15px;
}
.carousel img {
  width: 100%;
  max-height: 500px; /* 🔹 Ajustá el alto máximo a gusto */
  object-fit: cover; /* Evita que la imagen se deforme */
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.banner-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border-radius: 10px;
}

.carousel img {
  width: 100%;
  border-radius: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Puntitos del carrusel */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.dot.active {
  background: #333;
}

/* Secciones */
section {
  padding: 40px 20px;
  background: #f7f7f7;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.image-placeholder {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #ddd, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #666;
  font-weight: bold;
}

.grid img {
  width: 150px;
  height: 150px;
  background: #ddd;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== IMÁGENES SECCIÓN BORDADOS ===== */
#bordados .grid img {
  width: 100%;
  height: 100PX;
  border-radius: 10px;
  object-fit: contain; /* mantiene proporción sin deformar */
}

/* ===== IMÁGENES SECCIÓN PRODUCTOS ===== */
#productos .grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain; /* también evita deformación */
}


/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.steps h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Accordion */
.accordion-item {
  margin-bottom: 10px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.accordion-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  text-align: left;
  border: none;
  outline: none;
  background: #e0e0e0;
  cursor: pointer;
  border-radius: 5px;
}

.accordion-content {
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #dbe9f4;
  padding: 30px 15px;
}

.footer-logo img {
  max-width: 120px;
  margin-bottom: 10px;
}

.social {
  margin: 15px 0;
}

.social-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #2c5aa0;
  color: white;
  border-radius: 50%;
  line-height: 30px;
  margin: 0 5px;
  font-size: 12px;
  font-weight: bold;
}

.social img {
  width: 30px;
  margin: 0 10px;
}

.footer-nav {
  margin: 15px 0;
}

.footer-nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
}

.footer-nav a:hover {
  color: #2c5aa0;
}

.copy {
  font-size: 0.8rem;
  color: #333;
  margin-top: 15px;
}

/* ===== ESTILOS LOGIN ===== */

.login-body {
  background: linear-gradient(135deg, #5A7BEF 0%, #003F8C 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
}

.login-header {
  margin-bottom: 30px;
}

.login-header h2 {
  color: #333;
  margin-top: 10px;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: #2c5aa0;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
}

.login-btn:hover {
  background: #1e3d6f;
}

.error-message {
  color: #e74c3c;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  background: #ffeaea;
  border-radius: 5px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer a {
  color: #2c5aa0;
  text-decoration: none;
}

/* ===== ESTILOS ADMIN ===== */

.admin-body {
  background: #f5f5f5;
  min-height: 100vh;
}

.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h2 {
  margin: 0;
  color: #333;
}

.logout-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #c0392b;
}

.admin-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.form-row {
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: bold;
}

.input-with-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-with-controls input,
.input-with-controls select {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: #e8f4f8;
}

.input-with-controls input:focus,
.input-with-controls select:focus {
  outline: none;
  border-color: #2c5aa0;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: #1e3d6f;
}

.edit-icon {
  font-size: 18px;
  color: #666;
}

.estado-section,
.ingreso-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.estado-section h3,
.ingreso-section h3 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.estado-row,
.ingreso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.save-btn {
  width: 100%;
  padding: 15px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 30px;
}

.save-btn:hover {
  background: #229954;
}

/* ===== MODALES ===== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.modal-buttons button:first-child {
  background: #95a5a6;
  color: white;
}

.modal-buttons button:last-child {
  background: #2c5aa0;
  color: white;
}

.promo-item,
.cliente-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn:hover {
  background: #c0392b;
}

/* ===== ESTILOS CLIENTE ===== */

.client-body {
  background: #f0f8ff;
  min-height: 100vh;
}

.client-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.client-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.greeting {
  margin-bottom: 30px;
}

.greeting h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.greeting h3 {
  font-size: 1.5rem;
  color: #2c5aa0;
  font-weight: bold;
}

.promo-info {
  margin-bottom: 30px;
}

.promo-info h4 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 5px;
}

.promo-info h3 {
  font-size: 1.5rem;
  color: #2c5aa0;
  font-weight: bold;
}

.payment-info {
  margin-bottom: 30px;
}

.cuotas-info,
.monto-info {
  margin-bottom: 20px;
}

.cuotas-info p,
.monto-info p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
}

.info-box {
  background: #e8f4f8;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c5aa0;
  display: inline-block;
  min-width: 100px;
}

.transfer-info {
  margin-bottom: 30px;
}

.transfer-info p {
  margin-bottom: 10px;
  color: #333;
}

.bank-select {
  width: 200px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  margin-bottom: 10px;
}

.bank-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: left;
  margin-top: 10px;
}

.bank-detail {
  margin-bottom: 8px;
  color: #333;
}

.whatsapp-section {
  margin-bottom: 30px;
}

.whatsapp-section p {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

.order-status h4 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3rem;
}

.status-table {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.status-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.status-header div {
  padding: 12px;
  border-right: 1px solid #ddd;
}

.status-header div:last-child {
  border-right: none;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

.status-row div {
  padding: 15px 12px;
  border-right: 1px solid #ddd;
  color: #333;
}

.status-row div:last-child {
  border-right: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .grid .image-placeholder,
  .grid img {
    width: 100px;
    height: 100px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .accordion-btn {
    font-size: 0.9rem;
  }

  .admin-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .estado-row,
  .ingreso-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .client-container {
    padding: 10px;
  }

  .client-content {
    padding: 20px;
  }

  .greeting h2 {
    font-size: 1.5rem;
  }

  .greeting h3,
  .promo-info h3 {
    font-size: 1.2rem;
  }

  .status-header,
  .status-row {
    font-size: 14px;
  }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}