/* ==========================================  
 MESA DE EXPERIENCIAS - MINIMALISTA & EDITORIAL
 ANDREA & BERNARDO (VERSIÓN FINAL CSS)
 ========================================== */

/* Variables de Color y Fuentes */
:root {
  --primary-olive: #819373;
  --dark-olive: #4a5740;
  --bg-light: #fcfcfb;
  --text-color: #1a1a1a;
  --text-muted: #666666;
  --card-bg: #ffffff;
  --border-light: #e8e8e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Barra Superior Verde */
.top-bar {
  background-color: var(--primary-olive);
  color: #ffffff;
  text-align: center;
  padding: 12px 15px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Encabezado */
header {
  text-align: center;
  padding: 50px 20px 25px;
  background-color: var(--bg-light);
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.wedding-date {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  color: var(--primary-olive);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Seccion Hero / Banner Slider */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 40px;
  overflow: hidden;
}

.hero-slider .slide {
  display: none;
  position: relative;
  width: 100%;
  animation: fadeIn 1.2s ease-in-out;
}

.hero-slider .slide.active {
  display: block;
}

.hero-slider img {
  width: 100%;
  height: 480px;
  display: block;
  object-fit: cover;
  filter: brightness(0.92);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  text-align: center;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

/* Puntos del slider */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
  background-color: #ffffff;
  transform: scale(1.3);
}

@keyframes fadeIn {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

/* Seccion Bienvenida */
.welcome-container {
  max-width: 680px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.welcome-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--text-color);
}

.welcome-container p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.signature {
  margin-top: 30px;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--dark-olive);
  text-align: center !important;
}

/* Seccion de Tarjetas / Experiencias */
.experiences-section {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 20px;
}

.experiences-section h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

/* Tarjeta Minimalista */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--primary-olive);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-content {
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
  font-weight: 400;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-olive);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* Botón Outline Elegante */
.btn-buy {
  width: 100%;
  background-color: transparent;
  color: var(--dark-olive);
  border: 1px solid var(--dark-olive);
  padding: 12px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  background-color: var(--dark-olive);
  color: #ffffff;
}

/* Mensaje Final */
.final-message {
  max-width: 700px;
  margin: 50px auto 40px;
  padding: 0 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer Limpio */
footer {
  background-color: #111111;
  color: #dddddd;
  text-align: center;
  padding: 40px 20px 100px 20px;
  font-size: 0.88rem;
  letter-spacing: 1px;
  font-weight: 300;
}

/* Botón Flotante Carrito Minimalista */
.cart-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--dark-olive);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  letter-spacing: 1px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 99;
  transition: transform 0.2s ease;
}

.cart-floating-btn:hover {
  transform: scale(1.03);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.my-whatsapp-icon {
  font-size: 28px;
  color: #ffffff;
}

/* Modal del Carrito */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 15px;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0;
}

.close-btn:hover {
  color: var(--text-color);
}

/* Elementos del Carrito Alineados */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.cart-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-color);
}

.cart-item span {
  font-size: 0.9rem;
  color: var(--dark-olive);
  font-weight: 600;
}

.btn-remove {
  background-color: transparent;
  color: #c94a4a;
  border: 1px solid #c94a4a;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background-color: #c94a4a;
  color: #ffffff;
}

.cart-total {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0;
  color: var(--dark-olive);
  font-family: 'Playfair Display', serif;
}

/* Formulario Modal */
.form-group {
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-olive);
  background-color: #ffffff;
}

/* Sello de Seguridad de Mercado Pago */
.payment-security-notice {
  background-color: #f4f6f3;
  padding: 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #555555;
  text-align: center;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 2.2rem;
  }

  .hero-slider img {
    height: 320px;
  }

  .hero-text {
    font-size: 1.8rem;
  }

  .card img {
    height: 240px;
  }

  footer {
    padding-bottom: 130px;
  }
}