/* ================================================
   Dr. Javier Rodriguez - Medicina Estética
   Estilos Principales - Diseño Lujoso y Moderno
   ================================================ */

/* Variables CSS */
:root {
    /* Opulent Aesthetic Palette - 'High Society' Minimalist */
    --bg-dark: #050505;
    --bg-darker: #020202;
    --bg-card: rgba(18, 18, 18, 0.7);
    /* For Glassmorphism */
    --bg-card-hover: rgba(24, 24, 24, 0.85);

    /* Silk Champagne Metallic Palette */
    --gold-primary: #bfa37e;
    /* Sophisticated Champagne Bronze */
    --gold-light: #e5d5c0;
    /* Silk Petal */
    --gold-dark: #8c6e4a;
    /* Deep Toffee */
    --gold-gradient: linear-gradient(135deg,
            #8c6e4a 0%,
            #bfa37e 25%,
            #e5d5c0 50%,
            #bfa37e 75%,
            #8c6e4a 100%);
    /* Metallic Shine Gradient */

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);

    /* Typography - Haute Couture feel */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Deep & Weightless */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 80px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 0 30px rgba(191, 163, 126, 0.15);

    /* Clean, Sharper Borders for Precision */
    --radius-sm: 1px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-xl: 8px;

    /* Spacing - Increased for 'Opulent' breathing room */
    --section-padding: 120px 0;
    --container-padding: 0 40px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

body::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    /* Medium weight for cleaner look */
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 0.05em;
    /* Opulent spacing */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    border: 2px solid transparent;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ================================================
   Navigation
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    /* Safari support */
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(191, 163, 126, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-fast);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
    padding-top: 120px;
    /* High Society spacing to clear fixed navbar */
    padding-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-small {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-size: 84px;
    /* Larger, more dominant */
    font-weight: 500;
    letter-spacing: -0.04em;
    background: var(--gold-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 5s linear infinite;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

/* ================================================
   Section Headers
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 0.02em;
    font-weight: 300;
}

/* ================================================
   Treatments Section
   ================================================ */
.treatments {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.treatment-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.treatment-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(191, 163, 126, 0.25);
    background: var(--bg-card-hover);
}

.treatment-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.treatment-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
}

.treatment-image i {
    font-size: 48px;
    color: var(--gold-primary);
    opacity: 0.5;
}

.treatment-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 12px;
    color: var(--gold-primary);
}

.treatment-content {
    padding: 24px;
}

.treatment-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.treatment-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    /* Standard compatibility */
    overflow: hidden;
}

.treatment-cta {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 12px;
}

/* ================================================
   Instagram Section
   ================================================ */
