﻿.calendar-modal-panel {
    --btn-bg: #ff1f2b;
    background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), url('../assets/general/fondomodal.png');
    background-size: cover;
    background-position: center center;
}

@media (max-width: 640px) {
    .calendar-modal-panel .calendar-modal-content {
        padding: 1.25rem;
    }
}
.white-fade-down {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.tw-text-dorado { color: #700909 !important; background: none !important; -webkit-background-clip: unset !important; background-clip: unset !important; }
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

:root{

    --bg-color: #fff;

    --btn-color: #000;
    --btn-bg: #700909;

    --primary-text-color: #700909;
    --header-link-hover: #700909;
    --input-hover-bd-color: #700909;

    --accent: #ff0f2b;
    --accent-light: #a33b3b;
}

/* Helper: force El Messiri font where applied */
.font-el-messiri { font-family: 'El Messiri', sans-serif !important; }

/* ===== Header responsive ===== */
@media (max-width: 768px) {
    .header-auth-desktop {
        display: none !important;
    }
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0.75rem 0;
}

.mobile-menu-user,
.mobile-menu-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mobile-menu-user span,
.mobile-menu-login span {
    font-size: 0.85rem;
}

/* ===== Modal de Lectura (estética HEKA mejorada) ===== */
.reading-modal { 
  position: fixed; 
  inset: 0; 
  z-index: 9997; 
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  padding: 1rem;
}
.reading-modal-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,0.7);
  animation: fadeIn 0.22s ease;
}
.reading-modal-panel { 
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: #ffffff;
  color: #000000;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(112,9,9,0.3), 0 10px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: readingPop 0.24s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: auto;
}
.reading-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 0;
  pointer-events: none;
}
.reading-modal-close { 
  position: absolute; 
  right: 16px; 
  top: 12px; 
  background: transparent; 
  border: 0; 
  color: #ffffff; 
  font-size: 1.5rem; 
  cursor: pointer; 
  line-height: 1; 
  z-index: 10;
  padding: 0.5rem;
}
.reading-modal-close:hover { 
  filter: brightness(0.8);
}
.reading-modal-content { 
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 28px;
  align-items: center;
  height: 100%;
}
.reading-modal-img-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid rgba(112,9,9,0.3);
  border-radius: 14px;
  padding: 1rem;
  width: 280px;
  height: 380px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.reading-modal-img-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(112,9,9,0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.reading-modal-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(112,9,9,0.25), 0 2px 8px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  object-fit: contain;
}
.reading-modal-img-section:hover .reading-modal-img {
  transform: scale(1.02);
}
.reading-modal-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}
.reading-modal-title { 
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--btn-bg, #700909);
    line-height: 1.2;
    font-family: 'El Messiri', sans-serif;
    word-wrap: break-word;
    text-align: center;
}
.reading-modal-desc { 
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
    font-family: 'El Messiri', sans-serif;
    text-align: center;
}
.reading-modal-instruction {
  background: rgba(112,9,9,0.15);
  border: 2px solid rgba(112,9,9,0.35);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 0.5rem;
  font-family: 'El Messiri', sans-serif;
}
.instruction-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.reading-modal-instruction p {
  margin: 0;
  color: #ffffff;
  line-height: 1.5;
  font-family: 'El Messiri', sans-serif;
}

@keyframes readingPop { 
  from { 
    opacity: 0; 
    transform: scale(0.98); 
  } 
  to { 
    opacity: 1; 
    transform: scale(1); 
  } 
}

@media (max-width: 1024px) { 
  .reading-modal-panel {
    max-width: 90vw;
  }
  .reading-modal-content { 
    gap: 1.2rem;
    padding: 24px;
    grid-template-columns: 240px 1fr;
  }
  .reading-modal-img-section {
    width: 240px;
    height: 320px;
  }
}

@media (max-width: 900px) { 
  .reading-modal { 
    padding: 0.75rem;
  }
  .reading-modal-content { 
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 18px;
  }
  .reading-modal-img-section {
    width: 220px;
    height: 300px;
    margin: 0 auto;
  }
    .reading-modal-title {
        font-size: 1.6rem;
        color: var(--btn-bg, #700909);
    }
    .reading-modal-desc {
        font-size: 0.95rem;
        color: #ffffff;
    }
}

@media (max-width: 768px) {
  .reading-modal {
    padding: 0.5rem;
  }
  .reading-modal-panel {
    max-width: 95vw;
    border-radius: 12px;
  }
  .reading-modal-content {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 1rem;
  }
  .reading-modal-img-section {
    width: 180px;
    height: 240px;
    margin: 0 auto;
  }
    .reading-modal-title {
        font-size: 1.5rem;
        color: var(--btn-bg, #700909);
    }
    .reading-modal-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #ffffff;
    }
}

@media (max-width: 640px) { 
  .reading-modal { 
    padding: 0.5rem;
  }
  .reading-modal-panel { 
    max-width: 100vw;
    border-radius: 12px;
  }
  .reading-modal-content { 
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 0.8rem;
  }
  .reading-modal-img-section {
    width: 160px;
    height: 220px;
    padding: 0.8rem;
    margin: 0 auto;
  }
    .reading-modal-title {
        font-size: 1.3rem;
        color: var(--btn-bg, #700909);
    }
    .reading-modal-desc {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #ffffff;
    }
}
/* ===== Estilos del carrito mejorado ===== */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #700909 0%, #8B0B0B 100%);
    color: white;
    border: 2px solid #ff0000;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(112, 9, 9, 0.3), 0 2px 8px rgba(255, 215, 0, 0.2);
    letter-spacing: 0.6px;
    z-index: 1000;
    animation: slideInCart 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8B0B0B 0%, #a01010 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(112, 9, 9, 0.4), 0 0 20px rgba(199, 29, 29, 0.4);
    border-color: #dd1b1b;
}

.cart-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.96);
}

.cart-btn i {
    font-size: 1.3rem;
}

