:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.7);
    --card-border: rgba(48, 54, 61, 0.8);
    --primary-color: #58a6ff;
    --primary-hover: #3182ce;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --danger: #f85149;
    --success: #2ea043;
    --glass-blur: blur(12px);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(88, 166, 255, 0.3);
    border-radius: 10px;
    transition: 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 166, 255, 0.5);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 166, 255, 0.3) transparent;
}

/* Background Gradients */
.bg-gradient-1,
.bg-gradient-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--gradient-1);
}

.bg-gradient-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--gradient-2);
}

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
}

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

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.glass-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.small-btn {
    padding: 10px 18px;
}

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

.logo-img {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.9rem;
}

.logo-text strong {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* --- PREMIUM ADMIN MODAL PRO --- */
.admin-modal-pro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-glass-container {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(88, 166, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(88, 166, 255, 0.1);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-header-pro {
    padding: 24px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.header-left h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.admin-stats-badges {
    display: flex;
    gap: 12px;
}

.stat-badge-pro {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-badge-pro.success {
    color: #39d353;
    border-color: rgba(57, 211, 83, 0.3);
}

.action-btn-pro {
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.action-btn-pro.primary {
    background: var(--primary-color);
    color: #fff;
}

.action-btn-pro.danger {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.action-btn-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* REFINED UI COMPONENTS */
.icon-btn-logout {
    background: transparent;
    border: none;
    color: #f85149;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-logout:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.action-btn-pro-full {
    width: 100%;
    margin: 20px 0;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
}

.action-btn-pro-full:hover {
    filter: brightness(1.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(88, 166, 255, 0.3);
}

.admin-grid-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 5px;
}

.search-bar-pro {
    margin: 24px 40px;
    position: relative;
}

.search-bar-pro i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar-pro input {
    width: 100%;
    padding: 16px 20px 16px 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.search-bar-pro input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

.dashboard-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 40px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 166, 255, 0.3) transparent;
}

.grid-trabajos-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card-admin-pro {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-admin-pro:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-admin-pro img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
}

.status-badge-pro {
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 900;
}

.status-badge-pro.pendiente {
    background: #ff9800;
    color: #000;
    border: none;
}

.status-badge-pro.listo {
    background: #4caf50;
    color: #fff;
    border: none;
}

.card-price-pro {
    font-size: 1.5rem;
    font-weight: 900;
    color: #39d353;
    display: block;
    margin-top: auto;
}

.card-actions-pro {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-icon-pro {
    flex: 1;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon-pro:hover {
    background: var(--primary-color);
    transform: scale(1.08);
}

/* Modal Refining */
.modal-content {
    width: 100%;
    max-width: 450px;
    position: relative;
    padding: 40px;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.large {
    max-width: 700px;
}

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

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

.modern-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-wrapper .modern-input {
    padding-left: 55px;
}

.modern-input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(88, 166, 255, 0.3);
    filter: brightness(1.1);
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(248, 81, 73, 0.1);
    border-radius: 8px;
}

/* --- ESSENTIAL UTILS --- */
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* Services Section */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0;
}

.section-title span {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(0,212,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,100,255,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,212,255,0.08);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,100,255,0.1));
    border-color: rgba(0,212,255,0.2);
    transform: scale(1.05);
}

.service-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
}

.service-card p strong {
    color: var(--primary-color);
}

/* Gallery Section Layout */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 40px 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.card-trabajo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card-trabajo:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* === PREMIUM MODAL FORM STYLES === */

/* Scrollable modal body */
.modal-content {
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 36px;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.modal-content.large {
    max-width: 680px;
}

.modal-content::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-modal:hover {
    background: var(--danger);
    color: #fff;
    transform: rotate(90deg);
}

/* Form layout */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

.modern-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: 0.25s;
    resize: vertical;
}

.input-wrapper .modern-input {
    padding-left: 48px;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.modern-input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

/* Photo upload zone */
.photo-upload-zone {
    background: rgba(88, 166, 255, 0.03);
    border: 1.5px dashed rgba(88, 166, 255, 0.35);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    margin-bottom: 18px;
}

.photo-upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(88, 166, 255, 0.07);
}

.photo-upload-zone .zone-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.photo-upload-zone .zone-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.photo-upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.photo-upload-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.photo-pair-zone {
    background: rgba(88, 166, 255, 0.03);
    border: 1.5px dashed rgba(88, 166, 255, 0.3);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.photo-pair-zone:hover {
    border-color: var(--primary-color);
    background: rgba(88, 166, 255, 0.07);
}

.photo-pair-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.photo-pair-zone .zone-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.photo-pair-zone .zone-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.photo-pair-zone img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Preview thumbnails */
.preview-grid-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.preview-grid-thumbnails img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer row */
.modal-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer .glass-btn {
    padding: 13px 24px;
    flex-shrink: 0;
}

.modal-footer .primary-btn {
    flex: 1;
}

/* Primary button */
.primary-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(88, 166, 255, 0.3);
    filter: brightness(1.1);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    padding: 12px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 10px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    padding: 20px;
}

.glass-card {
    background: rgba(18, 22, 30, 0.92);
    border: 1px solid rgba(88, 166, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(88, 166, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.93) translateY(20px);
        opacity: 0;
    }

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

/* Services Section */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0;
}

.section-title span {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(0,212,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,100,255,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,212,255,0.08);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,100,255,0.1));
    border-color: rgba(0,212,255,0.2);
    transform: scale(1.05);
}

.service-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
}

.service-card p strong {
    color: var(--primary-color);
}

/* Gallery Section */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 20px 40px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.card-trabajo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card-trabajo:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.galeria-auto {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.galeria-auto img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: 0.8s ease-in-out;
}

.galeria-auto img.active {
    opacity: 1;
}

/* Before / After comparison in gallery cards */
.before-after-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ba-card {
    position: relative;
    overflow: hidden;
}

.ba-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-card:hover img {
    transform: scale(1.08);
}

.ba-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ba-label.antes {
    background: rgba(248, 81, 73, 0.9);
    color: #fff;
}

.ba-label.despues {
    background: rgba(46, 160, 67, 0.9);
    color: #fff;
}

/* Card info section */
.card-info {
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-device-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-device-name i {
    color: var(--primary-color);
}

.card-work-text {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.5;
    margin: 0;
}

/* === PREMIUM FLOATING SOCIAL BUTTONS === */
.floating-btns {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9000;
    align-items: flex-end;
}

.fab-pill {
    display: flex;
    align-items: center;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    overflow: hidden;
    width: 52px;
    height: 52px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, transform 0.25s;
    white-space: nowrap;
    cursor: pointer;
}

.fab-pill i {
    font-size: 1.3rem;
    min-width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fab-label {
    opacity: 0;
    padding-right: 18px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: opacity 0.2s ease 0.1s;
}

.fab-pill:hover {
    width: 160px;
    transform: translateY(-3px);
}

.fab-pill:hover .fab-label {
    opacity: 1;
}

.fab-pill.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5abf);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.fab-pill.facebook:hover {
    box-shadow: 0 14px 36px rgba(24, 119, 242, 0.65);
}

.fab-pill.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c4e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.fab-pill.whatsapp:hover {
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.65);
}

/* --- Mobile Fix (No Hover) --- */
@media (max-width: 768px) {
    .floating-btns {
        bottom: 24px;
        right: 18px;
        gap: 12px;
    }

    .fab-pill {
        width: 52px;
        height: 52px;
    }

    .fab-pill:hover {
        width: 52px;
        transform: translateY(-2px);
    }
}

/* Image Adjustment Button */
.btn-adjust {
    position: relative;
    z-index: 9999;
    background: #ff9800;
    /* Orange for visibility */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    margin: 15px auto 5px auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    pointer-events: auto !important;
    text-transform: uppercase;
}

.btn-adjust:hover {
    transform: scale(1.05);
    background: #f57c00;
}

/* Modal Editor Mobile Fix */
#editor-modal .modal-content {
    max-width: 98% !important;
    width: 98% !important;
    height: 95vh !important;
    z-index: 1000001 !important;
    padding: 10px !important;
}

