/* reset y fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    --bg-dark: #120111;
    --pink-accent: #d11275;
    --pink-light: #ff69b4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --shadow-pink: 0 0 20px rgba(209, 18, 117, 0.4);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(209, 18, 117, 0.15), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(255, 105, 180, 0.1), transparent 30%);
    background-color: var(--bg-dark);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rg-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 1, 17, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rg-logo img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #ff66b2;
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.45);
}

.rg-back-link {
    color: var(--pink-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rg-back-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--pink-light);
}

.rg-float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.rg-float-wa:hover {
    transform: scale(1.1);
}

/* Glassmorphism Cards */
.rg-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.rg-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.rg-step.active {
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

.rg-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-pink);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.rg-large-card {
    max-width: 800px;
    padding: 2rem;
}

.rg-icon-header i {
    font-size: 3rem;
    color: var(--pink-light);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--pink-accent));
}

.rg-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rg-subtitle {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Formularios */
.rg-input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.rg-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pink-accent);
}

.rg-input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rg-input-group input:focus {
    outline: none;
    border-color: var(--pink-light);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.glass-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-light));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(209, 18, 117, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.glass-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(209, 18, 117, 0.6);
}

.glass-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    box-shadow: none;
}

.rg-error-msg {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 1rem;
    background: rgba(255, 77, 77, 0.1);
    padding: 8px;
    border-radius: 8px;
}

/* Step 2 Layout */
.rg-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    justify-content: center;
}

.rg-btn-back {
    position: absolute;
    left: 0;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--pink-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-btn-back:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(-3px);
}

.rg-services-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.rg-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.rg-service-name {
    font-weight: 600;
    color: var(--pink-light);
}

.rg-datetime-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.rg-datetime-split h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rg-datetime-split h3 i {
    color: var(--pink-light);
}

.rg-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.rg-slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}

.rg-slot-btn:hover:not(:disabled) {
    background: rgba(209, 18, 117, 0.2);
    border-color: var(--pink-accent);
}

.rg-slot-btn.selected {
    background: var(--pink-accent);
    border-color: var(--pink-light);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}

.rg-slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #000;
}

.rg-calendar-input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Success Card */
.rg-success-icon i {
    font-size: 4rem;
    color: #fff;
    filter: drop-shadow(0 0 15px var(--pink-light));
    margin-bottom: 1rem;
}

.rg-summary-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--pink-accent);
    box-shadow: inset 0 0 20px rgba(209, 18, 117, 0.2);
    text-align: left;
    margin: 0 auto;
    display: inline-block;
    min-width: 250px;
}

.rg-summary-box p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.rg-summary-box span {
    color: var(--pink-light);
    font-weight: 700;
}


/* Responsive */
@media (max-width: 768px) {
    .rg-datetime-split {
        grid-template-columns: 1fr;
    }

    .rg-glass-card {
        padding: 1.5rem;
    }
}
