:root {
    --color-cream: #fffdf7;
    --color-green: #1fb154;
    --color-pink: #f176b6;
    --color-orange: #ff7f27;
    --color-red: #ed1c24;
    --color-blue: #3ea9f5;
    --color-yellow: #ffc20e;
    --color-dark: #2d2d2d;
    --color-gray: #f0f0f0;
}

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

body {
    background-color: var(--color-cream);
    color: var(--color-dark);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

#root {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
}

/* Tipografía de marca (Casa Bru) */
.brand-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.brand-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Letras de colores */
.c-green { color: var(--color-green); }
.c-pink { color: var(--color-pink); }
.c-orange { color: var(--color-orange); }
.c-red { color: var(--color-red); }
.c-blue { color: var(--color-blue); }
.c-yellow { color: var(--color-yellow); }

/* Layouts */
.screen {
    padding: 30px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.center-content {
    justify-content: center;
    align-items: center;
}

/* Formularios */
.input-group {
    width: 100%;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-dark);
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-gray);
    border-radius: 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(62, 169, 245, 0.2);
}

/* Botones */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-pink);
    color: white;
    box-shadow: 0 4px 0 #d1589a;
}
.btn-primary:active {
    box-shadow: 0 0px 0 #d1589a;
    transform: translateY(4px);
}

.btn-secondary {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    box-shadow: 0 4px 0 #d9a408;
}
.btn-secondary:active {
    box-shadow: 0 0px 0 #d9a408;
    transform: translateY(4px);
}

.btn-admin {
    background-color: var(--color-dark);
    color: white;
    font-size: 1rem;
    padding: 10px;
    margin-top: 20px;
}

/* Header de sesion */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.greeting h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark);
}

.greeting span {
    color: var(--color-pink);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--color-red);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Tarjeta de visitas */
.visits-card {
    background-color: var(--color-cream);
    border: 3px solid var(--color-dark);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.visits-card::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px;
    width: 40px; height: 40px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    border: 3px solid var(--color-dark);
}

.visits-card::after {
    content: '';
    position: absolute;
    bottom: -10px; right: -10px;
    width: 60px; height: 60px;
    background-color: var(--color-blue);
    border-radius: 50%;
    border: 3px solid var(--color-dark);
    z-index: 0;
}

.visits-card > * {
    position: relative;
    z-index: 1;
}

.visits-number {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: var(--color-green);
    line-height: 1;
    text-shadow: 2px 2px 0 var(--color-dark);
}

.visits-text {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Progress bar */
.progress-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #ddd;
    z-index: -1;
    transform: translateY(-50%);
}

.progress-step {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #999;
}

.progress-step.active {
    border-color: var(--color-green);
    background-color: var(--color-green);
    color: white;
}

.progress-step.gift {
    width: 40px;
    height: 40px;
    border-color: var(--color-orange);
    color: var(--color-orange);
    font-size: 1.2rem;
    background-color: white;
}
.progress-step.gift.active {
    background-color: var(--color-orange);
    color: white;
}

/* Secciones */
.section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-list, .coupon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.promo-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.promo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.promo-icon.pink { color: var(--color-pink); background-color: #fce4f0; }
.promo-icon.blue { color: var(--color-blue); background-color: #e6f4fc; }
.promo-icon.orange { color: var(--color-orange); background-color: #fdf0e6; }

.promo-info h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.promo-info p {
    font-size: 0.85rem;
    color: #666;
}

/* Cupones desbloqueados */
.coupon-card {
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    color: white;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.coupon-card::before, .coupon-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.coupon-card::before { left: -10px; }
.coupon-card::after { right: -10px; }

.coupon-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.coupon-card p {
    font-weight: bold;
    opacity: 0.9;
}

/* Admin Styles */
.admin-card {
    background: white;
    border: 2px solid var(--color-dark);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-info h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--color-blue);
    margin-bottom: 5px;
}

.admin-card-info span {
    font-weight: bold;
    color: var(--color-green);
}

.btn-add-visit {
    background-color: var(--color-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #168a41;
}
.btn-add-visit:active {
    box-shadow: 0 0 0 #168a41;
    transform: translateY(4px);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-blue);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: rgba(0,0,0,0.05);
}

/* Side Menu */
.side-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.side-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.side-menu {
    position: fixed;
    top: 0; left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-cream);
    z-index: 101;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.side-menu.open {
    left: 0;
}
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.side-menu-item {
    padding: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-dark);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.side-menu-item.active {
    background: var(--color-pink);
    color: white;
    box-shadow: 0 4px 0 #d1589a;
}
.side-menu-item.active:active {
    box-shadow: 0 0px 0 #d1589a;
    transform: translateY(4px);
}
.side-menu-item:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}
.menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel de Reseñas */
.reviews-carousel {
    margin-top: auto;
    padding: 20px;
    background: #fdf8eb;
    border-radius: 20px;
    border: 2px solid #eee;
    width: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.review-item {
    animation: fadeInReview 0.5s ease;
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
}

.review-author {
    font-weight: 800;
    color: var(--color-pink);
    font-size: 0.85rem;
    display: block;
    text-align: right;
}

.review-stars {
    color: var(--color-yellow);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

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