:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-dark: #1a2e3b;
    
    --glass-bg: rgba(255, 255, 255, 0.22);
    --glass-bg-hover: rgba(255, 255, 255, 0.38);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --accent-glow: rgba(0, 210, 255, 0.4);
}

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

html {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Elimina la barra de scroll en móviles */
    background: #81B622;
}

body {
    font-family: var(--font-body);
    color: #1a2224;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Solo habilita scroll si la pantalla fuera microscópica */
    display: flex;
    justify-content: center;
    align-items: center; /* Centrado vertical y horizontal perfecto */
    padding: 8px 12px;
    position: relative;
    background: transparent;
}

/* Fondo equilibrado con Blanco Roto, Verde Oliva y Mostaza, con PATRÓN DE GARABATOS DE VIAJE en los colores Jimmytours */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        /* Textura de garabatos y dibujos de viaje (aviones, cámaras, maletas, palmeras, mapas, montañas, etc.) */
        url('assets/travel_pattern.svg'),
        /* Zona central blanca y luminosa para garantizar claridad y legibilidad perfecta del texto y botones */
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.88) 45%, rgba(245, 245, 245, 0.4) 75%, transparent 100%),
        /* Resplandor Mostaza Suave en la esquina superior izquierda */
        radial-gradient(circle at 12% 15%, #FFD200 0%, rgba(255, 210, 0, 0.7) 35%, transparent 70%),
        /* Resplandor Verde Oliva en la esquina inferior derecha */
        radial-gradient(circle at 88% 85%, #81B622 0%, rgba(129, 182, 34, 0.8) 45%, transparent 80%),
        /* Degradado base equilibrado entre Blanco Roto, amarillo mostaza tenue y verde oliva suave */
        linear-gradient(135deg, #fef9e6 0%, #f5f5f5 45%, #eaf3d8 100%);
    background-size: 
        400px 400px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position: 
        0 0,
        center,
        center,
        center,
        center;
    background-repeat: 
        repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat;
    z-index: -2;
}

/* Ocultamos el overlay oscuro ya que usamos un fondo de color luminoso y ecológico */
.background-overlay {
    display: none;
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Bar */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.avatar-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
}

.avatar-glow {
    display: none;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 6px;
    transition: var(--transition-smooth);
}

.avatar-container:hover .profile-avatar {
    transform: scale(1.03);
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #1a2224;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.7);
}

.profile-subtitle {
    font-size: 0.92rem;
    color: #2D3436;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5);
}

.badge-slogan {
    background: rgba(45, 52, 54, 0.55);
    color: #FFD200;
    border: 1.5px solid rgba(129, 182, 34, 0.6);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

/* Individual Link Button */
.link-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    min-height: 82px;
    background: rgba(26, 34, 36, 0.58);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
}

/* Shimmer reflection effect */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 210, 0, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s;
}

.link-card:hover::before {
    left: 150%;
}

.link-card:hover {
    background: rgba(26, 34, 36, 0.62);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 35px rgba(129, 182, 34, 0.35), 0 0 20px rgba(255, 210, 0, 0.3);
    border-color: #FFD200;
}

.link-card:active {
    transform: translateY(-1px) scale(0.99);
}

/* Link Icon Container */
.link-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.link-card:hover .link-icon-box {
    transform: scale(1.1) rotate(-6deg);
}

/* Link Text */
.link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.link-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #ffffff;
}

.link-subtitle {
    font-size: 0.74rem;
    color: #FFD200;
    margin-top: 2px;
    font-weight: 600;
}

.link-arrow {
    color: #81B622;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    margin-left: 10px;
}

.link-card:hover .link-arrow {
    color: #FFD200;
    transform: translateX(4px);
}

/* Specific Social Colors for Icons */
.bg-web { background: linear-gradient(135deg, #0284c7, #0ea5e9); color: white; }
.bg-ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: white; }
.bg-fb { background: linear-gradient(135deg, #0062e0, #1977f3); color: white; }
.bg-wa { background: linear-gradient(135deg, #128c7e, #25d366); color: white; }

/* Footer */
.footer-section {
    text-align: center;
    width: 100%;
    margin-top: 4px;
    padding-bottom: 4px;
    position: relative;
    z-index: 2;
}

.footer-section p {
    font-size: 0.8rem;
    color: #2D3436;
    opacity: 0.8;
    font-weight: 600;
    margin-bottom: 4px;
}

.edit-mode-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.edit-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.toast i { color: #25d366; font-size: 1.1rem; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.glass-card {
    background: rgba(20, 35, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: white;
}

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

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover { color: white; }

.modal-instructions {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.4;
}

.editor-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #00d2ff;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #00d2ff;
    background: rgba(0, 0, 0, 0.5);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Scrollbar customization */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

/* Responsive Scaling for Desktop / Tablets */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    .avatar-container { width: 130px; height: 130px; margin-bottom: 18px; }
    .profile-title { font-size: 1.8rem; margin-bottom: 8px; }
    .profile-subtitle { font-size: 1.05rem; margin-bottom: 16px; }
    .badge-slogan { padding: 6px 16px; font-size: 0.85rem; }
    .links-section { gap: 14px; margin-bottom: 24px; }
    .link-card { padding: 14px 18px; border-radius: 18px; }
    .link-icon-box { width: 46px; height: 46px; font-size: 1.45rem; margin-right: 16px; }
    .link-title { font-size: 1.1rem; }
    .link-subtitle { font-size: 0.8rem; }
}


