/*****************
 * Club Pura Vida - Modern Design System 2026
 * Diseño profesional inspirado en apps modernas
 *****************/

/* ============================================
   IMPORTS & CUSTOM FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES - Design Tokens
   ============================================ */
:root {
    /* Colores principales */
    --primary-green: #00B140;
    --primary-dark: #008F33;
    --primary-light: #E8F9F0;
    --accent-orange: #FF6B35;
    --accent-yellow: #FFD23F;

    /* Neutros */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #737373;
    --neutral-600: #666666;
    --neutral-700: #404040;
    --neutral-900: #171717;

    /* Sombras modernas */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Espaciado */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: var(--spacing-xl);
}

h1,
h2,
h3,
h4,
h5,
h6,
div,
input,
p,
a {
    margin: 0;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a,
a:hover,
a:focus {
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-green);
}

/* ============================================
   HEADER - handled by layouts/app.blade.php
   ============================================ */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: var(--spacing-sm);
}

header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    color: var(--neutral-900);
    letter-spacing: -0.5px;
    text-align: center;
    text-transform: none;
}

.logo h1 {
    font-size: clamp(28px, 5vw, 40px);
}

.logo a {
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.pagination svg,
nav[role="navigation"] svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

nav[role="navigation"] svg:hover {
    transform: scale(1.1);
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1,
.slogan-style {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.slogan-style {
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 500;
    color: var(--neutral-600);
    text-align: center;
    padding: var(--spacing-sm) 0 var(--spacing-md);
    border-bottom: 1px solid var(--neutral-200);
    letter-spacing: 0.3px;
}

h2,
label {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h2 {
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: 700;
    margin: var(--spacing-sm) 0;
    color: var(--neutral-900);
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
}

p,
button {
    font-family: 'Inter', sans-serif;
}

p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-700);
}

button {
    font-weight: 600;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container-fluid,
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   LOGO & BRANDING
   ============================================ */
.logo-responsive,
.local-logo-home {
    width: 70px;
    height: auto;
    object-fit: contain;
    margin-right: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.local-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: var(--spacing-2xl);
    gap: var(--spacing-md);
}

/* ============================================
   IMAGES
   ============================================ */
.img-responsive {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ============================================
   CARDS - Modern Design
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
}

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

.card-size {
    width: 100%;
    margin: 0 auto var(--spacing-lg);
    border: none;
}

.cupon-size {
    margin: 0 auto var(--spacing-lg);
    border: none;
}

.card-img-top {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    will-change: transform;
}

.card:hover .card-img-top,
.card:hover .img-responsive {
    transform: scale(1.05);
}

/* ============================================
   CARD CONTENT
   ============================================ */
.card-text-style {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    background: #FFFFFF;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 0;
}

.card-text-style h2,
.card-text-style h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-900);
}

.card-text-style p {
    font-size: 14px;
    color: var(--neutral-600);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   PROFILE CARDS - Enhanced Modal Style
   ============================================ */
.profile-card-2-modal {
    max-width: 100%;
    height: 280px;
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin: var(--spacing-md) auto;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.profile-card-2-modal:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.profile-card-2-modal img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.profile-card-2-modal:hover img {
    transform: scale(1.08);
}

.profile-card-2-modal .profile-name {
    position: absolute;
    left: var(--spacing-lg);
    bottom: 80px;
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-base);
    font-family: 'Sora', sans-serif;
}

.profile-card-2-modal .profile-username {
    position: absolute;
    bottom: 56px;
    left: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.profile-card-2-modal .profile-icons {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    color: #FFFFFF;
    transition: all var(--transition-base);
}

.profile-card-2-modal .profile-icons .fa {
    margin: var(--spacing-xs);
}

.profile-card-2-modal:hover .profile-icons {
    right: 40px;
}

/* ============================================
   BUTTONS - Modern Design System
   ============================================ */
.button-style {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 177, 64, 0.25);
    position: relative;
    overflow: hidden;
}

.button-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.button-style:hover::before {
    opacity: 1;
}

.button-style:hover,
.button-style:active,
.button-style:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #006E28 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 177, 64, 0.35) !important;
}

.button-style:active {
    transform: translateY(0);
}

/* ============================================
   MODAL - Clean & Modern
   ============================================ */
.modal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--spacing-lg);
}

.modal-dialog {
    max-width: 480px !important;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--neutral-900);
}

/* ============================================
   BADGES & ICONS
   ============================================ */
.hot-icon-style,
.local-logo-home {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    width: 48px;
    height: 48px;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: all var(--transition-base);
}