.cart-count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #5e0101 0%, #df6565 100%);
    color: #ffffff;
    border: 2.5px solid #700909;
    border-radius: 50%;
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.35);
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInCart {
    from {
        transform: translateX(150px) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Modal del carrito mejorado */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-modal-panel {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(112, 9, 9, 0.15);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-modal-header {
    background: linear-gradient(135deg, #700909 0%, #8B0B0B 100%);
    color: white;
    padding: 1.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(112, 9, 9, 0.15);
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cart-modal-header i {
    font-size: 1.8rem;
}

.cart-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.cart-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.cart-empty-state i {
    font-size: 4.5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cart-empty-state p {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.3px;
}

.cart-empty-state small {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cart-phase-products {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 1.75rem;
}

.cart-phase-products-main {
    min-width: 0;
}

.cart-phase-products-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.95rem;
}

.cart-items-table thead {
    background: linear-gradient(135deg, rgba(112, 9, 9, 0.05) 0%, rgba(112, 9, 9, 0.02) 100%);
    border-bottom: 2px solid rgba(112, 9, 9, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-items-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: #700909;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-items-table th.col-name { width: 35%; }
.cart-items-table th.col-price { width: 15%; text-align: right; }
.cart-items-table th.col-qty { width: 15%; text-align: center; }
.cart-items-table th.col-subtotal { width: 15%; text-align: right; }
.cart-items-table th.col-actions { width: 20%; text-align: center; }

.cart-items-table tbody tr {
    background: #fff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-items-table tbody tr:hover {
    background: linear-gradient(135deg, #fffbfa 0%, #faf8fa 100%);
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.1);
    transform: translateY(-1px);
}

.cart-items-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.cart-items-table .item-name {
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.cart-items-table .item-price,
.cart-items-table .item-subtotal {
    color: #700909;
    font-weight: 700;
}

.cart-items-table input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.cart-items-table input[type="number"]:focus {
    outline: none;
    border-color: #700909;
    box-shadow: 0 0 0 3px rgba(112, 9, 9, 0.1);
}

.cart-remove-btn {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
    transform: translateY(-1px);
}

.cart-remove-btn:active {
    transform: translateY(0);
}

.cart-remove-btn i {
    font-size: 0.8rem;
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    padding: 1.75rem 1.5rem;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.cart-total {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #444;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(112, 9, 9, 0.08) 0%, rgba(112, 9, 9, 0.03) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #700909;
}

#cart-total-label {
    color: #700909;
    font-size: 1.6rem;
    font-weight: 800;
}

.cart-paypal-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #faf7f7 100%);
    border-radius: 12px;
    border: 1px solid rgba(112, 9, 9, 0.12);
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.25);
}

.cart-paypal-header {
    margin-bottom: 0.9rem;
}

.cart-paypal-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #700909;
}

.cart-paypal-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.cart-login-required {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fffbf0 0%, #fff5e6 100%);
    border: 2px solid #ffd699;
    border-radius: 10px;
    color: #8b1414;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem;
}

.cart-login-required strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cart-login-required a {
    background: linear-gradient(135deg, #201212d5 0%, #a01a1a 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(139, 105, 20, 0.2);
}

.cart-login-required a:hover {
    background: linear-gradient(135deg, #a01a1a 0%, #8b1414 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 105, 20, 0.3);
}

#btn-continue-to-shipping {
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #700909 0%, #8B0B0B 100%);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.25);
    letter-spacing: 0.3px;
}

#btn-continue-to-shipping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(112, 9, 9, 0.35);
    background: linear-gradient(135deg, #8B0B0B 0%, #a01a1a 100%);
}

#btn-continue-to-shipping:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(112, 9, 9, 0.2);
}

#btn-continue-to-shipping i {
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

#btn-continue-to-shipping:hover i {
    transform: translateX(3px);
}

/* ===== Formulario de envío ===== */
.shipping-header {
    background: linear-gradient(135deg, rgba(112, 9, 9, 0.08) 0%, rgba(112, 9, 9, 0.04) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(112, 9, 9, 0.15);
}

.shipping-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #700909 0%, #8B0B0B 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(112, 9, 9, 0.2);
}

.shipping-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shipping-section {
    background: linear-gradient(135deg, #fafafe 0%, #f5f5f9 100%);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(112, 9, 9, 0.08);
    transition: all 0.25s ease;
}

.shipping-section:hover {
    border-color: rgba(112, 9, 9, 0.15);
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.08);
}

.shipping-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #700909;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.shipping-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(to bottom, #700909, #ff0f2b);
    border-radius: 2px;
    margin-right: 0.5rem;
}

.shipping-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.shipping-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shipping-form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.shipping-form-group input,
.shipping-form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #fff;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shipping-form-group input::placeholder,
.shipping-form-group textarea::placeholder {
    color: #bbb;
}

.shipping-form-group input:focus,
.shipping-form-group textarea:focus {
    outline: none;
    border-color: #700909;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(112, 9, 9, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-form-group input:invalid:not(:placeholder-shown),
.shipping-form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.08);
}

.shipping-textarea {
    min-height: 80px;
    resize: vertical;
}

.shipping-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(112, 9, 9, 0.1);
}

.btn-shipping-primary,
.btn-shipping-secondary {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.btn-shipping-primary {
    background: linear-gradient(135deg, #700909 0%, #8B0B0B 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.25);
}

.btn-shipping-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(112, 9, 9, 0.35);
    background: linear-gradient(135deg, #8B0B0B 0%, #a01a1a 100%);
}

.btn-shipping-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(112, 9, 9, 0.2);
}

.btn-shipping-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-shipping-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.btn-shipping-secondary:active {
    transform: translateY(0);
}

.btn-shipping-primary i,
.btn-shipping-secondary i {
    font-size: 0.95rem;
}

/* Responsive para formulario de envío */
@media (max-width: 768px) {
    .shipping-form-grid {
        grid-template-columns: 1fr;
    }
    
    .shipping-actions {
        grid-template-columns: 1fr;
    }
    
    .shipping-header {
        padding: 1rem;
    }
    
    .shipping-section {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 640px) {
    .shipping-header {
        display: flex;
        flex-direction: column;
    }
    
    .shipping-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-phase-products {
        padding: 1rem 1.1rem 1.5rem;
    }

    .cart-modal-panel {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .cart-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .cart-items-table {
        font-size: 0.85rem;
    }
    
    .cart-items-table th,
    .cart-items-table td {
        padding: 0.5rem 0.4rem;
    }
    
    .cart-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .cart-count-badge {
        min-width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .cart-modal {
        padding: 0;
        align-items: stretch;
        justify-content: flex-end;
    }

    .cart-modal-panel {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cart-content {
        padding-bottom: 1rem;
    }

    .cart-items-wrapper {
        padding: 1rem 0.75rem;
        overflow-x: auto;
    }

    .cart-items-table {
        min-width: 520px;
    }
}

@media (min-width: 900px) {
    .cart-phase-products {
        display: grid;
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* ===== Hero container ajustable ===== */
.hero-container {
    /* Alineado al ancho de la navbar: ~800px */
    max-width: 800px; /* cambiado a 800px para coincidir con la navbar */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-container .reveal-up { width: 100%; }

/* Logo dentro del hero: limitar tamaÃ±o y hacerlo responsivo */
.hero-logo {
    /* Mostrar el logo completo dentro de la columna sin recortes */
    max-height: none;
    height: 100%;
    width: auto; /* mantener proporciÃ³n y no forzar anchura completa */
    max-width: 100%;
    object-fit: contain; /* mostrar entero sin recortar */
}

/* Hacer que la fila del hero tenga la misma altura y que el logo llene la columna izquierda
   sin deformarse: el texto (columna derecha) define la altura y la imagen ajusta su altura
   con `object-fit: contain`. En mÃ³viles volvemos a height:auto. */
.reveal-up {
    align-items: stretch !important;
}

.hero-container .tw-flex-1:first-child {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-container .tw-flex-1:last-child {
    display: flex;
    flex-direction: column;
}

/* TÃ­tulo responsivo: usa clamp para escalar entre tamaÃ±os */
.hero-title {
    /* TamaÃ±o ligeramente reducido (un par de puntos menos) */
    font-size: clamp(1.0rem, 3.0vw, 1.75rem); /* mÃ­nimo ~16px, mÃ¡ximo ~28px */
    line-height: 1.02;
    color: #000 !important; /* color negro sÃ³lido */
    background: none !important; /* anula el gradiente si existe */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #000 !important; /* for browsers using -webkit-text-fill-color */
}

.hero-subtitle, .hero-desc {
    max-width: 100%;
}

/* Colorear la lÃ­nea descriptiva justo debajo del tÃ­tulo */
.hero-subtitle {
    color: #ff0f2b !important; /* color solicitado */
}

/* Hero subtitle emphasized text in brand style */
.hero-subtitle strong {
    color: var(--btn-bg, #971c1c) !important;
    font-family: "El Messiri", sans-serif !important;
    font-weight: 700;
}

/* Clase reutilizable para textos con color accent */
.text-accent {
    color: #8F1010 !important;
}

/* Card with white background and red border (brand) */
.card-white-red {
    background: #ffffff !important;
    border: 3px solid #8F1010 !important;
    color: #000 !important;
}

/* DistribuciÃ³n: imagen a la izquierda y texto a la derecha (ajustada para evitar solapamiento) */
.hero-container .tw-flex-1:first-child {
    /* Aumentado ~20% para que el logo sea 20% mayor sin solaparse */
    flex: 0 0 54%;
    max-width: 54%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 1.25rem; /* separaciÃ³n extra para evitar contacto con el texto */
}
.hero-container .tw-flex-1:last-child {
    flex: 0 0 46%;
    max-width: 46%;
}

/* Ajustes responsivos para pantallas mÃ¡s angostas */
@media (max-width: 900px) {
    .hero-container { max-width: 720px; }
    /* ajustar proporcionalmente en pantallas medianas */
    .hero-container .tw-flex-1:first-child { flex: 0 0 53%; max-width: 53%; padding-right: 0.9rem; }
    .hero-container .tw-flex-1:last-child { flex: 0 0 47%; max-width: 47%; }
}

@media (max-width: 640px) {
    .hero-container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .hero-container .reveal-up { flex-direction: column; gap: 1rem; }
    .hero-container .tw-flex-1:first-child,
    .hero-container .tw-flex-1:last-child { flex: unset; max-width: 100%; }
    /* En mÃ³vil apilado dejamos el logo con altura automÃ¡tica pero con un tope razonable */
    .hero-logo { max-height: 260px; height: auto; object-fit: contain; }
    .hero-title { font-size: clamp(1rem, 6.5vw, 1.6rem); line-height: 1.08; }
}

/* Nota: para hacer el contenedor aÃºn mÃ¡s angosto, edita solo el valor de `.hero-container { max-width: ... }` */


html {
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
}

body {
    position: relative;
    background-color: #ffffff;
    background-image: none;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: auto;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Marcos laterales: panel izquierdo y derecho */
body::before,
body::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    pointer-events: none;
    background-repeat: repeat-y;
    background-size: 100% 100vh;
    background-position: center top;
    z-index: 0;
}

body::before {
    left: 0;
    background-image: url("../assets/general/panelizq.png");
}

body::after {
    right: 0;
    background-image: url("../assets/general/panelder.png");
}

/* Asegurar que el contenido quede por encima del marco */
body > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 70px;
    }
}

header{
    color: #000;
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.animated-collapse{
    transition: width 0.3s ease;
}


.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    color: #000;
    /* background-color: var(--header-link-hover); */
}

.primary-text-color{
    color: var(--primary-text-color);
}

.gradient-text{
    background: rgb(215,215,215);
    background: linear-gradient(90deg, rgba(215,215,215,1) 18%, rgba(136,136,136,1) 71%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section{
    /* background-image: url("../assets/images/background/dots.svg"); */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

/* SeparaciÃ³n entre navbar y hero: evitar solapamiento (ajustable) */
#hero-section {
    margin-top: 1rem; /* pequeÃ±o espacio por defecto */
}

@media (min-width: 1024px) {
    /* En pantallas grandes el navbar estÃ¡ centrado/absoluto, dejar mÃ¡s espacio */
    #hero-section {
        margin-top: 110px; /* ajustar segÃºn altura del header (190px est.) */
    }
}


#dashboard {

    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.border-gradient{
    background: rgb(219,215,213);
    background: linear-gradient(180deg, #700909, rgba(214,211,233,0) 71%);
    /* background-image: linear-gradient(90deg, #7e212ce9 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%); */
    padding: 2px;
    border-radius: 10px;
}
.border-gradient>div{
    /* background-color: var(--bg-color); */
    background-color: var(--bg-color);
    border-radius: inherit;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 5px;
    color: #fff;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    
}

/* ===== Heka Card (image + text) ===== */
.heka-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 10%;
    padding-right: 10%;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}


.heka-card{
    width: 100%;
    max-width: 680px; /* compact width */
    display: flex;
    gap: 0.75rem; /* tighter gap */
    border: none; /* remove border */
    background: transparent; /* transparent surface */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none; /* remove shadow */
    transition: transform .2s ease; /* minimal transition */
}

.heka-card:hover{
    transform: none; /* no hover lift */
}

.heka-card-image{
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* transparent background */
}

.heka-card-image img{
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    box-shadow: none; /* remove image shadow */
}

.heka-card-content{
    flex: 1 1 50%;
    min-width: 0;
    padding: 16px; /* tighter padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heka-card-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.15;
    color: var(--btn-bg, #700909); /* navbar dark red */
    margin: 0 0 0.75rem 0;
}

.heka-card-text {
    color: #000; /* black text as requested */
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .heka-card { gap: 1rem; }
    .heka-card-content { padding: 20px; }
}

@media (max-width: 640px) {
    .heka-card { flex-direction: column; }
    .heka-card-wrapper { padding-left: 5%; padding-right: 5%; }
}


.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    /* outline: none; */
    min-width: 100px;
    border: 1px solid #818080;
    /* transition: border 0.3s; */
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}


.carousel-container {
    overflow: hidden;
    /* white-space: nowrap; */
    width: 100%;
    max-width: 800px;

}
  
.carousel {
    display: flex;
    gap: 8px;
    will-change: transform;
}
  
.carousel-img img {
    height: 100%;
    width: auto;
    display: block;
}

.carousel-img {
    display: inline-block;
    margin: 0 8px;
    flex-shrink: 0;
}

.carousel-img img {
    height: 100%;  /* Alto fijo */
    width: auto; 
}
/* === Hover zoom para imágenes del carrusel (sin impacto en el flujo) === */
#centered .carousel-slide img.heka-carr-img {
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
    transform-origin: center center;
    backface-visibility: hidden;
    cursor: pointer;
}
#centered .carousel-slide img.heka-carr-img:hover,
#centered .carousel-slide img.heka-carr-img:focus-visible {
    transform: scale(1.08); /* zoom leve */
    filter: brightness(1.06) contrast(1.04);
    z-index: 2; /* elevar sobre vecinos si se superpone */
}
#centered .carousel-slide img.heka-carr-img:active {
    transform: scale(1.04); /* ligera reducción al click para feedback */
}

/* Efecto de zoom en móvil para imágenes del carrusel */
.heka-carr-img.heka-img-zoomed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.8) !important;
    z-index: 9999 !important;
    max-width: 92vw !important;
    max-height: 92vh !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6) !important;
    cursor: zoom-out !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    filter: brightness(1.1) !important;
}

/* Overlay oscuro detrás de la imagen ampliada */
body:has(.heka-img-zoomed)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .heka-carr-img:not(.heka-img-zoomed) {
        cursor: zoom-in;
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .carousel {
        gap: 6px;
        animation: scroll 10s linear infinite;
    }
}


.footer-link{
    color: #000;
    transition: color 0.3s;
}

.footer-link:hover{
    color: #000;
    text-decoration: underline;
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: #000;
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: #000;
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}

.faq-accordion .active,
.faq-accordion:hover { /* Mantener selector para futura personalización */ color: inherit; }

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #fff;
        color: #000;
        overflow-y: auto;
        box-shadow: 3px 0px 3px 2px #9f9f9f;
    }

    .header-links{
        color: #000;
    }
    
}

/* Estilos personalizados para la sombra que tenÃƒÂ­as */
/* La sombra original estaba en #dashboard. Ahora la aplicamos a las imÃƒÂ¡genes dentro de los slides */
.swiper-slide img {
    box-shadow: rgb(112, 9, 9) 0px 15px 25px -5px;
}

/* Aseguramos que el swiper-slide ocupe todo el espacio de su contenedor */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Muy importante: el slide debe tomar la altura del swiper-wrapper */
}

/* Estilos para el div que envuelve la imagen dentro del slide */
/* Aseguramos que tome el 100% del ancho y alto del slide */
.swiper-slide > div {
    width: 100%; /* Ocupa todo el ancho del swiper-slide */
    height: 100%; /* Ocupa toda la altura del swiper-slide */
    display: flex; /* Para centrar la imagen */
    justify-content: center;
    align-items: center;
    /* Tus clases de max-width siguen siendo importantes aquÃƒÂ­ */
}

@media (max-width: 768px) {
    .swiper-slide > div {
        max-width: 100%; /* En pantallas pequeÃƒÂ±as, ocupa todo el ancho */
    }
}

/* Opcional: Estilos para las flechas de navegaciÃƒÂ³n si se ven pequeÃƒÂ±as o no estÃƒÂ¡n donde quieres */
.swiper-button-next,
.swiper-button-prev {
    color: #000; /* Color de las flechas */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo para que se vean mejor */
    border-radius: 50%; /* Redondea el fondo */
    padding: 10px; /* Espaciado interno */
    width: 40px; /* Ancho del botÃƒÂ³n */
    height: 40px; /* Alto del botÃƒÂ³n */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
/* Ajustar la posiciÃƒÂ³n si es necesario, los !important pueden ser necesarios para anular Swiper por defecto */
.swiper-button-prev {
    left: 10px !important; /* Ajusta la posiciÃƒÂ³n de la flecha izquierda */
}
.swiper-button-next {
    right: 10px !important; /* Ajusta la posiciÃƒÂ³n de la flecha derecha */
}

/* Styles moved from index.html (minimal subset + helpers)
   - Keep helper classes here; full original head styles were removed
     from the HTML and/or kept in tailwind/build where appropriate.
*/

/* Button background helper used where inline style previously existed */
.btn--primary {
    background: var(--btn-bg) !important;
}

/* Responsive embedded video wrapper (16:9) */
.embed-16by9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

/* Full styles moved from the original <style> block in index.html.
   Slightly cleaned (fixed a stray comment) so they are valid here.
*/

:root {
    --btn-bg: #700909;
}

.outline {
    /* oculto antiguo contorno del navbar */
    display: none !important;
}

.rect {
    display: none !important;
}

.nav {
    position: relative;
    height: auto; /* permitir que tome la altura real de los botones */
}

/* ===== Logo fuera del flujo del nav ===== */
header { position: relative; }
.site-logo {
    position: absolute;
    top: 8px;
        left: 40px; /* desplazado a la derecha */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 6px;
    z-index: 25;
    text-decoration: none;
}
.site-logo .logo-container {
    height: 72px; /* altura ampliada */
    max-width: 230px; /* ancho mÃ¡ximo controlado */
    width: auto;
    display: flex;
    align-items: center;
}
.site-logo .logo-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

/* Empujar contenido interno del nav para no quedar debajo del logo */
    .with-logo { padding-left: 280px; }

@media (max-width: 1024px) {
    .site-logo { top: 12px; left: 34px; }
    .site-logo .logo-container { height: 64px; max-width: 200px; }
    .with-logo { padding-left: 240px; }
}
@media (max-width: 768px) {
    .site-logo { top: 14px; left: 24px; }
    .site-logo .logo-container { height: 56px; max-width: 180px; }
    .with-logo { padding-left: 0; } /* en mÃ³vil el nav se reorganiza, no necesita offset */
}



/*------- Estilos para la barra de navegacion ---------*/
.container {
    inset: 0;
    background: transparent; /* el fondo ahora lo maneja .nav */
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.75em;
}

.btn-alt {
    padding: 0.4rem 1rem; /* reducir para coincidir con la altura de la nav */
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.15s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-alt:hover { border-radius: 5px; transform: translateY(-4px); }

/* Animated red underline for nav buttons (and any element with .nav-anim) */
.btn-alt::after,
.nav-anim::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    height: 3px;
    width: 0%;
    background: #ff0f2b; /* lÃ­nea roja animada */
    border-radius: 2px;
    transition: width 220ms cubic-bezier(.2,.9,.3,1), bottom 180ms ease;
}

.btn-alt:hover::after,
.nav-anim:hover::after {
    width: 36px; /* pequeÃ±a lÃ­nea centrada */
    bottom: -8px;
}

/* Helper class to apply nav-like animation to other buttons (e.g., Contactame) */
.nav-anim {
    position: relative;
    color: #fff !important;
    transition: transform 0.22s ease, color 0.15s ease;
}
.nav-anim:hover { transform: translateY(-4px); }

/* Justificar texto del pÃ¡rrafo del hero */
.hero-desc p {
    text-align: justify;
    text-justify: inter-word;
}



/* Ocultar menÃº mÃ³vil en escritorio */
.mobile-menu,
.mobile-overlay {
    display: none;
}

/* ===== ESTILOS MEJORADOS PARA MÃƒâ€œVIL ===== */
@media (max-width: 767px) {

    /* Mostrar elementos mÃƒÂ³viles solo en mÃƒÂ³vil */
    .mobile-menu,
    .mobile-overlay {
        display: block;
    }

    /* Menú hamburguesa mejorado */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: radial-gradient(circle at top left, #8F1010 0%, #300707 40%, #130304 100%);
        backdrop-filter: blur(10px);
        z-index: 9999;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.04));
    }

    .mobile-menu-title {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 600;
        letter-spacing: .03em;
    }

    .close-btn {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    .mobile-menu-content {
        padding: 26px 20px 30px;
    }

    .mobile-menu-item {
        display: block;
        color: #fdfdfd;
        text-decoration: none;
        padding: 16px 20px;
        margin: 8px 0;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.16);
        position: relative;
        overflow: hidden;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .mobile-menu-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .mobile-menu-item:hover::before {
        left: 100%;
    }

    .mobile-menu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
        transform: translateX(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-item:active {
        transform: translateX(10px) scale(0.98);
    }

    /* Overlay para cerrar el menÃƒÂº */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* BotÃƒÂ³n hamburguesa animado */
    .hamburger-btn {
        position: relative;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10000;
    }

    .hamburger-line {
        display: block;
        width: 100%;
        height: 3px;
        background: #671515;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* En móvil, fija el botón hamburguesa a la derecha del header */
    @media (max-width: 768px) {
        header {
            position: relative;
        }

        .hamburger-btn {
            position: absolute;
            right: 1.25rem;
            top: 1.75rem;
        }
    }

    /* AnimaciÃƒÂ³n de entrada para los elementos del menÃƒÂº */
    .mobile-menu-item {
        opacity: 0;
        transform: translateX(50px);
        animation: slideInFromRight 0.5s ease forwards;
    }

    .mobile-menu.active .mobile-menu-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mobile-menu.active .mobile-menu-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .mobile-menu.active .mobile-menu-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .mobile-menu.active .mobile-menu-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .mobile-menu.active .mobile-menu-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    @keyframes slideInFromRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Ocultar elementos originales en mÃƒÂ³vil */
    #navbar-sticky .container {
        display: none;
    }
}

/* Clases de Tailwind personalizadas */
.tw-flex {
    display: flex;
}

.tw-gap-4 {
    gap: 1rem;
}

.tw-gap-3 {
    gap: 0.75rem;
}

.tw-place-items-center {
    place-items: center;
}

.tw-h-\[60px\] {
    height: 60px;
}

.tw-max-w-\[100px\] {
    max-width: 100px;
}

.tw-object-contain {
    object-fit: contain;
}

.tw-h-full {
    height: 100%;
}

.tw-w-full {
    width: 100%;
}

.tw-px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.tw-py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.tw-transition-transform {
    transition-property: transform;
}

.tw-duration-\[0\.3s\] {
    transition-duration: 0.3s;
}

.hover\\:tw-translate-x-2:hover {
    transform: translateX(0.5rem);
}

.dark\\:tw-invert {
    filter: invert(1);
}

.tw-max-w-lg\\:tw-px-z {
    padding-left: 0;
    padding-right: 0;
}

.tw-max-w-lg\\:tw-mr-auto {
    margin-right: auto;
}

.tw-top-3 {
    top: 0.75rem;
}

.tw-z-21 {
    z-index: 21;
}

.tw-h-\[190px\] {
    height: 190px;
}

.tw-bg-opacity-0 {
    background-color: transparent;
}

.lg\\:tw-justify-around {
    justify-content: space-around;
}

.tw-p-\[4px\] {
    padding: 4px;
}

.lg\\:tw-w-full {
    width: 100%;
}

/*Modifica el ancho del contenedor del carrusel*/
.swiper-modify {
    width: 50vw;
    border-radius: 10px
}

/* ===== Video + Text centered layout (custom) ===== */
.video-text-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem; /* space between video and text */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60vh; /* vertical centering reference */
}
.video-text-row.reverse { flex-direction: row-reverse; }

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 850px; /* ancho original de referencia */
    width: auto;
    max-height: none;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(112,9,9,0.45), 0 4px 10px rgba(0,0,0,0.35);
}
/* 40% mÃ¡s pequeÃ±o (60% del ancho original 850px â‰ˆ 510px) */
.video-wrapper.scale-down { max-width: 300px; }
.video-wrapper video {
    width: 100%; /* escala horizontal dentro del lÃ­mite */
    height: auto; /* mantener proporciones originales */
    object-fit: contain; /* evita recortes */
    display: block;
}

