/* ============================================================
   VENTAS — Mini sitio de ventas (landing, tickets, Fanstars Pack)
   Complementa variables.css + base.css del sitio principal
   ============================================================ */

/* Layout */
.ventas-header {
    background: linear-gradient(135deg, #e8719a 0%, #c49ad4 55%, #9068c0 100%);
    color: white;
    padding: 40px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(201, 162, 39, 0.6);
}

.ventas-header::before {
    content: '🌸  ✿  🍵  ✿  🌸  ✿  🍵  ✿  🌸  ✿  🍵  ✿  🌸';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.45;
    pointer-events: none;
}

.ventas-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.4rem, 3.5vw + 0.8rem, 2.2rem);
    margin-bottom: 4px;
    text-shadow: 1px 2px 14px rgba(0, 0, 0, 0.18);
}

.ventas-header .ventas-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.96;
}

.ventas-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ventas-nav a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.ventas-nav a:hover,
.ventas-nav a:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.ventas-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.ventas-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.ventas-footer {
    background: var(--pink-200);
    color: var(--text-medium);
    text-align: center;
    padding: 24px 20px;
    margin-top: auto;
    font-size: 0.88rem;
    border-top: 2px solid rgba(201, 162, 39, 0.3);
}

.ventas-footer a {
    color: var(--purple-400);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   LANDING — Product cards
   ============================================================ */
.ventas-intro {
    text-align: center;
    margin-bottom: 32px;
}

.ventas-intro h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple-400);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.ventas-intro p {
    color: var(--text-medium);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.ventas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 680px) {
    .ventas-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1.5px solid rgba(144, 104, 192, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-card-badge {
    background: linear-gradient(135deg, var(--pink-400), var(--purple-400));
    color: white;
    padding: 18px 24px;
    text-align: center;
}

.product-card-badge h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.product-card-badge .product-tag {
    font-size: 0.78rem;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body p {
    color: var(--text-medium);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-price {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--purple-400);
    margin-bottom: 4px;
}

.product-price-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.9rem;
}

.product-features li {
    padding: 5px 0;
    color: var(--text-medium);
}

.product-features li::before {
    content: '✿ ';
    color: var(--pink-400);
}

.product-card-footer {
    padding: 0 24px 24px;
    margin-top: auto;
}

.product-card-footer .btn {
    width: 100%;
    text-align: center;
}

/* Stock indicator */
.stock-indicator {
    margin-bottom: 16px;
}

.stock-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.stock-text.sold-out {
    color: var(--danger);
}

.stock-bar {
    height: 8px;
    background: var(--pink-100);
    border-radius: 4px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-400), var(--pink-400));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.stock-bar-fill.low {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

.delivery-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.delivery-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--sky-100);
    color: var(--text-dark);
}

/* ============================================================
   FANSTARS PACK PAGE — Hero + Form
   ============================================================ */
.artpack-hero {
    text-align: center;
    padding: 30px 0 10px;
}

.artpack-hero h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple-400);
    font-size: clamp(1.4rem, 3vw + 0.6rem, 2rem);
    margin-bottom: 10px;
}

.artpack-hero .artpack-desc {
    color: var(--text-medium);
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 auto 16px;
    line-height: 1.65;
}

.artpack-hero .artpack-price {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: var(--purple-400);
    margin-bottom: 6px;
}

.artpack-hero .artpack-price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Delivery method radio cards */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .delivery-options {
        grid-template-columns: 1fr;
    }
}

.delivery-option {
    position: relative;
    background: white;
    border: 2px solid var(--pink-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.delivery-option:hover {
    border-color: var(--purple-300);
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-option.selected {
    border-color: var(--purple-400);
    background: var(--lavender);
    box-shadow: 0 0 0 3px rgba(144, 104, 192, 0.18);
}

.delivery-option-icon {
    font-size: 1.6rem;
}

.delivery-option-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.delivery-option-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Shipping fields slide */
.shipping-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.shipping-fields.visible {
    max-height: 800px;
    opacity: 1;
}

.shipping-fields-inner {
    padding-top: 20px;
}

.shipping-fields-inner .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .shipping-fields-inner .form-row {
        grid-template-columns: 1fr;
    }
}

/* Region select */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pink-200);
    border-radius: var(--radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: white url('../css/select-arrow.svg') no-repeat right 12px center / 12px;
    appearance: none;
    transition: var(--transition);
    outline: none;
}

.form-select:focus {
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(144, 104, 192, 0.18);
}

/* Alert messages */
.ventas-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.93rem;
    font-weight: 500;
}

.ventas-alert-success {
    background: #e8f5e9;
    border-left: 4px solid var(--success);
    color: #2e7d32;
}

.ventas-alert-error {
    background: #ffebee;
    border-left: 4px solid var(--danger);
    color: #c62828;
}

/* Submit button states */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sold out overlay */
.artpack-sold-out {
    text-align: center;
    padding: 40px 20px;
}

.artpack-sold-out h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--danger);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.artpack-sold-out p {
    color: var(--text-medium);
}

/* ============================================================
   TICKET PAGE — wrapper for embedded form
   ============================================================ */
.ticket-page-info {
    text-align: center;
    margin-bottom: 10px;
}

.ticket-page-info h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple-400);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ticket-page-info p {
    color: var(--text-medium);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.ventas-fade-in {
    animation: ventasFadeIn 0.5s ease both;
}

@keyframes ventasFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.ventas-fade-in:nth-child(2) { animation-delay: 0.1s; }
.ventas-fade-in:nth-child(3) { animation-delay: 0.2s; }