/* --- ULTRA-PREMIUM IMMERSIVE EDITOR --- */
.immersive-editor {
    background: #000 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border: none !important;
    animation: editorFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes editorFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

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

.editor-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.9), transparent);
    z-index: 10;
}

.editor-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    display: block;
}

.editor-subtitle {
    font-size: 0.7rem;
    color: var(--primary-color);
    margin: 2px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editor-workspace {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 10px;
}

.editor-control-center {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

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

.group-label {
    font-size: 0.65rem;
    color: #8b949e;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.btn-group-pill {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    overflow-x: auto;
}

.tool-btn {
    flex: 1;
    height: 42px;
    min-width: 50px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tool-btn.active {
    background: var(--primary-color);
    color: #000;
}

.v-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: auto 4px;
}

.editor-action-bar {
    padding: 20px 25px 35px;
    display: flex;
    gap: 15px;
    background: #0d1117;
}

.glass-cancel-btn {
    padding: 0 20px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f85149;
    border-radius: 16px;
    font-weight: 600;
}

.ultra-action-btn {
    flex: 1;
    height: 54px;
    border: none;
    background: var(--primary-color);
    color: #000;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.ultra-action-btn:active {
    transform: scale(0.96);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Cropper Overrides for Modern Look */
.cropper-view-box,
.cropper-face {
    border-radius: 4px;
}

.cropper-line,
.cropper-point {
    background-color: var(--primary-color);
}

.cropper-bg {
    background-image: none !important;
    background-color: #000 !important;
}



/* ===== SECCIÓN DE PRECIOS ===== */
.precios-section {
    padding: 80px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.precios-subtitulo {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 40px;
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.precio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.precio-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #3b82f6);
}

.precio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.precio-card-header i {
    font-size: 1.5rem;
    color: var(--accent, #3b82f6);
}

.precio-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.precio-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.precio-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.precio-servicio {
    color: var(--text-muted, #aaa);
}

.precio-valor {
    font-weight: 700;
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.precios-cta {
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted, #aaa);
}

.precios-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.precios-link:hover {
    text-decoration: underline;
}

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

/* === ADMIN TABS === */
.admin-tabs {
    display: flex;
    padding: 0 32px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.admin-tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-tab-btn:hover {
    color: #fff;
}

.admin-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* === CATALOG ADMIN GRID === */
.grid-catalogo-pro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-catalogo-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    transition: 0.2s;
}

.card-catalogo-admin:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.card-catalogo-admin .cat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-catalogo-admin .cat-categoria {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.card-catalogo-admin .cat-nombre {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.card-catalogo-admin .cat-precio {
    font-size: 1rem;
    color: #39d353;
    font-weight: 800;
}

.card-catalogo-admin .cat-actions {
    display: flex;
    gap: 8px;
}

.card-catalogo-admin .cat-actions button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.card-catalogo-admin .cat-actions .btn-edit:hover {
    background: #00bcd4;
}

.card-catalogo-admin .cat-actions .btn-delete:hover {
    background: #f85149;
}

/* === DESKTOP ENHANCEMENTS === */
@media (min-width: 1024px) {
    .hero {
        max-width: 900px !important;
        padding: 90px 20px 60px !important;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 1.3rem !important;
    }

    .section-title {
        font-size: 2.6rem;
        margin: 60px 0 40px;
    }

    .services-grid {
        max-width: 1200px;
        gap: 28px;
        padding: 20px 40px;
    }

    .service-card {
        padding: 40px 30px;
    }

    .service-icon-wrap {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .service-icon {
        font-size: 1.9rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .galeria {
        padding: 20px 60px 60px;
        gap: 32px;
        max-width: 1500px;
    }

    .precios-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .precios-grid {
        gap: 28px;
    }

    .location-section {
        max-width: 1100px !important;
        padding: 30px 40px !important;
    }

    .reviews-section {
        max-width: 1100px !important;
        padding: 30px 40px !important;
    }

    .reviews-section > div:first-of-type {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .about-section {
        max-width: 1000px !important;
        padding: 30px 40px !important;
    }

    .about-section > div {
        padding: 50px !important;
    }

    .about-section p {
        font-size: 1.15rem !important;
    }

    .map-container iframe {
        height: 420px !important;
    }
}

@media (min-width: 1400px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .services-grid {
        max-width: 1300px;
        grid-template-columns: repeat(4, 1fr);
    }

    .galeria {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px 80px 60px;
        max-width: 1600px;
    }

    .section-title {
        font-size: 3rem;
    }

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

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        margin: 28px 0;
    }

    .hero {
        padding: 50px 16px 30px !important;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .services-grid {
        padding: 12px;
        gap: 16px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .galeria {
        padding: 12px 12px 40px;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .precios-section {
        padding: 0 12px;
    }

    .about-section {
        padding: 12px 12px !important;
    }

    .about-section > div {
        padding: 24px 18px !important;
    }

    .location-section {
        padding: 12px 12px !important;
    }

    .location-section > div > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .reviews-section {
        padding: 12px 12px !important;
    }

    .reviews-section > div:first-of-type {
        grid-template-columns: 1fr !important;
    }

    .admin-tabs {
        padding: 0 12px;
        overflow-x: auto;
        gap: 4px;
    }

    .admin-tab-btn {
        padding: 10px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .admin-modal-pro .modal-glass-container {
        padding: 16px;
    }

    .modal-content,
    .modal-content.large {
        max-width: 100%;
        margin: 8px;
        padding: 20px;
        max-height: 88vh;
    }

    .map-container iframe {
        height: 240px !important;
    }

    .floating-btns {
        bottom: 20px;
        right: 14px;
        gap: 10px;
    }

    .fab-pill {
        width: 48px;
        height: 48px;
    }

    .fab-pill:hover {
        width: 48px;
    }

    .fab-pill span {
        display: none;
    }

    .dashboard-scroll-area {
        padding: 16px 12px;
        max-height: 75vh;
    }

    .grid-catalogo-admin .card-catalogo-admin {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-catalogo-admin .cat-actions {
        align-self: flex-end;
    }

    #galeria-ver-mas {
        padding: 12px 0 40px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin: 20px 0;
    }

    .service-card {
        padding: 20px 14px;
    }

    .service-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .service-icon {
        font-size: 1.3rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .precio-card {
        padding: 18px;
    }

    .precio-lista li {
        font-size: 0.82rem;
    }

    .about-section > div {
        padding: 18px 14px !important;
    }

    .about-section p {
        font-size: 0.9rem !important;
    }

    .modal-content,
    .modal-content.large {
        padding: 16px;
        margin: 4px;
    }

    .admin-tab-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .floating-btns {
        bottom: 16px;
        right: 10px;
        gap: 8px;
    }

    .fab-pill {
        width: 44px;
        height: 44px;
    }

    .reviews-section > div:first-of-type > div {
        padding: 18px !important;
    }
}