.video-text-col {
    display: flex;
    flex-direction: column;
    max-width: 450px;
    width: 100%;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .video-text-row { gap: 3rem; }
}
@media (max-width: 900px) {
    .video-text-row, .video-text-row.reverse { flex-direction: column; min-height: unset; }
    .video-wrapper { max-width: 100%; width: 100%; }
    .video-text-col { max-width: 650px; }
}
@media (max-width: 640px) {
    .video-text-row { gap: 2rem; }
    .video-wrapper { border-radius: 10px; }
}



/* Color para los sÃ­mbolos decorativos (âœ§) dentro de los h4 */
h4 > .tw-text-2xl[aria-hidden="true"] {
    color: #8F1010;
    margin-right: 0.5rem;
    line-height: 1; /* mantener alineaciÃ³n con el texto */
}

/* Aplicar color de marca a h4 con clase .tw-text-dorado */
h4.tw-text-xl.tw-font-medium.tw-text-dorado {
    color: #8F1010;
}

/* FAQ: texto blanco dentro de los contenedores y '+' en color de marca */
.faq, .faq .content, .faq .faq-accordion { color: #ffffff !important; }
.faq .faq-accordion .bi-plus,
.faq .faq-accordion i.bi { color: #8F1010 !important; }

/* ===== Global light theme overrides ===== */
body.tw-bg-black { background-color: #fff !important; }
body.tw-text-white { color: #000 !important; }

/* Forzar color de subtÃ­tulo dentro del hero aunque el body tenga color global */
body.tw-text-white .hero-subtitle {
    color: #ff0f2b !important;
}

.tw-text-gray-200,
.tw-text-gray-300,
.tw-text-gray-400 { color: #000 !important; }

.tw-border-outlineColor { border-color: #000 !important; }
.faq { border-color: #000 !important; }

/* ===== Navbar mejorada (sin degradado global) ===== */
.nav {
    /* Fondo negro, detalles (bordes / lÃ­nea) seguirÃ¡n siendo rojos */
    --nav-bg: rgba(0,0,0,0.97);
    --nav-border: rgba(112, 9, 9, 0.22); /* borde rojo translÃºcido */
    --nav-highlight: rgba(255,255,255,0.35);
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    /* mÃ¡s compacto: menor altura vertical para un aspecto mÃ¡s delgado */
    padding: 0.28rem 0.9rem;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 8px; /* pill mÃ¡s compacto */
    box-shadow: 0 8px 24px -6px rgba(112,9,9,0.45), 0 2px 6px rgba(0,0,0,0.3);
    backdrop-filter: blur(6px); /* vidrio sutil */
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

/* Center the base image across the full page */
.hero-base-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.base-image {
    max-width: 320px; /* change this value to adjust initial size */
    width: auto;
    height: auto;
    display: block;
}

/* Default sizing for the hero base image (responsive) */
#hero-base-image {
    max-width: 420px; /* change this value as needed */
    width: 100%; /* allows it to scale down on small viewports */
    height: auto;
    display: block;
}

/* Centrar la barra horizontalmente en pantallas grandes */
@media (min-width: 1024px) {
    /* hacer que la .nav se posicione respecto al contenedor interior (donde estÃ¡n logo y botÃ³n)
       para que queden todos alineados en Y */
    header { position: relative; }
    header .max-w-screen-xl { position: relative; }
    header .max-w-screen-xl .nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 50;
        /* aumentar el ancho mÃ¡ximo y permitir que ocupe mÃ¡s espacio lateral */
        max-width: 800px;
        /* en pantallas anchas, tomar hasta el 96% del viewport pero no mÃ¡s de max-width */
        width: min(96%, 1400px);
    }
}

/* Brillo dinÃ¡mico suave que se activa al hover de la barra completa */
.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), transparent 60%);
    /* control via CSS variable so JS can move/turn on the glow */
    opacity: var(--nav-glow-opacity, 0);
    transition: opacity 0.35s ease, background-position 0.2s linear;
    pointer-events: none;
}
/* removed global :hover activation - glow will be controlled per-item via JS */

/* Items dentro de la barra */
.nav .header-links,
.nav a,
.nav .btn-alt {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    /* padding interior mÃ¡s pequeÃ±o para compactar verticalmente */
    padding: 0.30rem 0.75rem;
    border-radius: 34px;
    isolation: isolate; /* para pseudo-elementos */
    transition: color .35s ease, transform .35s ease;
    animation: nav-link-in .6s ease forwards;
    opacity: 0; /* animaciÃ³n de entrada */
}

/* Contenedor del texto dentro del item: serÃ¡ lo que elevemos al hacer hover */
.nav .nav-text {
    display: inline-block;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), color 0.28s ease;
    will-change: transform;
}

/* Al hacer hover elevamos solo el texto (no el fondo/pÃ­ldora) */
.nav .header-links:hover .nav-text,
.nav a:hover .nav-text,
.nav .btn-alt:hover .nav-text {
    transform: translateY(-4px);
}

/* AnimaciÃ³n escalonada por orden natural */
.nav .header-links:nth-child(n),
.nav a:nth-child(n),
.nav .btn-alt:nth-child(n) { animation-delay: calc(.05s * var(--i, 1)); }

@keyframes nav-link-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* Background animado (sin degradado global, solo efecto puntual) */
.nav .header-links::before,
.nav a::before,
.nav .btn-alt::before {
    /* quitar brillo/sombra por opciÃ³n: dejamos el pseudo-elemento inactivo */
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transform: none;
    border-radius: inherit;
    transition: none;
    z-index: -1;
}

/* Subrayado fino que se dibuja desde el centro */
.nav .header-links::after,
.nav a::after,
.nav .btn-alt::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 60%;
    height: 2px;
    /* LÃ­nea animada: usar el rojo de la marca */
    background: var(--accent);
    opacity: 0.98;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
    border-radius: 2px;
}

.nav .header-links:hover::after,
.nav a:hover::after,
.nav .btn-alt:hover::after { transform: translateX(-50%) scaleX(1); }

/* Hover / focus refinado */
.nav .header-links:hover,
.nav a:hover,
.nav .btn-alt:hover {
    /* eliminar sombra/brillo en hover; elevar texto sutilmente */
    transform: translateY(-6px);
    box-shadow: none !important;
}
.nav .header-links:focus-visible,
.nav a:focus-visible,
.nav .btn-alt:focus-visible {
    outline: 2px solid rgba(255,255,255,0.55);
    outline-offset: 2px;
}

/* Estado activo (puedes asignar la clase .active en HTML) */
.nav .active { color: #fff; }
.nav .active::after { transform: translateX(-50%) scaleX(1); }

/* Ajustes responsivos: menor padding en viewports estrechos */
@media (max-width: 768px) {
    .nav { padding: 0.35rem 0.6rem; gap: 0.2rem; }
    .nav .header-links,
    .nav a,
    .nav .btn-alt { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
}


/* ===== Heka Contact Button (WhatsApp) ===== */
.heka-contact-btn{
    display:inline-flex;
    align-items:center;
    gap:0.65rem;
    padding:0.6rem 0.95rem;
    background: linear-gradient(90deg, var(--btn-bg) 0%, #ff0f2b 100%);
    color:#fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    box-shadow: 0 10px 28px -8px rgba(143,16,16,0.28);
    transition: transform .22s cubic-bezier(.2,.9,.2,1), box-shadow .22s ease, filter .22s ease, opacity .18s;
    text-decoration: none;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}
.heka-contact-btn .heka-whatsapp-svg{ /* circular icon background */
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background: rgba(255,255,255,0.06);
    transition: background .22s ease, transform .22s ease;
}
.heka-contact-btn .btn-whatsapp-icon{ /* the img inside */
    width:18px;
    height:18px;
    display:block;
}
.heka-contact-text{ line-height:1; }

.heka-contact-btn:hover{
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 44px -12px rgba(143,16,16,0.32);
}
.heka-contact-btn:hover .heka-whatsapp-svg{
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px) scale(1.02);
}
.heka-contact-btn:hover .btn-whatsapp-icon{
    transform: rotate(-8deg);
}
.heka-contact-btn:active{ transform: translateY(-1px) scale(.995); }
.heka-contact-btn:focus-visible{ outline: 3px solid rgba(255,15,43,0.12); outline-offset:3px; }

@keyframes heka-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,15,43,0.14); }
    70% { box-shadow: 0 0 0 10px rgba(255,15,43,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,15,43,0); }
}
.heka-contact-btn:hover .heka-whatsapp-svg{ animation: heka-pulse 1.6s ease-out 1; }