.instagram-section {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

/* Admin Instagram Previews */
.instagram-admin-preview {
    height: 250px;
    /* Tamaño mucho más pequeño */
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.instagram-admin-preview iframe {
    max-width: 100% !important;
    min-width: 100% !important;
    margin: -60px 0 0 0 !important;
    border-radius: 8px !important;
    pointer-events: none;
    transform: scale(0.65);
    /* Escalar más pequeño */
    transform-origin: top center;
}

.instagram-admin-preview .gallery-item-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.instagram-admin-preview:hover .gallery-item-overlay {
    opacity: 1;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: var(--gold-primary);
    font-size: 24px;
}

/* ================================================
   Instagram Stories Styles
   ================================================ */
/* ================================================
   Instagram Stories (Embeds) Styles
   ================================================ */
.instagram-stories-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.instagram-stories-container.full-width-embeds {
    padding: 0;
}

.instagram-embeds-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.instagram-embeds-scroll::-webkit-scrollbar {
    height: 8px;
}

.instagram-embeds-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

.instagram-embeds-scroll::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.instagram-embed-wrapper {
    flex: 0 0 auto;
    width: 350px;
    /* Standard width for embeds */
    min-height: 450px;
    /* Reserve vertical space */
    display: flex;
    justify-content: center;
    background: var(--bg-card);
    /* Placeholder background */
    border-radius: 8px;
}

.instagram-cta {
    text-align: center;
}

.instagram-cta .btn {
    gap: 10px;
}

.instagram-cta .btn i {
    font-size: 18px;
}

/* ================================================
   Booking Section
   ================================================ */
.booking-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.booking-header {
    text-align: center;
    margin-bottom: 50px;
}

.booking-wizard {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.wizard-step.active .step-number,
.wizard-step.completed .step-number {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: var(--bg-dark);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    color: var(--gold-primary);
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.wizard-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Treatment Selection */
.treatment-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.treatment-option {
    background: var(--bg-card-hover);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.treatment-option:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.treatment-option.selected {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.treatment-option h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.treatment-option p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.treatment-option .duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    font-size: 12px;
    color: var(--gold-primary);
}

/* Calendar & Time Slots */
.datetime-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calendar-container {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.calendar-nav:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.calendar-month {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-day:not(.empty):not(.disabled):hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
}

.calendar-day.selected {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    font-weight: 600;
}

.calendar-day.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.time-slots-container {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 24px;
}

.slots-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.slots-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 12px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-slot:hover:not(.disabled) {
    border-color: rgba(212, 175, 55, 0.3);
}

.time-slot.selected {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.time-slot.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: line-through;
}

.no-slots-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

/* Booking Form */
.booking-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Confirmation */
.confirmation-summary {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: var(--gold-primary);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: var(--status-confirmed);
    margin-bottom: 24px;
}

.success-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-details {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

/* ================================================
   Contact Section
   ================================================ */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-info .section-tag {
    display: inline-block;
}

.contact-info .section-title {
    text-align: left;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 18px;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-brand .logo-text {
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ================================================
   Modal
   ================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-fast);
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.modal-header {
    padding: 30px 30px 0;
}

.modal-header h2 {
    font-size: 24px;
    padding-right: 40px;
}

.modal-body {
    padding: 24px 30px;
}

.modal-image {
    height: 250px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-darker) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image i {
    font-size: 48px;
    color: var(--gold-primary);
    opacity: 0.5;
}

.modal-info h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    font-family: var(--font-body);
}

.modal-info h3:first-child {
    margin-top: 0;
}

.modal-info p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-info ul {
    list-style: none;
}

.modal-info ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.modal-info ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

.modal-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    color: var(--gold-primary);
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.modal-form {
    padding: 0 30px 30px;
}

.modal-form .form-row {
    margin-bottom: 0;
}

/* ================================================
   Admin Access Button
   ================================================ */
.admin-access {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    z-index: 100;
    transition: var(--transition-normal);
}

.admin-access:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
}

/* ================================================
   WhatsApp Float Button
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 20px;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #128c7e;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
        bottom: 20px;
        left: 20px;
    }
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

/* ================================================
   Admin Panel Styles
   ================================================ */
.admin-body {
    background: var(--bg-darker);
    min-height: 100vh;
}

/* Admin Mobile Header */
.admin-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(191, 163, 126, 0.1);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    font-size: 20px;
    color: var(--gold-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-primary);
}

.admin-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--bg-dark);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 900;
}

.sidebar-overlay.active {
    display: block;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--bg-dark);
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.login-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.login-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Admin Dashboard Layout */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--bg-dark);
}

.admin-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.admin-role {
    font-size: 12px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    width: calc(100% - 280px);
}

@media (max-width: 992px) {
    .admin-main {
        margin-left: 0;
        padding: 80px 15px 30px;
        /* Espacio para el header móvil */
        width: 100%;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header-admin {
    margin-bottom: 40px;
}

.section-header-admin h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-header-admin p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .stat-info .stat-number {
        font-size: 24px;
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-primary);
}

.stat-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-solicited);
}

.stat-icon.confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-confirmed);
}

.stat-icon.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled);
}

.stat-info .stat-number {
    font-size: 32px;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-family: var(--font-body);
}

.view-all {
    font-size: 13px;
    color: var(--gold-primary);
}

.card-body {
    padding: 24px;
    max-height: 300px;
    overflow-y: auto;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

/* Appointments Table Filters */
.filters-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: 100%;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    min-width: 150px;
}

.appointments-table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
}

.appointments-table th,
.appointments-table td {
    padding: 16px 20px;
    text-align: left;
}

.appointments-table th {
    background: var(--bg-card-hover);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .appointments-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .appointments-table th,
    .appointments-table td {
        white-space: nowrap;
        padding: 12px 15px;
    }
}

/* Ultra-compact Left-aligned Table Cards for mobile */
@media (max-width: 600px) {

    .appointments-table,
    .appointments-table thead,
    .appointments-table tbody,
    .appointments-table th,
    .appointments-table td,
    .appointments-table tr {
        display: block;
    }

    .appointments-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .appointments-table tr {
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding: 5px 0;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 4px;
    }

    .appointments-table td {
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 1px 12px !important;
        text-align: left;
        min-height: 18px;
        font-size: 11px !important;
        line-height: 1.2;
    }

    .appointments-table td:before {
        content: attr(data-label) ":";
        font-weight: 600;
        font-size: 9px;
        color: var(--gold-primary);
        text-transform: uppercase;
        opacity: 0.6;
        width: 85px;
        flex-shrink: 0;
    }

    .action-buttons {
        justify-content: flex-start;
        gap: 6px;
        padding-top: 4px;
    }

    .btn-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }

    .status-badge {
        padding: 1px 5px !important;
        font-size: 8px !important;
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.solicitado {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-solicited);
}

.status-badge.confirmado {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-confirmed);
}

.status-badge.cancelado {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
}

.btn-icon.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-icon.cancel:hover {
    background: var(--status-cancelled);
    border-color: var(--status-cancelled);
    color: white;
}

/* Procedures Grid (Admin) */
.admin-procedures-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.procedure-admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.procedure-admin-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.procedure-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.procedure-admin-header h3 {
    font-size: 20px;
    font-family: var(--font-body);
}