.hot-icon-style:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   COUPON CODE STYLES - HIDDEN BY DEFAULT
   Solo se muestra cuando es necesario en validación
   ============================================ */
.code-style {
    /* Removido: ya no mostramos código en las cards principales */
    display: none;
}

/* Solo visible en página de validación */
.validation-page .code-style {
    display: block;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--neutral-900);
    letter-spacing: 3px;
    border-radius: var(--radius-md);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    margin: var(--spacing-lg) 0;
}

.code-text-style {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    background: #FFFFFF;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card {
    animation: fadeInUp var(--transition-smooth) ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199.98px) {
    :root {
        --spacing-lg: 20px;
        --spacing-xl: 28px;
        --spacing-2xl: 40px;
    }

    .slogan-style {
        font-size: 15px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .local-logo {
        justify-content: flex-start;
        padding-left: var(--spacing-md);
        padding-bottom: var(--spacing-lg);
    }

    h2 {
        font-size: 18px;
    }

    .card-img-top,
    .img-responsive {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 1rem auto;
    }

    .profile-card-2-modal {
        height: 240px;
    }

    .button-style {
        padding: 12px 20px;
        font-size: 15px;
    }

    .card-text-style {
        padding: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .profile-card-2-modal .profile-name {
        font-size: 22px;
        bottom: 60px;
        left: var(--spacing-md);
    }

    .profile-card-2-modal .profile-username {
        bottom: 42px;
        left: var(--spacing-md);
        font-size: 13px;
    }

    .hot-icon-style,
    .local-logo-home {
        width: 40px;
        height: 40px;
        right: var(--spacing-sm);
        top: var(--spacing-sm);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-green) !important;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.card-img-top,
.img-responsive,
.profile-card-2-modal img {
    will-change: transform;
}

.card,
.button-style {
    will-change: transform, box-shadow;
}

/* ============================================
   FOOTER - Professional & Clean
   ============================================ */
footer {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--neutral-900) 0%, #0a0a0a 100%);
    border-top: 1px solid var(--neutral-800);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: var(--neutral-400);
    margin-bottom: var(--spacing-sm);
    font-family: 'Inter', sans-serif;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light));
    transition: width var(--transition-base);
}

.footer-link:hover {
    color: var(--primary-green);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    font-size: 13px;
    color: var(--neutral-500);
    margin-top: var(--spacing-sm);
    font-family: 'Inter', sans-serif;
}

.footer-logo {
    font-size: 12px;
    color: var(--neutral-600);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-heart {
    color: #FF6B6B;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    footer {
        padding: var(--spacing-lg) 0;
        margin-top: var(--spacing-xl);
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* -- HEADER (Unified) -- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface, #FFF);
    border-bottom: 1px solid var(--border, #EBEBEB);
    padding: 0;
}

.header-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid lightgrey;
}

.biz-promo-text {
    text-decoration: underline !important;
}

.header-logo {
    justify-self: center;
    align-self: end;
    margin-bottom: -10px;
}

.header-logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-left-spacer {
    width: 38px;
}

.location-bar {
    background: var(--surface, #FFF);
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border, #EBEBEB);
    margin-bottom: 0px;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.loc-icon {
    color: var(--text-primary, #111);
    font-size: 16px;
    flex-shrink: 0;
}

.loc-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.loc-text strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary, #111);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, #EBEBEB);
    color: var(--cpv-green-dark, #c9a800);
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--cpv-green-bg, #FFF8DC);
    color: #111;
    border-color: var(--cpv-green-dark, #c9a800);
}

/* -- BOTTOM NAV (Unified) -- */
.site-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: var(--surface, #FFF);
    border-top: 1px solid var(--border, #EBEBEB);
    display: flex;
    align-items: stretch;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
}

.site-bottom-nav.keyboard-open {
    display: none !important;
}

.site-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted, #9CA3AF);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

.site-nav-tab i {
    font-size: 21px;
    line-height: 1;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-nav-tab span {
    display: block;
}

.site-nav-tab.active {
    color: var(--cpv-green, #FFD84D);
}

.site-nav-tab.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--cpv-green, #FFD84D);
    border-radius: 0 0 3px 3px;
}

.site-nav-tab:hover {
    color: var(--text-primary, #111);
}

.site-nav-tab.active i {
    transform: translateY(-3px) scale(1.15);
    color: var(--cpv-green, #FFD84D);
}

/* -- ICONS & EMOJIS OVERRIDE -- */
.float-emoji {
    color: darkorange !important;
}

.biz-heart {
    color: darkorange !important;
}