@media (max-width: 640px){
    .heka-contact-btn{ padding:0.5rem 0.75rem; gap:0.5rem; }
    .heka-contact-btn .heka-whatsapp-svg{ width:22px; height:22px; }
    .heka-contact-btn .btn-whatsapp-icon{ width:16px; height:16px; }
    .heka-contact-text{ font-size:0.98rem; }
}


/* ===== Carousel helpers (FlyonUI block) ===== */
.heka-carr-img {
    display: block;
    /* Fallback seguro: nunca más grande que su contenedor */
    max-width: 100%;
    height: auto;
    /* Limitar altura por si el JS de escalado no corre o se retrasa */
    max-height: 420px;
    object-fit: contain;
}



/* ===== Estilos para la p�gina de cursos ===== */
/* Intro card: narrow and centered, with centered content */
.cursos-intro-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.cursos-intro-card .img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}
.cursos-intro-card .text-col {
    text-align: center;
    padding-left: 0 !important;
}
@media (max-width: 640px){
    .cursos-intro-card { max-width: 95%; }
}

/* Filtros de cursos */
.filter-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* ===== Tienda (productos) ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; width: 100%; max-width: 1200px; margin: 0 auto; }

.product-card {
    background: linear-gradient(145deg,#0d0d0f,#171719 55%,#1d1d1f);
    border: 1px solid rgba(112,9,9,.35);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    isolation: isolate;
    cursor: pointer;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(112,9,9,0.3), 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--btn-bg, #700909);
}

.product-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 35%, rgba(112,9,9,.15), transparent 65%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover:before {
    opacity: 1;
}

.product-card[data-out-of-stock="true"] {
    opacity: 0.7;
}

/* Wrapper de imagen del producto */
.product-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0c0d;
    border: 1px solid rgba(112,9,9,.35);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* Badges de disponibilidad */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-badge--available {
    background: rgba(76, 175, 80, 0.85);
    color: #fff;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.product-badge--outofstock {
    background: rgba(244, 67, 54, 0.85);
    color: #fff;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Header del producto (título y precio) */
.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.product-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #ff3344;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease;
    font-family: 'El Messiri', sans-serif;
    text-shadow: 0 1px 4px rgba(255, 51, 68, 0.3);
}

.product-card:hover .product-title {
    color: #ff5566;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff3344;
    cursor: pointer;
    font-family: 'El Messiri', sans-serif;
    text-shadow: 0 2px 6px rgba(255, 51, 68, 0.4);
}

/* Descripción del producto */
.product-description {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.25s ease;
    font-family: 'El Messiri', sans-serif;
}

.product-card:hover .product-description {
    color: #d0d0d0;
}

/* Acciones (botones) */
.product-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.btn-product-view {
    flex: 1;
    background: #ff3344;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(255, 51, 68, 0.3);
}

.btn-product-view:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(255, 51, 68, 0.5);
}