.procedure-admin-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.procedure-admin-meta span {
    font-size: 13px;
    color: var(--text-secondary);
}

.procedure-admin-meta i {
    color: var(--gold-primary);
    margin-right: 6px;
}

.procedure-admin-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Schedule Config */
.schedule-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .schedule-config {
        grid-template-columns: 1fr;
    }

    .schedule-hours {
        grid-template-columns: 1fr;
    }
}

.schedule-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.day-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
}

.day-toggle span {
    font-size: 14px;
    color: var(--text-secondary);
}

.schedule-hours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hour-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hour-group input,
.hour-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.block-dates {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.block-dates input {
    flex: 1;
    padding: 12px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.blocked-dates-list {
    max-height: 200px;
    overflow-y: auto;
}

.blocked-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.blocked-date-item span {
    font-size: 14px;
}

.remove-block {
    color: var(--status-cancelled);
    cursor: pointer;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.settings-form input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.settings-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Appointment Detail Modal */
.appointment-detail {
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.activity-content h4 {
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.activity-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 1200px) {
    .hero-stats {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-config {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .title-main {
        font-size: 56px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .datetime-selection {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-mobile-header {
        display: flex;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1100;
        width: 280px;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding-top: 80px;
        /* Offset for Mobile Header */
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-header-admin h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .instagram-stories-container {
        max-width: 320px;
    }

    .stories-slider {
        border-radius: 16px;
    }

    .story-overlay {
        padding: 50px 16px 30px;
    }

    .story-title {
        font-size: 18px;
    }

    .story-handle {
        font-size: 12px;
    }

    .stories-progress {
        padding: 10px 16px;
        gap: 4px;
    }

    .progress-bar {
        height: 2px;
    }

    .booking-wizard {
        padding: 24px;
    }

    .wizard-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .wizard-steps::before {
        display: none;
    }

    .wizard-step {
        flex-direction: row;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }

    .appointments-table-container {
        overflow-x: auto;
    }

    .appointments-table {
        min-width: 800px;
    }

    .schedule-hours {
        grid-template-columns: 1fr;
    }

    .day-toggle {
        flex-basis: calc(33.333% - 12px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0;
    }

    .title-main {
        font-size: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-wizard {
        padding: 20px;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10px;
    }

    .confirmation-actions {
        flex-direction: column;
    }
}

/* ================================================
   Instagram Admin Styles
   ================================================ */
.instagram-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.instagram-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instagram-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.instagram-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.instagram-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.instagram-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.instagram-preview-overlay i {
    color: var(--gold-primary);
}

.story-badge {
    background: rgba(212, 175, 55, 0.9);
    color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.instagram-preview-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.instagram-preview-stories .instagram-preview-item {
    aspect-ratio: 9/16;
    border-radius: 12px;
}

.instagram-actions {
    text-align: center;
}

.instagram-actions .btn {
    margin-bottom: 16px;
}

.instagram-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.instagram-note i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.instagram-form .form-group {
    margin-bottom: 16px;
}

.instagram-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.instagram-form input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.instagram-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.instagram-gallery {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instagram-gallery h3 {
    font-size: 20px;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.gallery-stats i:first-child {
    color: var(--gold-primary);
}

@media (max-width: 992px) {
    .instagram-config {
        grid-template-columns: 1fr;
    }

    .instagram-preview-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .instagram-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Message Card Styles - Linear List */
.messages-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.message-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: var(--transition-normal);
}

.message-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: var(--bg-card-hover);
}

.message-card-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 14px;
}

.sender-info h4 {
    font-size: 15px;
    font-family: var(--font-body);
    margin: 0;
}

.message-date {
    font-size: 11px;
    color: var(--text-muted);
}

.message-contact-info {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.contact-pill i {
    color: var(--gold-primary);
    font-size: 12px;
}

.message-body {
    padding: 16px 20px;
}

.message-body p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin: 0;
}

.message-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
}

.message-footer .btn {
    width: auto;
    min-width: 200px;
}

/* ================================================
   FAQ Section
   ================================================ */
.faq-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 40px;
    /* Extra space before next section */
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    padding: 0 30px 24px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--gold-primary);
    background: var(--bg-card-hover);
}

.faq-item.active .faq-question h3 {
    color: var(--gold-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Suficiente para el contenido */
}

/* ================================================
   Animations & Reveal
   ================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect Classes */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Specific delays for child elements to create a staggered effect */
.reveal-on-scroll.active>* {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Added specific delay for treatment cards if applicable */
.treatments-grid>.treatment-card {
    opacity: 0;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card {
    animation: fadeIn 0.6s ease forwards;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(4) {
    animation-delay: 0.4s;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(5) {
    animation-delay: 0.5s;
}

.reveal-on-scroll.active .treatments-grid>.treatment-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Admin Appointments Header */
.appointments-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-manual-appointment {
    white-space: nowrap;
    position: relative;
    z-index: 5;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .appointments-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-manual-appointment {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .appointments-header-flex .header-text {
        text-align: center;
    }
}