@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&family=Alfa+Slab+One&display=swap');

:root {
    --bg-page: #FFF9F2;
    --card-bg: #FFFFFF;
    --text-main: #4A403A;
    --text-muted: #8D7B72;
    --accent: #D97706;
    --accent-hover: #B45309;
    --border: #EFE6DC;
    --shadow: 0 10px 30px -5px rgba(92, 64, 51, 0.08);
    --radius: 20px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 55px;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    width: 180px;
    height: 100%;
}

.logo-img {
    width: auto;
    height: 100%;
    max-height: 50px;
    object-fit: contain;
}

.nav-track {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    padding: 8px 18px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-track i {
    font-size: 1rem;
    color: #D97706;
    margin: 0;
    line-height: 1;
}

.track-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    color: #374151;
    line-height: 1;
    letter-spacing: 0px;
}

.nav-track:hover {
    border-color: #D97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    transform: translateY(-1px);
}

.main-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

/* HERO SECTION */
.hero-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: #291D18;
    line-height: 1.2;
    margin-bottom: 10px;
}

.highlight {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    color: #8D7B72;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    background: rgba(255, 251, 240, 0.6);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(217, 119, 6, 0.1);
    display: inline-block;
}

/* VISUALIZER & MOCKUP */
.visualizer-container {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -5px rgba(92, 64, 51, 0.08);
    margin-bottom: 25px;
    border: 1px solid #FFF;
    position: relative;
}

.mockup-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #F5F0EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.layer-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: none;
}

.cushion-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.dynamic-layer {
    position: absolute;
    transform-origin: center center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    pointer-events: none;
    user-select: none;
    z-index: 50 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#overlay-name,
#preview-name {
    font-family: 'Alfa Slab One', cursive;
    text-transform: uppercase;
}

#overlay-date,
#preview-date {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* BUTTONS */
.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 90%;
    max-width: 400px;
    margin: 25px auto;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: 3px solid #fff;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    animation: heartbeat 2s infinite ease-in-out;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.upload-btn input {
    display: none;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #FFF;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    touch-action: manipulation;
}

.icon-btn:active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* FORM SYLES */
.personalization-form {
    margin-bottom: 20px;
    padding: 0 5px;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-input {
    width: 100%;
    padding: 14px;
    background: #FFF;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: 0.2s;
    margin-bottom: 15px;
    outline: none;
}

.custom-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* GRID & CARDS */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.benefit-card {
    display: flex;
    gap: 15px;
    background: #FFF;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    align-items: center;
}

.icon-box {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.benefit-content {
    display: flex;
    flex-direction: column;
}

.benefit-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #291D18;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.benefit-desc {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.3;
}

/* OFFER BOX */
.offer-box {
    background: #FFF5E0;
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-tag {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.offer-content {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-right: 10px;
}

.offer-check {
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.offer-text h3 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 800;
    margin-top: 0;
}

.offer-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
}

.offer-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

/* CHECKOUT */
.checkout-card {
    background: #FFF;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.styled-input {
    width: 100%;
    padding: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #374151;
    transition: 0.2s;
    outline: none;
}

.payment-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFF;
}

.payment-card:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.payment-card.active {
    border-color: var(--accent);
    background: #FFFBF0;
}

.pay-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.pay-icon {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.payment-card.active .check-circle {
    border-color: var(--accent);
    background: var(--accent);
}

.payment-card.active .check-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.submit-btn-final {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* REVIEWS */
.reviews-wrapper {
    overflow: hidden;
    padding: 10px 0 30px 0;
    margin-bottom: 20px;
    background: transparent;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-infinite 15s linear infinite;
}

.review-card {
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0 15px 0 0;
    width: 380px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.review-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

.review-stars {
    color: #F59E0B;
    font-size: 0.75rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

/* VALUE BOX */
.value-box {
    background: #FFFCF9;
    border: 1px solid #FED7AA;
    border-radius: 16px;
    margin: 20px 0;
    overflow: hidden;
}

.value-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.value-icon {
    background-color: #FFF7ED !important;
    color: #EA580C !important;
    border: 1px solid #FED7AA !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 15px;
}

.value-text {
    display: flex;
    flex-direction: column;
}

.value-title {
    font-weight: 700;
    color: #1F2937;
    font-size: 0.9rem;
}

.value-desc {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.2;
}

.value-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 0 60px 0 20px;
}

/* SHIPPING HIGHLIGHT */
.shipping-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #ECFDF5;
    color: #065F46;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px dashed #6EE7B7;
    text-align: left;
}

.shipping-highlight i {
    font-size: 1.8rem;
}

.ship-main {
    font-size: 1rem;
    display: block;
}

.ship-main strong {
    font-weight: 800;
    text-decoration: underline;
}

/* TRUST PILL */
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FFFFFF;
    border: 1px solid #EFE6DC;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(92, 64, 51, 0.05);
}

.trust-pill .stars {
    color: #D97706;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 1px;
}

.trust-pill .trust-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4A403A;
    line-height: 1.2;
}

/* PREVIEW BADGE */
.preview-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* MODAL PREVIEW */
.modal-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-title {
    color: #333;
    margin: 10px 0 20px 0;
    font-family: 'Lora', serif;
    font-size: 1.5rem;
}

/* STICKY BOTTOM NAV */
.sticky-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid #EFE6DC;
    padding: 10px 15px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.3s ease-out;
}

.nav-container {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    align-items: stretch;
}

.nav-action-btn {
    flex: 4;
    background: #D97706;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.2);
}

.nav-action-btn.ready {
    background: #10B981;
}

.nav-help-btn {
    flex: 1;
    background: transparent;
    color: #4A403A;
    border: 1px solid #EFE6DC;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-help-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: #D97706;
}

/* FOOTER */
footer {
    background: #291D18;
    color: #D6CFC7;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #D6CFC7;
    margin: 0 8px;
    text-decoration: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-desc {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 300px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #d1d5db;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #D97706;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

/* ANIMATIONS */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 10px;
        height: 50px;
    }

    .brand {
        width: 220px;
        display: flex;
        align-items: center;
    }

    /* Logo request 220px */
    .logo-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .nav-track {
        padding: 6px 10px;
        gap: 4px;
    }

    .nav-track i {
        font-size: 0.85rem;
    }

    .track-text {
        font-size: 0.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        text-align: center;
    }

    .icon-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    .trust-pill {
        margin-top: -10px !important;
        position: relative;
        z-index: 20;
    }

    .value-box,
    .benefits-grid {
        margin-top: -10px !important;
        position: relative;
        z-index: 10;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        margin-top: 20px;
    }
}

@media (max-width: 360px) {
    .brand {
        width: 220px;
    }

    /* Mantener 220px según petición */
    .nav-track {
        padding: 5px 8px;
    }
}

@media (min-width: 769px) {
    .sticky-mobile-nav {
        display: none;
    }
}