.btn-product-view i {
    font-size: 0.9rem;
}

.btn-product-consult {
    background: rgba(255, 51, 68, 0.15);
    border: 1.5px solid rgba(255, 51, 68, 0.5);
    color: #ff3344;
    border-radius: 8px;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-product-consult:hover {
    background: #ff3344;
    border-color: #ff3344;
    transform: scale(1.05);
    color: #fff;
}

.btn-product-consult i {
    font-size: 1.1rem;
}

.product-card:focus-visible {
    outline: 3px solid rgba(255, 15, 43, 0.4);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .product-img-wrapper {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}

/* ===== Overlay Frame Card (marco.png) ===== */
.frame-card { position: relative; display: block; width: 405px; max-width: 100%; }
@media (max-width: 767px){
    .frame-card { width: 288px; }
    /* En móvil ocultamos el marco para que solo se vea el texto */
    .frame-img { display: none; }
}
.frame-img { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: contain; z-index: 0; pointer-events: none; transform: translate(-50%, -50%) scale(1.26); }
.frame-img.frame-img--productos { transform: translate(-50%, -50%) scale(1.34); }
.frame-content { position: relative; z-index: 1; background: transparent !important; border: 0 !important; border-radius: 0 !important; }

/* ===== Modal de Producto (estética mejorada HEKA) ===== */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: none;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}

.product-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 900px;
    background-image: url('../assets/general/fondomodal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    border: 2px solid rgba(112, 9, 9, 0.4);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(112, 9, 9, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.product-modal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    z-index: 0;
    pointer-events: none;
}

.product-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(112, 9, 9, 0.15);
    border: 1px solid rgba(112, 9, 9, 0.3);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    z-index: 10;
}

.product-modal-close:hover {
    background: var(--btn-bg, #700909);
    border-color: var(--btn-bg, #700909);
    transform: rotate(90deg);
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Sección de imagen */
.product-modal-img-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0b;
    border: 1px solid rgba(112, 9, 9, 0.35);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    max-width: 380px;
}

.product-modal-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    animation: slideInLeft 0.4s ease;
}

/* Sección de información */
.product-modal-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-modal-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideInRight 0.4s ease;
}

.product-modal-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.25;
    color: #ff3344;
    font-weight: 700;
    font-family: 'El Messiri', sans-serif;
    text-shadow: 0 2px 8px rgba(255, 51, 68, 0.4);
}

.product-modal-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff3344;
    text-shadow: 0 3px 12px rgba(255, 51, 68, 0.5);
    font-family: 'El Messiri', sans-serif;
}

/* Separador visual */
.product-modal-divider {
    display: none;
}

.product-modal-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: 'El Messiri', sans-serif;
}

/* Acciones del modal */
.product-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-modal-primary {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(90deg, #700909, #ff0f2b);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 15, 43, 0.5);
}

.btn-modal-primary i {
    font-size: 1.1rem;
}

.btn-modal-secondary {
    flex: 1;
    min-width: 140px;
    background: rgba(112, 9, 9, 0.2);
    color: #fff;
    border: 1.5px solid rgba(112, 9, 9, 0.5);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-secondary:hover {
    background: var(--btn-bg, #700909);
    border-color: var(--btn-bg, #700909);
    transform: translateY(-2px);
}

.pm-note {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: 'El Messiri', sans-serif;
}

.pm-note i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Animaciones */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-modal-img {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 640px) {
    .product-modal-panel {
        max-height: 90vh;
        width: calc(100% - 1rem);
    }
    
    .product-modal-content {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .product-modal-title {
        font-size: 1.4rem;
    }
    
    .product-modal-price {
        font-size: 1.3rem;
    }
    
    .product-modal-actions {
        flex-direction: column;
    }
    
    .btn-modal-primary,
    .btn-modal-secondary {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .product-modal-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 0;
    }

    .product-modal-content {
        padding: 1rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .product-modal-img {
        padding: 1rem;
        aspect-ratio: 1 / 1;
    }

    .product-modal-title {
        font-size: 1.3rem;
    }

    .product-modal-price {
        font-size: 1.2rem;
    }
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    transform: scale(1.05);
}

/* Cards de cursos/talleres */
.course-card {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

.course-card:hover {
    box-shadow: 0 12px 24px rgba(143, 16, 16, 0.25) !important;
}

/* Grid dinámica de cursos/talleres (2 columnas en >=768px) */
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }

/* Wrapper de imagen dentro de cada card */
.course-img-wrapper { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .35); }
.course-img-wrapper img { transition: transform .45s ease; }
.course-card:hover .course-img-wrapper img { transform: scale(1.03); }

/* ======== Refinamiento de tarjetas de cursos/talleres (estética index) ======== */
.courses-grid .course-card {
    background: linear-gradient(145deg,#0d0d0f,#171719 55%,#1d1d1f);
    border: 1px solid rgba(112,9,9,.35);
    border-radius: 14px;
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    isolation: isolate;
    cursor: pointer;
    min-height: 100%;
}
.courses-grid .course-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 35%, rgba(112,9,9,.18), transparent 65%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 0;
}
.courses-grid .course-card:hover:before { opacity: 1; }
.courses-grid .course-card h4 { margin: 0; font-size: 1.05rem; line-height: 1.15; }
.courses-grid .course-card small { font-size: .65rem; text-transform: uppercase; letter-spacing:.5px; }
.courses-grid .course-card .meta-row { display:flex; flex-wrap:wrap; gap:.4rem .75rem; margin-top:.15rem; }
.courses-grid .course-card .meta-chip {
    background: rgba(112,9,9,.22);
    color: #fff;
    font-size: .6rem;
    font-weight: 500;
    padding: .28rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,15,43,.3);
}
.courses-grid .course-card:focus-visible { outline: 3px solid rgba(255,15,43,.4); outline-offset:3px; }

/* Imagen dentro de la tarjeta: relación fija y ajuste a contenedor */
.course-img-wrapper {
    aspect-ratio: 4 / 3;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0c0c0d;
    border: 1px solid rgba(112,9,9,.45);
    border-radius:10px;
    overflow:hidden;
}
.course-img-wrapper img {
    width:100%; height:100%; object-fit:cover; object-position:center; max-width:none;
}
.courses-grid .course-card:hover .course-img-wrapper img { transform: scale(1.06); filter:brightness(1.05); }

/* Badges de tipo (curso/taller) dentro del título opcional */
.item-type-badge {
    display:inline-block;
    font-size:.55rem;
    font-weight:600;
    padding:.18rem .45rem;
    margin-right:.4rem;
    border-radius:4px;
    background:linear-gradient(90deg,#700909,#ff0f2b);
    color:#fff;
    letter-spacing:.75px;
}

/* ===== Public calendar (Lecturas) ===== */
.public-calendar { gap: .75rem; }
.public-calendar .calendar-wrapper { width:100%; max-width: 1024px; background:#ffffff; border-radius:14px; box-shadow:0 18px 40px rgba(0,0,0,0.12); padding:1rem; }
.public-calendar .calendar-head { text-align: center; }
.public-calendar .calendar-title { margin: 0; font-size: 1.6rem; color: var(--btn-bg, #700909); }
.public-calendar .calendar-sub { margin: .15rem 0 0; font-size: .95rem; color: #000; font-weight: 600; }
.public-calendar .calendar-error { background: #ffecec; border:1px solid #cc3344; color:#a0212e; padding:.6rem .8rem; border-radius:10px; font-size:.85rem; }
.public-calendar .calendar-legend { display:flex; gap: .9rem; align-items:center; justify-content:center; margin:.6rem 0 .2rem; color:#d9d9d9; font-size:.8rem; }
.public-calendar .legend-item { display:flex; align-items:center; gap:.35rem; }
.public-calendar .dot { width:10px; height:10px; border-radius:50%; display:inline-block; border:1px solid rgba(0,0,0,.15); }
.public-calendar .dot-available { background:#d9ffe0; border-color:#6bc483; }
.public-calendar .dot-blocked { background:#fff3d9; border-color:#c4a56b; }
.public-calendar .weekday-grid { display:grid; grid-template-columns: repeat(7, 1fr); gap:.75rem; width:100%; max-width: 1024px; margin: .25rem auto 0; }
.public-calendar .weekday { text-align:center; font-weight:700; color:#444; font-size:.82rem; }
.public-calendar .calendar-grid { display:grid; grid-template-columns: repeat(7, 1fr); gap:.75rem; width:100%; }
.public-calendar .day-card { background:#fff; color:#000; border:1px solid rgba(112,9,9,.18); border-radius:12px; padding:.6rem; min-height:110px; display:flex; flex-direction:column; justify-content:space-between; box-shadow:0 8px 24px -12px rgba(0,0,0,.25); transition:.18s ease; }
.public-calendar .day-card.day-card--empty { background:transparent; border:none; box-shadow:none; pointer-events:none; }
.public-calendar .day-card:hover { border-color: var(--btn-bg, #700909); box-shadow:0 14px 32px -14px rgba(112,9,9,.45); transform: translateY(-2px); }
.public-calendar .day-card.is-blocked { background: var(--btn-bg, #700909); color:#fff; border-color: rgba(112,9,9,.9); }
.public-calendar .day-card.is-blocked .month, 
.public-calendar .day-card.is-blocked .status-label, 
.public-calendar .day-card.is-blocked .iso-date { color:#fff; }

/* Ajuste específico para móviles: compactar calendario y permitir scroll horizontal si es necesario */
@media (max-width: 640px) {
    .public-calendar .calendar-wrapper {
        padding: 0.75rem 0.5rem;
        box-shadow: 0 10px 26px rgba(0,0,0,0.14);
    }

    .public-calendar .calendar-title {
        font-size: 1.3rem;
    }

    .public-calendar .calendar-sub,
    .public-calendar .calendar-note {
        font-size: 0.8rem;
    }

    .public-calendar .weekday-grid,
    .public-calendar .calendar-grid {
        gap: 0.35rem;
    }

    .public-calendar .weekday {
        font-size: 0.7rem;
    }

    .public-calendar .day-card {
        padding: 0.35rem;
        min-height: 90px;
    }

    .public-calendar .day-card .dom {
        font-size: 0.9rem;
    }

    .public-calendar .day-card .month,
    .public-calendar .day-card .status-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy estrechas, permitir desplazamiento horizontal del grid completo */
    .public-calendar .calendar-wrapper {
        overflow-x: auto;
    }

    .public-calendar .weekday-grid,
    .public-calendar .calendar-grid {
        min-width: 520px;
    }
}
.public-calendar .day-card.is-blocked .dot-blocked { background:#fff3d9; border-color:#fff; }
.public-calendar .day-top { display:flex; align-items:baseline; gap:.4rem; color: var(--btn-bg, #700909); }
.public-calendar .day-card.is-blocked .day-top { color:#fff; }
.public-calendar .day-top .dom { font-size:1.35rem; font-weight:800; line-height:1; }
.public-calendar .day-top .month { font-size:.8rem; color:#444; font-weight:600; }
.public-calendar .day-card.is-blocked .day-top .month { color:#fff; }
.public-calendar .day-status { display:flex; align-items:center; gap:.4rem; color:#333; font-size:.8rem; }
.public-calendar .badge { display:inline-block; padding:.18rem .5rem; border-radius:999px; font-size:.7rem; font-weight:700; letter-spacing:.3px; white-space:nowrap; }
.public-calendar .badge-available { background:#d9ffe0; color:#137a2f; border:1px solid #6bc483; }
.public-calendar .badge-blocked { background:#fff3d9; color:#7a4e13; border:1px solid #c4a56b; }
.public-calendar .iso-date { font-size:.7rem; color:#666; }
.public-calendar .calendar-note { margin-top:.6rem; color:#cfcfcf; font-size:.85rem; text-align:center; }

@media (max-width: 900px){
    .public-calendar .calendar-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px){
    .public-calendar .calendar-grid { grid-template-columns: repeat(3, 1fr); gap:.6rem; }
    .public-calendar .day-card { min-height: 110px; padding:.5rem; }
}

/* Aviso de próxima lectura (lectura.php) */
.lectura-notice-card {
    margin-top: 1.5rem;
    padding: 1.1rem 1.4rem 1.3rem;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 243, 230, 0.92), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(112, 9, 9, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: #111111;
}

/* Aviso dentro del modal de cursos/talleres cuando la inscripción está pagada */
.course-modal-notice-card {
    margin-top: 1.5rem;
    padding: 1.25rem 1.6rem 1.4rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(16, 16, 18, 0.98), rgba(34, 34, 38, 0.98));
    border: 1px solid rgba(255, 228, 196, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
    color: #f5f5f5;
}

.course-modal-notice-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffe4b5;
}

.course-modal-notice-header h3 {
    margin: 0;
    font-family: 'El Messiri', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.course-modal-notice-header i {
    font-size: 1rem;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #ffba7a, #c77d1a);
    color: #151515;
}

.course-modal-notice-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
}

.course-modal-notice-card strong {
    color: #ffd27b;
}

.course-modal-zoom-link {
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #700909, #ff0f2b);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 26px rgba(255, 15, 43, 0.35);
    transition: all 0.25s ease;
}

.course-modal-zoom-link:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 15, 43, 0.35);
}

.course-modal-notice-foot {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: #d0d0d0;
}

.lectura-notice-header h3 {
    margin: 0;
    font-family: 'El Messiri', sans-serif;
    letter-spacing: 0.3px;
}

.lectura-notice-card p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

/* Tercer color de realce para textos en negrita dentro del aviso */
.lectura-notice-card strong,
.lectura-notice-card .tw-font-semibold {
    color: #c77d1a;
}

.lectura-notice-payment {
    width: 100%;
    max-width: 440px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(112, 9, 9, 0.24);
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.28);
    padding: 0.85rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lectura-notice-payment p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #222222;
}

#lectura-paypal-button-container {
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .lectura-notice-card {
        padding: 1rem 1rem 1.1rem;
    }
}

/* Modal de calendario: fondo decorativo (fondomodal.png) */
.calendar-modal-panel {
    /* Ruta relativa desde css/index.css */
    background-image: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.86)), url('../assets/general/fondomodal.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    border-radius: 14px;
    border: 1px solid rgba(112,9,9,0.12);
}

@media (max-width: 640px) {
    .calendar-modal-panel { background-attachment: scroll; background-position: center top; }
}

/* Modal refinado de cursos/talleres */
.course-modal { position:fixed; inset:0; z-index:9997; background:rgba(0,0,0,.65); backdrop-filter: blur(4px); display:none; padding:1.25rem; }
.course-modal-content {
    background:#0d0d0f;
    border:1px solid rgba(112,9,9,.45);
    border-radius:18px;
    max-width:760px;
    width:100%;
    margin:auto;
    padding:1.4rem 1.4rem 1.55rem;
    box-shadow:0 40px 85px -30px rgba(0,0,0,.65);
    color:#fff;
    animation: modalPop .28s ease;
}
.course-modal-content h2 { font-size:1.6rem; margin:0 0 .45rem; font-family: 'El Messiri', sans-serif; color: #ff3344; }
.course-modal-content p { font-size:.85rem; line-height:1.35; color:#ffffff; font-family: 'El Messiri', sans-serif; }
.course-modal-content .detail-grid { display:grid; gap:.6rem 1.2rem; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); margin-top:.65rem; }
.course-modal-content .detail-grid div { font-size:.7rem; line-height:1.15; background:#141416; padding:.5rem .55rem; border-radius:8px; border:1px solid rgba(112,9,9,.35); }
.course-modal-content .detail-grid div strong { display:block; font-size:.55rem; font-weight:600; text-transform:uppercase; letter-spacing:.65px; margin-bottom:.15rem; color:#ff3344; font-family: 'El Messiri', sans-serif; }
.course-modal-content .modal-img-pane { width:300px; max-width:300px; flex:0 0 auto; }
.course-modal-content .modal-img-wrapper { width:300px; height:400px; background:#121213; border:1px solid rgba(112,9,9,.5); border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.course-modal-content .modal-img-wrapper img { width:100%; height:100%; object-fit:cover; }
.course-modal-content .contact-row { margin-top:1rem; }
.course-modal-content #courseModalClose { position:absolute; top:.6rem; right:.6rem; background:transparent; color:#ff5a6f; font-size:1.55rem; line-height:1; border:none; cursor:pointer; padding:.25rem; border-radius:6px; }
.course-modal-content #courseModalClose:hover { color:#ff0f2b; }
.course-modal-content #courseModalClose:focus-visible { outline:2px solid rgba(255,15,43,.5); outline-offset:2px; }
@media (max-width:640px){
  .course-modal-content { padding:1rem 1rem 1.25rem; }
  .course-modal-content .modal-layout { flex-direction:column; }
  .course-modal-content .modal-img-pane { max-width:100%; }
}

/* Botón de contacto reutilizado dentro del modal (usa estilos existentes .heka-contact-btn) */
.course-modal-content .heka-contact-btn { margin-top:.35rem; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal de detalles */
.course-modal {
    backdrop-filter: blur(8px);
    animation: fadeInModal 0.3s ease-in-out;
}

.course-modal-content {
    animation: slideInModal 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar personalizado para el modal */
.course-modal-content::-webkit-scrollbar {
    width: 8px;
}

.course-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.course-modal-content::-webkit-scrollbar-thumb {
    background: #8F1010;
    border-radius: 10px;
}

.course-modal-content::-webkit-scrollbar-thumb:hover {
    background: #700909;
}

/* Responsivo para m�viles */
@media (max-width: 640px) {
    .course-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem !important;
    }
    
/* ===== Subtle card + reveal-up helper ===== */
.subtle-card {
    background: transparent; /* mantener sin relleno visible */
    border-radius: 12px;
    padding: 1.25rem; /* espacio interior agradable */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* sombra muy sutil */
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 360ms ease, opacity 360ms ease;
    overflow: hidden;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Minimal reveal-up: elements start slightly translated and transparent.
   Existing JS can toggle a class (e.g. .is-revealed) or libraries can animate these.
   We keep the rule lightweight to avoid interfering with existing animations. */
.reveal-up {
    opacity: 0;
    transform: translateY(14px);
    will-change: transform, opacity;
}
.reveal-up.is-revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}
}

/* ===== Sección de Características principales ===== */
.features-section { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; }
.features-title { margin:0; font-size:1.8rem; color: var(--btn-bg, #700909); text-align:center; }
.features-center { display:flex; align-items:center; justify-content:center; }
.aura-img { width: 280px; max-width: 85vw; height:auto; display:block; }
/* Aura roja sutil alrededor de la imagen (usa el rojo de marca) */
.red-aura { filter: drop-shadow(0 0 10px rgba(112,9,9,0.55)) drop-shadow(0 0 22px rgba(112,9,9,0.25)); }
@media (min-width: 900px){ .aura-img { width: 340px; } }
@media (max-width: 640px){ .features-title { font-size:1.4rem; } .aura-img { width: 240px; } }

/* Card de introducción bajo la imagen de características */
.features-intro-card { max-width: 960px; width: 100%; margin: 0 auto; background: transparent; color: #000; }
.features-intro-text { font-size: 1.1rem; line-height: 1.65; text-align: center; margin: .5rem auto 0; padding: 0 .75rem; font-family: "El Messiri", sans-serif !important; }
.features-intro-text strong { color: var(--btn-bg, #700909) !important; font-weight: 700; }
@media (max-width: 900px){ .features-intro-card { max-width: 820px; } }
@media (max-width: 640px){ .features-intro-text { font-size: .98rem; line-height: 1.55; padding: 0 .5rem; } }

/* ===== Sección de Blog/Grimorio ===== */
.grimorio-section {
    width: 100%;
    padding: 3rem 1rem;
    background: transparent;
}

.grimorio-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.grimorio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grimorio-title {
    font-size: 2rem;
    font-weight: 700;
    color: #700909;
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
}

.grimorio-subtitle {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.grimorio-post {
    background: rgba(248, 248, 250, 0.92);
    color: #1a1a1a;
    border: 1px solid rgba(112, 9, 9, 0.25);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.grimorio-post::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(112, 9, 9, 0.5), rgba(255, 15, 43, 0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.grimorio-post:hover {
    border-color: rgba(112, 9, 9, 0.5);
    box-shadow: 0 16px 40px rgba(112, 9, 9, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    background: rgba(252, 252, 253, 0.95);
}

.grimorio-post:hover::before {
    opacity: 1;
}

.grimorio-category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-align: right;
    width: 100%;
    z-index: 2;
    background: transparent;
    color: rgba(112, 9, 9, 0.6);
    padding: 0.25rem 0;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    animation: badgeSlide 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.grimorio-post-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(112, 9, 9, 0.2);
}

.grimorio-post-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #700909;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.grimorio-post-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #999;
}

.grimorio-post-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    align-items: center;
    justify-items: center;
}

.grimorio-post-img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.grimorio-post-img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.grimorio-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    max-height: 600px;
    overflow-y: auto;
}

/* Barra de desplazamiento personalizada (webkit: Chrome, Safari, Edge) */
.grimorio-post-content::-webkit-scrollbar {
    width: 8px;
}

.grimorio-post-content::-webkit-scrollbar-track {
    background: rgba(112, 9, 9, 0.08);
    border-radius: 10px;
}

.grimorio-post-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #700909, #ff0f2b);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.grimorio-post-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8f0f10, #ff1f3f);
    box-shadow: 0 0 6px rgba(112, 9, 9, 0.3);
}

/* Firefox */
.grimorio-post-content {
    scrollbar-color: #700909 rgba(112, 9, 9, 0.08);
    scrollbar-width: thin;
}

/* Estilos para el contenido HTML generado por Quill */
.grimorio-post-content .ql-editor,
.grimorio-post-text {
    background: transparent !important;
    padding: 0 !important;
    color: #222 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
}

.grimorio-post-content .ql-editor {
    border: none !important;
    outline: none !important;
}

/* Estilos para elementos dentro del contenido */
.grimorio-post-content p {
    margin: 0.5rem 0;
    color: #222;
}

.grimorio-post-content strong,
.grimorio-post-content b {
    color: #700909;
    font-weight: 700;
}

.grimorio-post-content em,
.grimorio-post-content i {
    font-style: italic;
    opacity: 0.9;
}

.grimorio-post-content u {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.grimorio-post-content h1,
.grimorio-post-content h2,
.grimorio-post-content h3,
.grimorio-post-content h4,
.grimorio-post-content h5,
.grimorio-post-content h6 {
    color: #700909;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.grimorio-post-content h1 { font-size: 1.4rem; }
.grimorio-post-content h2 { font-size: 1.3rem; }
.grimorio-post-content h3 { font-size: 1.2rem; }
.grimorio-post-content h4 { font-size: 1.1rem; }

.grimorio-post-content blockquote {
    border-left: 4px solid #700909;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: #666;
    font-style: italic;
}

.grimorio-post-content code {
    background: rgba(112, 9, 9, 0.08);
    color: #700909;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.grimorio-post-content pre {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.grimorio-post-content pre code {
    background: transparent !important;
    padding: 0 !important;
    color: #333 !important;
}

.grimorio-post-content ul,
.grimorio-post-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.grimorio-post-content li {
    margin: 0.25rem 0;
    color: #222;
}

.grimorio-post-content a {
    color: #700909;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(112, 9, 9, 0.3);
    transition: all 0.24s ease;
}

.grimorio-post-content a:hover {
    border-bottom-color: #700909;
    color: #8F1010;
}

.grimorio-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(112, 9, 9, 0.1);
    margin-top: auto;
}

.grimorio-reactions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(112, 9, 9, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #700909;
    cursor: pointer;
    transition: all 0.24s ease;
}

.reaction-btn:hover:not(:disabled) {
    background: rgba(112, 9, 9, 0.08);
    border-color: #700909;
}

.reaction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reaction-count {
    font-weight: 600;
    color: #700909;
}

@media (max-width: 800px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .grimorio-section {
        padding: 2rem 0.75rem;
    }

    .grimorio-title {
        font-size: 1.6rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grimorio-post-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ===== Estilos para la barra de búsqueda de Grimorio ===== */
.grimorio-search-bar {
    width: 100%;
    margin: 2rem 0 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #700909;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: #fff;
    color: #000;
    border: 2px solid rgba(112, 9, 9, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: Ubuntu, sans-serif;
    transition: all 0.24s ease;
}

.search-input:focus {
    outline: none;
    border-color: #700909;
    box-shadow: 0 0 0 3px rgba(112, 9, 9, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #700909;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.24s ease;
}

.search-clear:hover {
    transform: scale(1.15);
    color: #8F1010;
}

.search-clear:active {
    transform: scale(0.95);
}

.filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(112, 9, 9, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 200px;
    transition: all 0.24s ease;
}

.filter-wrapper i {
    color: #700909;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.filter-select {
    flex: 1;
    background: transparent;
    border: none;
    color: #000;
    font-size: 0.95rem;
    font-family: Ubuntu, sans-serif;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.filter-select:focus {
    outline: none;
}

.filter-select option {
    background: #fff;
    color: #000;
    padding: 0.5rem;
}

.filter-wrapper:focus-within {
    border-color: #700909;
    box-shadow: 0 0 0 3px rgba(112, 9, 9, 0.1);
}

.grimorio-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.grimorio-no-results p {
    font-size: 1rem;
    margin: 0;
}

.grimorio-no-results-icon {
    font-size: 2.5rem;
    color: #d9d9d9;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .grimorio-search-bar {
        margin: 1.5rem 0 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    .search-input-wrapper i {
        left: 0.75rem;
    }

    .filter-wrapper {
        width: 100%;
    }
}

    .search-input {
        padding: 0.65rem 0.75rem 0.65rem 2.5rem;
        font-size: 0.9rem;
    }

    .search-clear {
        right: 0.5rem;
        font-size: 1rem;
    }


/* ===== Sección de Descargas Destacadas ===== */
.downloads-section {
    width: 100%;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.downloads-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.downloads-card {
    background: linear-gradient(135deg, #fff9f7 0%, #ffffff 100%);
    border: 1.5px solid rgba(112, 9, 9, 0.15);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(112, 9, 9, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.downloads-card:hover {
    border-color: rgba(112, 9, 9, 0.25);
    box-shadow: 0 12px 32px rgba(112, 9, 9, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.downloads-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(112, 9, 9, 0.12);
}

.downloads-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #700909;
    letter-spacing: -0.3px;
}

.downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(112, 9, 9, 0.1);
    border-radius: 10px;
    transition: all 0.24s ease;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(112, 9, 9, 0.25);
    transform: translateX(4px);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.download-info i {
    flex-shrink: 0;
    font-size: 1.1rem;
    opacity: 0.85;
}

.download-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.download-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(112, 9, 9, 0.08);
    color: #700909;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(90deg, #700909 0%, #8F1010 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.24s ease;
    flex-shrink: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(112, 9, 9, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 0.9rem;
}

.downloads-empty {
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    padding: 1.5rem;
    margin: 0;
}

.downloads-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.download-accordion-item {
    background: linear-gradient(135deg, #fff9f7 0%, #ffffff 100%);
    border: 1.5px solid rgba(112, 9, 9, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.download-accordion-item:hover {
    border-color: rgba(112, 9, 9, 0.25);
    box-shadow: 0 8px 20px rgba(112, 9, 9, 0.12);
}

.download-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.download-accordion-header:hover {
    background: rgba(112, 9, 9, 0.02);
}

.download-accordion-header .download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.download-accordion-header i.bi-chevron-down {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.download-accordion-item.active .download-accordion-header i.bi-chevron-down {
    transform: rotate(180deg);
}

.download-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid rgba(112, 9, 9, 0.1);
}

.download-accordion-item.active .download-accordion-content {
    max-height: 300px;
    padding: 1rem 1.5rem;
}

.download-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.download-btn-accordion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #700909, #ff0f2b);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.24s ease;
}

.download-btn-accordion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(112, 9, 9, 0.25);
}

.download-btn-accordion:active {
    transform: translateY(0);
}

.download-btn-accordion i {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .downloads-card {
        padding: 1.5rem;
    }

    .downloads-header {
        margin-bottom: 1.25rem;
    }

    .download-accordion-header {
        padding: 0.875rem 1rem;
    }

    .download-accordion-item.active .download-accordion-content {
        max-height: 400px;
    }

    .downloads-title {
        font-size: 1.2rem;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .downloads-section {
        padding: 1.5rem 0.75rem;
    }

    .downloads-card {
        padding: 1.25rem;
    }

    .downloads-title {
        font-size: 1.1rem;
    }

    .download-name {
        font-size: 0.9rem;
    }

    .download-type {
        font-size: 0.6rem;
    }

    .download-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ===== Animaciones de entrada para cards de productos ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: cardFadeIn 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(n+7) { animation-delay: 0.35s; }

/* ===== Estilos interactivos adicionales ===== */
.product-card {
    position: relative;
    overflow: hidden;
}

/* Efecto shine en hover */
.product-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 3s infinite;
    z-index: 0;
    opacity: 0;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Mejora en focus para accesibilidad */
.product-card:focus {
    outline: 2px solid transparent;
}

/* Cambio de cursor para feedback visual */
.product-title,
.product-description,
.product-img-wrapper,
[data-open-modal] {
    cursor: pointer;
}

/* Transición suave en descarga */
.product-actions button,
.product-actions a {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-actions button:active,
.product-actions a:active {
    transform: scale(0.98);
}

/* Estilos adicionales para mejor legibilidad */
.product-card {
    will-change: transform, box-shadow;
}

.product-modal-panel {
    will-change: transform, opacity;
}

/* ===== CARRITO: Botón flotante (Mi Carrito) ===== */
.carrito-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #700909 0%, #8b0a0a 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(112, 9, 9, 0.3);
}

.carrito-view-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b0a0a 0%, #a30b0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 9, 9, 0.4);
}

.carrito-view-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(112, 9, 9, 0.3);
}

.carrito-view-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
}

.carrito-view-btn i {
    font-size: 1.2rem;
}

.carrito-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    background: #ff0f2b;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* ===== CARRITO MODAL: Mini visualización del carrito ===== */
.carrito-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.carrito-modal[aria-hidden="false"] {
    display: flex;
}

.carrito-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    animation: fadeIn 0.25s ease;
}

.carrito-modal-panel {
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    max-width: 500px;
    background: #1a1a1a;
    border: 2px solid #700909;
    border-radius: 0.75rem;
    padding: 2rem;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carrito-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carrito-modal-close:hover {
    color: #ff0f2b;
    transform: rotate(90deg);
}

.carrito-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-right: 2.5rem;
    border-bottom: 1px solid #700909;
    padding-bottom: 1rem;
}

.carrito-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 40vh;
    overflow-y: auto;
}

/* Scrollbar personalizado */
.carrito-items-container::-webkit-scrollbar {
    width: 6px;
}

.carrito-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.carrito-items-container::-webkit-scrollbar-thumb {
    background: #700909;
    border-radius: 3px;
}

.carrito-items-container::-webkit-scrollbar-thumb:hover {
    background: #8b0a0a;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #222222;
    border-left: 3px solid #700909;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.carrito-item:hover {
    background: #2a2a2a;
    border-left-color: #ff0f2b;
}

.carrito-item-info {
    flex: 1;
    min-width: 0;
}

.carrito-item-nombre {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.carrito-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carrito-item-precio {
    color: #aaaaaa;
    font-size: 0.85rem;
}

.carrito-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    margin-left: 1rem;
}

.carrito-item-subtotal {
    color: #ff0f2b;
    font-weight: 700;
    font-size: 1rem;
    min-width: 100px;
    text-align: right;
}

.carrito-btn-eliminar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid #555555;
    color: #aaaaaa;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carrito-btn-eliminar:hover {
    background: #700909;
    border-color: #700909;
    color: #ffffff;
}

.carrito-btn-eliminar:active {
    transform: scale(0.95);
}

/* ===== CARRITO MODAL: Resumen de totales ===== */
.carrito-modal-resumen {
    background: #222222;
    border: 1px solid #700909;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.carrito-resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaaaaa;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.carrito-resumen-item:last-child {
    margin-bottom: 0;
}

.carrito-resumen-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ff0f2b;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #700909;
    margin-top: 0.75rem;
}

/* ===== CARRITO MODAL: Botones de acción ===== */
.carrito-modal-acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.carrito-btn-continuar,
.carrito-btn-pagar {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.carrito-btn-continuar {
    background: #333333;
    color: #aaaaaa;
    border: 1px solid #555555;
}

.carrito-btn-continuar:hover {
    background: #444444;
    color: #ffffff;
    border-color: #700909;
}

.carrito-btn-pagar {
    background: linear-gradient(135deg, #700909 0%, #8b0a0a 100%);
    color: #ffffff;
    border: none;
}

.carrito-btn-pagar:hover {
    background: linear-gradient(135deg, #8b0a0a 0%, #a30b0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 9, 9, 0.4);
}

.carrito-btn-pagar:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE: Carrito Modal ===== */
@media (max-width: 640px) {
    .carrito-modal-panel {
        width: calc(100% - 1rem);
        max-width: 100%;
        padding: 1.5rem;
        max-height: 90vh;
    }

    .carrito-modal-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .carrito-items-container {
        max-height: 50vh;
        margin-bottom: 1rem;
    }

    .carrito-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .carrito-item-subtotal {
        width: auto;
        text-align: left;
    }

    .carrito-modal-acciones {
        flex-direction: column;
    }

    .carrito-btn-continuar,
    .carrito-btn-pagar {
        min-width: unset;
    }
}

